Customizing font bounding boxes for variable fonts
Abstract
This disclosure describes methods, non-transitory computer readable storage media, and systems that utilize glyph sets from predefined instances of variable fonts to customize font bounding boxes for custom instances of the variable fonts. The disclosed system customizes digital text including a variable font via one or more adjustable design axes. In response to a request to set a custom value of a design axis, the disclosed system determines a first and second predefined instances of the digital text. For example, the disclosed system determines a Euclidean distance between the custom value and corresponding values for the predefined instances. The disclosed systems determine sets of glyphs that contribute to the font bounding boxes of the first predefined instance and the second predefined instance. The disclosed systems generate a custom font bounding box for the digital text at the custom value of the design axis based on the glyph sets.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 26 · Forward citations: 2.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A non-transitory computer readable storage medium comprising instructions that, when executed by at least one processor, cause a computing device to: receive a request to set a custom value of a design axis of digital text comprising a variable font in a digital content item, the variable font comprising one or more design axes that adjust one or more visual attributes of the digital text during rendering; determine, for a first design axis instance of the digital text, a first set of glyph bounding boxes enclosing glyphs of the variable font that contribute to a first font bounding box for th
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (2 of 2 total)
References Cited — Backward Prior Art (26)
Non-Patent Literature (5)
- Microsoft.com; head—Font Header Table; Nov. 13, 2020; https://docs.microsoft.com/en-us/typography/opentype/spec/head.
- Microsoft; avar—Axis Variations Table; Oct. 23, 2020; https://docs.microsoft.com/en-us/typography/opentype/spec/avar.
- Microsoft; MVAR—Metrics Variations Table; Aug. 16, 2018; https://docs.microsoft.com/en-us/typography/opentype/spec/mvar.
- Microsoft; OpenType Font Variations Overview; Oct. 23, 2020; https://docs.microsoft.com/en-us/typography/opentype/spec/otvaroverview#variation-%20data-tables-and-miscellaneous-requirements.
- Variable Fonts; A simple resource for finding and trying variable fonts; Date downloaded Mar. 24, 2021; https://v-fonts.com.