Fixed #2094 Embed font name taken from the fontTag, not DefineFontName

This commit is contained in:
Jindra Petřík
2023-10-06 10:40:20 +02:00
parent 9a34404fba
commit 2644575a20
2 changed files with 3 additions and 1 deletions

View File

@@ -126,7 +126,8 @@ public class InstanceInfo {
}
writer.appendNoHilight("[Embed(source=\"" + ASSETS_DIR + ct.getCharacterExportFileName() + ".ttf\",").newLine();
writer.appendNoHilight("fontName=\"" + ft.getFontName() + "\",").newLine();
writer.appendNoHilight("fontName=\"" + ft.getFontNameIntag() + "\",").newLine();
writer.appendNoHilight("fontFamily=\"" + ft.getFontName()+ "\",").newLine();
writer.appendNoHilight("mimeType=\"application/x-font\",").newLine();
writer.appendNoHilight("fontWeight=\"" + (ft.isBold() ? "bold" : "normal") + "\",").newLine();
writer.appendNoHilight("fontStyle=\"" + (ft.isItalic() ? "italic" : "normal") + "\",").newLine();