vyaz-monorepo / core/src / FontFace
Interface: FontFace
Defined in: core/src/measure/FontEngine.ts:32
Opaque font face handle returned by FontEngine.create()
Properties
_opticalSize?
readonlyoptional_opticalSize?:object
Defined in: core/src/measure/FontEngine.ts:68
Set when the font has an opsz axis that registration left free: the un-instanced master plus the registered axes, so opticalSizeInstance can pin opsz to the used font size (CSS font-optical-sizing: auto).
base
readonlybase:any
max
readonlymax:number
min
readonlymin:number
variation
readonlyvariation:Record<string,number> |undefined
_raw
readonly_raw:any
Defined in: core/src/measure/FontEngine.ts:34
fontkit font object (private — not meant for direct access)
ascent
readonlyascent:number
Defined in: core/src/measure/FontEngine.ts:37
capHeight
readonlycapHeight:number
Defined in: core/src/measure/FontEngine.ts:39
descent
readonlydescent:number
Defined in: core/src/measure/FontEngine.ts:38
strikeoutPosition
readonlystrikeoutPosition:number|null
Defined in: core/src/measure/FontEngine.ts:61
strikeoutSize
readonlystrikeoutSize:number|null
Defined in: core/src/measure/FontEngine.ts:62
typoAscent
readonlytypoAscent:number|null
Defined in: core/src/measure/FontEngine.ts:43
OS/2 typoAscender / typoDescender (font units) — null when the font has no OS/2 table.
typoDescent
readonlytypoDescent:number|null
Defined in: core/src/measure/FontEngine.ts:44
underlinePosition
readonlyunderlinePosition:number|null
Defined in: core/src/measure/FontEngine.ts:59
Decoration geometry in font units, font-table signs: post.underlinePosition (top of the underline, negative = below the baseline) / underlineThickness, OS/2.yStrikeoutPosition (top of the strikeout, above the baseline) / yStrikeoutSize. null when the table is missing.
underlineThickness
readonlyunderlineThickness:number|null
Defined in: core/src/measure/FontEngine.ts:60
unitsPerEm
readonlyunitsPerEm:number
Defined in: core/src/measure/FontEngine.ts:36
Cached values extracted once after creation
useTypoMetrics
readonlyuseTypoMetrics:boolean|null
Defined in: core/src/measure/FontEngine.ts:52
OS/2 fsSelection bit 7 — the font's own declaration that renderers should use its typo metrics (not win/hhea) for line spacing. null when the font has no OS/2 table. See FontTypes.ts FontMetrics.useTypoMetrics for why this matters (it's why Unifont, the one oracle font with this bit set, doesn't fit the same office-mode baseline-ratio formula as the rest).
winAscent
readonlywinAscent:number|null
Defined in: core/src/measure/FontEngine.ts:40
winDescent
readonlywinDescent:number|null
Defined in: core/src/measure/FontEngine.ts:41
