VIDEO: Also try to load font from fonts.dat
This what is expected for now anyway
This commit is contained in:
parent
62ece2ca5f
commit
5ae74e04e5
1 changed files with 5 additions and 1 deletions
|
@ -249,10 +249,14 @@ void Subtitles::setFont(const char *fontname, int height) {
|
|||
if (file.open(fontname)) {
|
||||
_font = Graphics::loadTTFFont(file, _fontHeight, Graphics::kTTFSizeModeCharacter, 96);
|
||||
}
|
||||
|
||||
if (!_font) {
|
||||
_font = Graphics::loadTTFFontFromArchive(fontname, _fontHeight, Graphics::kTTFSizeModeCharacter, 96);
|
||||
}
|
||||
#endif
|
||||
|
||||
if (!_font) {
|
||||
warning("Cannot load font %s directly", fontname);
|
||||
debug(1, "Cannot load font %s directly", fontname);
|
||||
_font = FontMan.getFontByName(fontname);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue