mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-26 04:35:16 +00:00
ZVISION: Check for point and style changes when early breaking from a font change
This commit is contained in:
parent
53a2c30cb0
commit
52adf5135b
@ -65,14 +65,14 @@ StyledTTFont::~StyledTTFont() {
|
||||
}
|
||||
|
||||
bool StyledTTFont::loadFont(const Common::String &fontName, int32 point, uint style) {
|
||||
_style = style;
|
||||
|
||||
// Don't re-load the font if we've already loaded it
|
||||
// We have to check for empty so we can default to Arial
|
||||
if (!fontName.empty() && _fontName.equalsIgnoreCase(fontName)) {
|
||||
if (!fontName.empty() && _fontName.equalsIgnoreCase(fontName) && _lineHeight == point && _style == style) {
|
||||
return true;
|
||||
}
|
||||
|
||||
_style = style;
|
||||
|
||||
Common::String newFontName;
|
||||
Common::String freeFontName;
|
||||
Common::String liberationFontName;
|
||||
|
Loading…
x
Reference in New Issue
Block a user