font embed try #2

This commit is contained in:
2025-11-15 22:25:14 +01:00
parent 99e3956fab
commit 577b477f4d
77 changed files with 94 additions and 77 deletions
+2 -1
View File
@@ -1,4 +1,4 @@
import lime.tools.Asset;
import openfl.Assets;
import openfl.text.Font;
import feathers.text.TextFormat;
import model.Constants;
@@ -43,6 +43,7 @@ class LPTCManager2026 extends Application {
var title = new Label();
title.text = "Header";
var fnt:Font = Assets.getFont(Constants.MONTSERRAT_SEMIBOLD_600);
title.textFormat = new TextFormat(fnt.fontName, 20, Constants.MAIN_COLOR3);
title.variant = Label.VARIANT_HEADING;
title.layoutData = AnchorLayoutData.center();