font embed try #2
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -11,7 +11,7 @@ class Constants {
|
||||
public static final MAIN_COLOR3:Int = 0xECEFF0;
|
||||
|
||||
// Fonts
|
||||
public static final MONTSERRAT_SEMIBOLD_600:String = "Montserrat_SemiBold_600.ttf";
|
||||
public static final MONTSERRAT_SEMIBOLD_600:String = "Montserrat_SemiBold_600";
|
||||
|
||||
|
||||
private function new() {
|
||||
|
||||
Reference in New Issue
Block a user