EVOLUTION-MANAGER
Edit File: glyph_info.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: Query glyph-specific information from fonts</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 glyph_info {systemfonts}"><tr><td>glyph_info {systemfonts}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Query glyph-specific information from fonts</h2> <h3>Description</h3> <p>This function allows you to extract information about the individual glyphs in a font, based on a specified size. All size related measures are in pixel-units. The function is vectorised to the length of the <code>glyphs</code> vector. </p> <h3>Usage</h3> <pre> glyph_info( glyphs, family = "", italic = FALSE, bold = FALSE, size = 12, res = 72, path = NULL, index = 0 ) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>glyphs</code></td> <td> <p>A vector of glyphs. Strings will be split into separate glyphs automatically</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>size</code></td> <td> <p>The pointsize of the font to use for size related measures</p> </td></tr> <tr valign="top"><td><code>res</code></td> <td> <p>The ppi of the size related mesures</p> </td></tr> <tr valign="top"><td><code>path, 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 information about each glyph, containing the following columns: </p> <dl> <dt>glyph</dt><dd><p>The glyph as a character</p> </dd> <dt>index</dt><dd><p>The index of the glyph in the font file</p> </dd> <dt>width</dt><dd><p>The width of the glyph</p> </dd> <dt>height</dt><dd><p>The height of the glyph</p> </dd> <dt>x_bearing</dt><dd><p>The horizontal distance from the origin to the leftmost part of the glyph</p> </dd> <dt>y_bearing</dt><dd><p>The vertical distance from the origin to the top part of the glyph</p> </dd> <dt>x_advance</dt><dd><p>The horizontal distance to move the cursor after adding the glyph</p> </dd> <dt>y_advance</dt><dd><p>The vertical distance to move the cursor after adding the glyph</p> </dd> <dt>bbox</dt><dd><p>The tight bounding box surrounding the glyph</p> </dd> </dl> <hr /><div style="text-align: center;">[Package <em>systemfonts</em> version 1.0.4 <a href="00Index.html">Index</a>]</div> </body></html>