made fonts available without installing system-wide

This commit is contained in:
TomTkacz
2025-03-12 04:48:33 -05:00
parent 6b0d311dc9
commit ee4cf2d7b4
4 changed files with 56 additions and 7 deletions
+6 -4
View File
@@ -45,10 +45,12 @@ public:
RealSize shadow_displacement; ///< Position of the shadow
double shadow_blur; ///< Blur radius of the shadow
Color separator_color; ///< Color for <sep> text
int flags; ///< FontFlags for this font
int flags; ///< FontFlags for this font
Font();
/// Load fonts (.ttf) from the resource/fonts directory
static bool PreloadResourceFonts();
/// Update the scritables, returns true if there is a change
bool update(Context& ctx);
/// Add the given dependency to the dependent_scripts list for the variables this font depends on
@@ -64,7 +66,7 @@ public:
/// Convert this font to a wxFont
wxFont toWxFont(double scale) const;
private:
DECLARE_REFLECTION();
};