Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for italic text in the software renderer's bitmap font path
In the screenshot tests this works by setting SLINT_DEFAULT_FONT to pointer to a directory, instead of a file. We then load all fonts in that directory and consider their families the default unless a family is specified. This way for "Noto Sans" a regular as well as an italic version is registered in fontdb and returned in the list of font fallback ids. embed_glyphs in the compiler then embeds those variants and we find them at run-time.
- Loading branch information
Showing
12 changed files
with
134 additions
and
135 deletions.
There are no files selected for viewing
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
SPDX-FileCopyrightText: Google Inc. <https://fonts.google.com/noto/specimen/Noto+Sans/about> | ||
|
||
SPDX-License-Identifier: OFL-1.1-RFN |
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
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.