r=bstell sr=erik
add x-johab font support
This commit is contained in:
ftang%netscape.com 2001-03-30 02:54:46 +00:00
Родитель 54327266de
Коммит f98b444b95
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -245,6 +245,8 @@ static nsFontCharSetInfo KSC5601 =
{ "ks_c_5601-1987", DoubleByteConvert, 1 };
static nsFontCharSetInfo X11Johab =
{ "x-x11johab", DoubleByteConvert, 1 };
static nsFontCharSetInfo Johab =
{ "x-johab", DoubleByteConvert, 1 };
static nsFontCharSetInfo ISO106461 =
{ nsnull, ISO10646Convert, 1 };
@ -387,6 +389,7 @@ static nsFontCharSetMap gCharSetMap[] =
{ "johabs-1", &X11Johab },
{ "johabsh-1", &X11Johab },
{ "ksc5601.1987-0", &KSC5601 },
{ "ksc5601.1992-3", &Johab },
{ "microsoft-cp1251", &CP1251 },
{ "misc-fontspecific", &Unknown },
{ "sgi-fontspecific", &Unknown },
@ -1926,6 +1929,7 @@ nsFontGTKSubstitute::GetWidth(const PRUnichar* aString, PRUint32 aLength)
PRUnichar buf[512];
PRUint32 len = Convert(aString, aLength, buf, sizeof(buf)/2);
return mSubstituteFont->GetWidth(buf, len);
}
gint