mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
make bitmap fonts support their space character. bug 386389. r=vlad
This commit is contained in:
parent
f48a6700bf
commit
da26ffbd92
@ -376,13 +376,13 @@ gfxWindowsPlatform::FontGetCMapDataProc(nsStringHashKey::KeyType aKey,
|
|||||||
{
|
{
|
||||||
if (aFontEntry->mFontType != TRUETYPE_FONTTYPE) {
|
if (aFontEntry->mFontType != TRUETYPE_FONTTYPE) {
|
||||||
/* bitmap fonts suck -- just claim they support everything
|
/* bitmap fonts suck -- just claim they support everything
|
||||||
between 0x21 and 0xFF. All the ones on my system do...
|
between 0x20 and 0xFF. All the ones on my system do...
|
||||||
If we really wanted to test which characters in this
|
If we really wanted to test which characters in this
|
||||||
range were supported we could just generate a string with
|
range were supported we could just generate a string with
|
||||||
each codepoint and do GetGlyphIndicies or similar to determine
|
each codepoint and do GetGlyphIndicies or similar to determine
|
||||||
what is there.
|
what is there.
|
||||||
*/
|
*/
|
||||||
for (PRUint16 ch = 0x21; ch <= 0xFF; ch++)
|
for (PRUint16 ch = 0x20; ch <= 0xFF; ch++)
|
||||||
aFontEntry->mCharacterMap.set(ch);
|
aFontEntry->mCharacterMap.set(ch);
|
||||||
return PL_DHASH_NEXT;
|
return PL_DHASH_NEXT;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user