更新 '3rdparty/fonts/fnt.cxx'
This commit is contained in:
parent
3b25947db1
commit
fc7a97c3c6
9
3rdparty/fonts/fnt.cxx
vendored
9
3rdparty/fonts/fnt.cxx
vendored
@ -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 ] )
|
||||
|
Loading…
Reference in New Issue
Block a user