更新 '3rdparty/fonts/fnt.cxx'

This commit is contained in:
zhongjin 2022-11-22 00:37:18 +08:00
parent 3b25947db1
commit fc7a97c3c6

View File

@ -189,6 +189,15 @@ void fntTexFont::getBBox ( const char *s,
}
if ( (cc & 0XE0) == 0XE0) {
SG_LOG(SG_GUI,SG_ALERT, "UTF8 cc=" << cc);
int x = cc << 4;
cc = (unsigned char) *(s++) ;
x= x + (cc<<2) >> 4;
int y = (cc & 0X03 )<< 6 + (unsigned char) *(s++) & 0X7F
cc = x * 256 + y;
}
if ( ! exists [ cc ] )