From 73df32bf276d4508150b210c1fca0ca5ce3334d8 Mon Sep 17 00:00:00 2001 From: cclecle Date: Tue, 26 Aug 2025 13:43:09 +0200 Subject: [PATCH] create ChaChaFont interface (to handle unscalled) --- Classes/IChaChaFontInfo.uc | 12 ++++++++++++ Classes/IChaChaFonts.uc | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 Classes/IChaChaFontInfo.uc diff --git a/Classes/IChaChaFontInfo.uc b/Classes/IChaChaFontInfo.uc new file mode 100644 index 0000000..59ab42a --- /dev/null +++ b/Classes/IChaChaFontInfo.uc @@ -0,0 +1,12 @@ +class IChaChaFontInfo expands FontInfo; + + +function GlobalForceScalingState(bool bState); +function Font GetHugeUnscaledFont(float Width); +function Font GetBigUnscaledFont(float Width); +function Font GetMediumUnscaledFont(float Width); +function Font GetSmallUnscaledFont(float Width); +function Font GetSmallestUnscaledFont(float Width); +function Font GetAReallySmallUnscaledFont(float Width); +function Font GetACompletelyUnreadableUnscaledFont(float Width); +function Font GetUnscaledFontIndex(int i, float Width); \ No newline at end of file diff --git a/Classes/IChaChaFonts.uc b/Classes/IChaChaFonts.uc index 1316941..c3cd4d6 100644 --- a/Classes/IChaChaFonts.uc +++ b/Classes/IChaChaFonts.uc @@ -2,7 +2,7 @@ class IChaChaFonts expands Actor abstract; -simulated function FontInfo Get(String requestedFont); +simulated function IChaChaFontInfo Get(String requestedFont); static function IChaChaFonts GetInstance(LevelInfo _Level, String ID) {