Added: TTF export - setting italic / bold flags in the font

Fixed: #2632 TTF export - non-zero italic angle
This commit is contained in:
Jindra Petřík
2026-02-16 08:21:50 +01:00
parent 2457a930f2
commit 0af8763efc
12 changed files with 107 additions and 9 deletions
@@ -209,6 +209,13 @@ public class FontExporter {
value = Math.min(value, 1024);
f.setDescender(value);
}
if (ft.isBold()) {
f.setBold(true);
}
if (ft.isItalic()) {
f.setItalic(true);
}
List<Integer> reallyExportedGlyphs = new ArrayList<>();
Set<Character> processedCharacters = new HashSet<>();