Skip to content

Commit

Permalink
DIRECTOR: Register and use additional fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Jan 27, 2017
1 parent fae09e9 commit d8c8b78
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion engines/director/frame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,7 @@ void Frame::renderText(Graphics::ManagedSurface &surface, uint16 spriteId, Commo
if (_vm->_currentScore->_fontMap.contains(textCast->fontId)) {
// We need to make sure that teh Shared Cast fonts have been loaded in?
//might need a mapping table here of our own.
textCast->fontId = _vm->_wm->_fontMan->getFontIdByName(_vm->_currentScore->_fontMap[textCast->fontId]);
//textCast->fontId = _vm->_wm->_fontMan->getFontIdByName(_vm->_currentScore->_fontMap[textCast->fontId]);
}

Graphics::MacFont macFont = Graphics::MacFont(textCast->fontId, textCast->fontSize, textCast->textSlant);
Expand Down
2 changes: 2 additions & 0 deletions engines/director/score.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -914,6 +914,8 @@ void Score::loadFontMap(Common::SeekableSubReadStreamEndian &stream) {
}

_fontMap[id] = font;
_vm->_wm->_fontMan->registerFontMapping(id, font);

debug(3, "Fontmap. ID %d Font %s", id, font.c_str());
currentRawPosition = stream.pos();
stream.seek(positionInfo);
Expand Down

0 comments on commit d8c8b78

Please sign in to comment.