mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-17 00:44:19 +00:00
This commit is contained in:
parent
24cd229ec7
commit
ebddf597b4
1 changed files with 10 additions and 1 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue