font embedding try

This commit is contained in:
2025-11-15 18:54:32 +01:00
parent e2e1cd64de
commit 99e3956fab
40 changed files with 135 additions and 68 deletions
+6
View File
@@ -1,3 +1,6 @@
import lime.tools.Asset;
import openfl.text.Font;
import feathers.text.TextFormat;
import model.Constants;
import components.NekoRectangle;
import openfl.display.Shape;
@@ -10,6 +13,7 @@ import feathers.controls.Panel;
import feathers.controls.navigators.StackNavigator;
import feathers.controls.Application;
import feathers.controls.Label;
import model.Constants;
class LPTCManager2026 extends Application {
private var mainPanel:Panel;
@@ -38,6 +42,8 @@ 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();
header.addChild(title);