Skip to content

Commit

Permalink
Add more exposed variables to the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
opengraphica authored and Connum committed Sep 9, 2024
1 parent a9c8ad5 commit d2301d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ A Font represents a loaded OpenType font file. It contains a set of glyphs and m
* `unitsPerEm`: X/Y coordinates in fonts are stored as integers. This value determines the size of the grid. Common values are `2048` and `4096`.
* `ascender`: Distance from baseline of highest ascender. In font units, not pixels.
* `descender`: Distance from baseline of lowest descender. In font units, not pixels.
* `vertTypoAscender`: Similar to "ascender", except this is used when glyphs are drawn vertically. In font units, not pixels.
* `vertTypoDescender`: Similar to "descender", except this is used when glyphs are drawn vertically. In font units, not pixels.

#### `Font.getPath(text, x, y, fontSize, options)`
Create a Path that represents the given text.
Expand Down

0 comments on commit d2301d9

Please sign in to comment.