mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-08-04 05:55:31 +02:00
Use the first version of the font we find
This commit is contained in:
parent
ef90a2f30b
commit
3744b3cf2b
1 changed files with 2 additions and 2 deletions
|
@ -158,9 +158,9 @@ void SharedFontState::initFontSetCB(SDL_RWops &ops,
|
|||
|
||||
FontSet &set = p->sets[family];
|
||||
|
||||
if (style == "Regular")
|
||||
if (style == "Regular" && set.regular.empty())
|
||||
set.regular = filename;
|
||||
else
|
||||
else if (style != "Regular" && set.other.empty())
|
||||
set.other = filename;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue