You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/fontkit/README.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -102,6 +102,7 @@ The following properties describe the general metrics of the font. See [here](ht
102
102
*`underlinePosition` - the offset from the normal underline position that should be used
103
103
*`underlineThickness` - the weight of the underline that should be used
104
104
*`italicAngle` - if this is an italic font, the angle the cursor should be drawn at to match the font design
105
+
*`lineHeight` - is the vertical space between adjacent lines (their baselines) of text, also known as leading. See [here](https://en.wikipedia.org/wiki/Leading) for more details.
105
106
*`capHeight` - the height of capital letters above the baseline. See [here](http://en.wikipedia.org/wiki/Cap_height) for more details.
106
107
*`xHeight`- the height of lower case letters. See [here](http://en.wikipedia.org/wiki/X-height) for more details.
107
108
*`bbox` - the font’s bounding box, i.e. the box that encloses all glyphs in the font
@@ -205,7 +206,14 @@ You do not create glyph objects directly. They are created by various methods on
205
206
*`path` - a vector Path object representing the glyph
206
207
*`bbox` - the glyph’s bounding box, i.e. the rectangle that encloses the glyph outline as tightly as possible.
207
208
*`cbox` - the glyph’s control box. This is often the same as the bounding box, but is faster to compute. Because of the way bezier curves are defined, some of the control points can be outside of the bounding box. Where `bbox` takes this into account, `cbox` does not. Thus, `cbox` is less accurate, but faster to compute. See [here](http://www.freetype.org/freetype2/docs/glyphs/glyphs-6.html#section-2) for a more detailed description.
209
+
*`width` - the glyph’s width.
210
+
*`height` - the glyph’s height.
208
211
*`advanceWidth` - the glyph’s advance width.
212
+
*`advanceHeight` - the glyph’s advance height.
213
+
*`leftBearing` - the glyph’s left side bearing.
214
+
*`topBearing` - the glyph’s top side bearing.
215
+
*`rightBearing` - the glyph’s right side bearing.
216
+
*`bottomBearing` - the glyph’s bottom side bearing.
0 commit comments