mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fully remove bitmap font support (#11863)
Freetype is now a build requirement.
This commit is contained in:
parent
bf22569019
commit
76dbd0d2d0
50 changed files with 71 additions and 319 deletions
|
@ -34,8 +34,6 @@ enum FontMode : u8 {
|
|||
FM_Standard = 0,
|
||||
FM_Mono,
|
||||
_FM_Fallback, // do not use directly
|
||||
FM_Simple,
|
||||
FM_SimpleMono,
|
||||
FM_MaxMode,
|
||||
FM_Unspecified
|
||||
};
|
||||
|
@ -140,9 +138,6 @@ private:
|
|||
/** initialize a new TTF font */
|
||||
gui::IGUIFont *initFont(const FontSpec &spec);
|
||||
|
||||
/** initialize a font without freetype */
|
||||
gui::IGUIFont *initSimpleFont(const FontSpec &spec);
|
||||
|
||||
/** update current minetest skin with font changes */
|
||||
void updateSkin();
|
||||
|
||||
|
@ -165,8 +160,8 @@ private:
|
|||
bool m_default_bold = false;
|
||||
bool m_default_italic = false;
|
||||
|
||||
/** current font engine mode */
|
||||
FontMode m_currentMode = FM_Standard;
|
||||
/** default font engine mode (fixed) */
|
||||
static const FontMode m_currentMode = FM_Standard;
|
||||
|
||||
DISABLE_CLASS_COPY(FontEngine);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue