mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-12 13:51:58 +00:00
Fixed #2094 Embed font name taken from the fontTag, not DefineFontName
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user