This commit is contained in:
2026-08-06 00:29:37 +02:00
parent 31d458f8b7
commit fedc18c3ca
19 changed files with 779 additions and 131 deletions

View File

@@ -10,8 +10,16 @@ class TextFormats{
public var cInputFmt:TextFormat;
public var cOutputFmt:TextFormat;
public function new(){
var font = Assets.getFont("fonts/Terminus.ttf");
cInputFmt = new TextFormat(Assets.getFont("fonts/Terminus.ttf").fontName, 24, 0xffffff);
cOutputFmt = new TextFormat(Assets.getFont("fonts/Terminus.ttf").fontName, 24, 0xffffff);
trace('font: ${font}');
trace('fontName: ${font.fontName}');
trace('fontStyle: ${font.fontStyle}');
trace('fontType: ${font.fontType}');
trace('fontGlyphs: ${font.getGlyphs()}');
trace(cInputFmt.font);
trace(cOutputFmt.font);
}
public static function getFormats():TextFormats
{