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

@@ -14,6 +14,7 @@ All notable changes to this project will be documented in this file.
- [#2094] AS3 Missing use namespace
- [#2094] AS3 missing star type on var and const
- [#2094] AS3 Getting register names from debug info - do not allow assigning `_locX_` name to other register than X
- [#2094] Embed font name taken from the fontTag, not DefineFontName
## [19.0.0] - 2023-10-01
### Added

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();