import { Font } from "https://deno.land/x/font@0.1.3/mod.ts";
Represents a font.
Constructors
Methods
The new line height for the font. Only populated for fonts with vertical
text layout metrics. undefined
if unpopulated.
Finds the internal glyph index for the given character. If the character is not present in the font then 0 is returned.
Retrieves the layout metrics for the given character. If the character isn't present in the font, then the layout for the font's default character is returned instead.
Retrieves the layout metrics at the given index. You normally want to be
using metrics
instead, unless your glyphs are pre-indexed.
Retrieves the layout metrics and rasterized bitmap for the given character. If the character isn't present in the font, then the layout and bitmap for the font's default character is returned instead.
Retrieves the layout metrics and rasterized bitmap at the given index.
You normally want to be using rasterize
instead, unless your
glyphs are pre-indexed.
The new line height for the font. Only populated for fonts with horizontal
text layout metrics. undefined
if unpopulated.