Fix htmlText subtitles

This commit is contained in:
TechnikTil
2025-10-20 00:14:21 -04:00
committed by Hundrec
parent 4f8da59577
commit e6d6972ab0
+6 -1
View File
@@ -33,7 +33,7 @@ class Subtitles extends FlxSpriteGroup
background.alpha = 0.5;
add(background);
subtitleText = new SubtitlesText(0, 0, 30, Paths.font('vcr.ttf'));
subtitleText = new SubtitlesText(0, 0, 30, 'VCR OSD Mono');
add(subtitleText);
setText([], true);
@@ -165,6 +165,11 @@ class SubtitlesText extends FlxText
}
return Text;
}
override function applyFormats(_:openfl.text.TextFormat, __:Bool = false):Void
{
// This function shouldn't get called because it messes up `htmlText`.
}
}
/**