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

This commit is contained in:
zhongjin 2022-11-22 01:06:35 +08:00
parent ab1208363b
commit a728305573

View File

@ -190,7 +190,7 @@ void fntTexFont::getBBox ( const char *s,
if ( (cc & 0XE0) == 0XE0) { if ( (cc & 0XE0) == 0XE0) {
SG_LOG(SG_GUI,SG_ALERT, "UTF8 cc=" << cc); SG_LOG(SG_GUI,SG_ALERT, "UTF8 cc=" << cc);
int x = cc << 4; int x = (cc & 0X0F) << 4;
SG_LOG(SG_GUI,SG_ALERT, "UTF8 cc<<4 " << x); SG_LOG(SG_GUI,SG_ALERT, "UTF8 cc<<4 " << x);
@ -199,9 +199,9 @@ void fntTexFont::getBBox ( const char *s,
SG_LOG(SG_GUI,SG_ALERT, "UTF81 cc=" << cc); SG_LOG(SG_GUI,SG_ALERT, "UTF81 cc=" << cc);
x= x + ((cc>>2) & 0x0F); x= x + ((cc & 0x3C) >>2 ) ;
int y = (cc & 0x03) * 0X3F; int y = (cc & 0x03) << 6 ;
cc = (unsigned char) *(s++) ; cc = (unsigned char) *(s++) ;