1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-17 00:44:19 +00:00
This commit is contained in:
jules 2007-11-20 13:12:50 +00:00
parent 24cd229ec7
commit ebddf597b4

View file

@ -302,7 +302,16 @@ const TypefaceGlyphInfo* Typeface::getGlyph (const juce_wchar character) throw()
if (CharacterFunctions::isWhitespace (character) && character != L' ')
{
return getGlyph (L' ');
const TypefaceGlyphInfo* spaceGlyph = getGlyph (L' ');
if (spaceGlyph != 0)
{
// Add a copy of the empty glyph, mapped onto this character
addGlyph (character, spaceGlyph->getPath(), spaceGlyph->getHorizontalSpacing (0));
spaceGlyph = (const TypefaceGlyphInfo*) glyphs [(int) lookupTable [character]];
}
return spaceGlyph;
}
else if (character != defaultCharacter)
{