-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(troika-three-text): initial support for multiple font files spli…
…t by unicode range - #13 Mimics how CSS @font-face resolves across multiple fonts by unicode-range, only loading those font files needed for the characters actually used. This allows for more complete language coverage without having to include everything in one font file, and Latin text can now load a smaller font file by default. The support is currently limited to an internal set of fallback fonts, but it will be opened up to the public API soon. Internally this required supporting varying font metrics between characters, which also sets us up for inline styling e.g. varying font-size, font-style, etc. - see #65
- Loading branch information
Showing
5 changed files
with
427 additions
and
190 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.