EVOLUTION-MANAGER
Edit File: font_fallback.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Get the fallback font for a given string</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for font_fallback {systemfonts}"><tr><td>font_fallback {systemfonts}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Get the fallback font for a given string</h2> <h3>Description</h3> <p>A fallback font is a font to use as a substitute if the chosen font does not contain the requested characters. Using font fallbacks means that the user doesn't have to worry about mixing characters from different scripts or mixing text and emojies. Fallback is calculated for the full string and the result is platform specific. If no font covers all the characters in the string an undefined "best match" is returned. The best approach is to figure out which characters are not covered by your chosen font and figure out fallbacks for these, rather than just request a fallback for the full string. </p> <h3>Usage</h3> <pre> font_fallback( string, family = "", italic = FALSE, bold = FALSE, path = NULL, index = 0 ) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>string</code></td> <td> <p>The strings to find fallbacks for</p> </td></tr> <tr valign="top"><td><code>family</code></td> <td> <p>The name of the font family</p> </td></tr> <tr valign="top"><td><code>italic</code></td> <td> <p>logicals indicating the font style</p> </td></tr> <tr valign="top"><td><code>bold</code></td> <td> <p>logicals indicating the font style</p> </td></tr> <tr valign="top"><td><code>path</code></td> <td> <p>path an index of a font file to circumvent lookup based on family and style</p> </td></tr> <tr valign="top"><td><code>index</code></td> <td> <p>path an index of a font file to circumvent lookup based on family and style</p> </td></tr> </table> <h3>Value</h3> <p>A data frame with a <code>path</code> and <code>index</code> column giving fallback for the specified string and font combinations </p> <h3>Examples</h3> <pre> font_fallback("\U0001f604") # Smile emoji </pre> <hr /><div style="text-align: center;">[Package <em>systemfonts</em> version 1.0.4 <a href="00Index.html">Index</a>]</div> </body></html>