зеркало из https://github.com/mozilla/gecko-dev.git
#108012 text measurment on win xp have problem with unicode while word-spacing and letter-spacing is present
r= smontagu sr=attinasi
This commit is contained in:
Родитель
f514ee917e
Коммит
797782a102
|
@ -1501,15 +1501,6 @@ NS_IMETHODIMP nsRenderingContextWin :: GetWidth(PRUnichar ch, nscoord &aWidth, P
|
||||||
{
|
{
|
||||||
PRUnichar buf[1];
|
PRUnichar buf[1];
|
||||||
buf[0] = ch;
|
buf[0] = ch;
|
||||||
#ifdef IBMBIDI
|
|
||||||
WORD charType=0;
|
|
||||||
if (::GetStringTypeW(CT_CTYPE3, &ch, 1, &charType) && (charType & C3_DIACRITIC) && !(charType & C3_ALPHA)) {
|
|
||||||
// aWidth = 0;
|
|
||||||
GetWidth(buf, 1, aWidth, aFontID);
|
|
||||||
aWidth *=-1;
|
|
||||||
return NS_OK;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
return GetWidth(buf, 1, aWidth, aFontID);
|
return GetWidth(buf, 1, aWidth, aFontID);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче