From e6d6972ab008c81334ae4ef2a8f2f076c6f39874 Mon Sep 17 00:00:00 2001 From: TechnikTil Date: Thu, 16 Oct 2025 12:29:11 -0600 Subject: [PATCH] Fix `htmlText` subtitles --- source/funkin/play/components/Subtitles.hx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source/funkin/play/components/Subtitles.hx b/source/funkin/play/components/Subtitles.hx index cdcfe9214..afd55c70e 100644 --- a/source/funkin/play/components/Subtitles.hx +++ b/source/funkin/play/components/Subtitles.hx @@ -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`. + } } /**