musescore/MuseScore — pull request #558 by mgavioli (2013-11-19 13:16:33+00:00)
Title: Ensure Bravura is the fallback font - Step 1

1) _ScoreFont::sym()_ was looking for the wrong fallback font, as it was looking for font 0 and font 0 was Emmentaler. Corrected.

2) _ScoreFont::draw()_ was not falling back to Bravura at all, drawing the empty string (= nothing) for undefined glyphs of the current font. The first step is to have _ScoreFont::draw()_ to look for the 'right' string to draw: current font string if defined, Bravura string if not; this usually results in an hollow box (undefined character) being drawn and at least alerts the user that the font does not supply the intended glyph.

The next step will be to also use the right font. This can be done in several ways:

1. having _ScoreFont::sym()_ to also return a font (in an additional _ScoreFont*_ parameter);
2. adding a specific function _ScoreFont::font(SymId id)_, doing the same test _ScoreFont::sym()_ is doing and returning the chosen font.

Please advise how to proceed.