更新 '3rdparty/fonts/fnt.cxx'
This commit is contained in:
Vendored
+4
-4
@@ -169,7 +169,7 @@ void fntTexFont::getBBox ( const char *s,
|
|||||||
float l, r, b, t ;
|
float l, r, b, t ;
|
||||||
|
|
||||||
//zhongjin
|
//zhongjin
|
||||||
//SG_LOG(SG_GUI,SG_ALERT, "getBBox " << s);
|
SG_LOG(SG_GUI,SG_ALERT, "getBBox " << s);
|
||||||
|
|
||||||
|
|
||||||
l = r = b = t = 0.0f ;
|
l = r = b = t = 0.0f ;
|
||||||
@@ -213,7 +213,7 @@ void fntTexFont::getBBox ( const char *s,
|
|||||||
|
|
||||||
cc = x * 256 + y;
|
cc = x * 256 + y;
|
||||||
|
|
||||||
//SG_LOG(SG_GUI,SG_ALERT, "UTF8 cc=" << cc);
|
SG_LOG(SG_GUI,SG_ALERT, "GBK cc=" << cc);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -303,10 +303,10 @@ void fntTexFont::puts ( sgVec3 curpos, float pointsize, float italic, const char
|
|||||||
y= y + (cc & 0x3F);
|
y= y + (cc & 0x3F);
|
||||||
//SG_LOG(SG_GUI,SG_ALERT, "x=" << x << ",y=" << y);
|
//SG_LOG(SG_GUI,SG_ALERT, "x=" << x << ",y=" << y);
|
||||||
cc = x * 256 + y;
|
cc = x * 256 + y;
|
||||||
//SG_LOG(SG_GUI,SG_ALERT, "UTF8 cc=" << cc);
|
SG_LOG(SG_GUI,SG_ALERT, "GBK cc=" << cc);
|
||||||
}
|
}
|
||||||
|
|
||||||
SG_LOG(SG_GUI,SG_ALERT, "lputs->ow_putch " << cc);
|
SG_LOG(SG_GUI,SG_ALERT, "puts->low_putch " << cc);
|
||||||
|
|
||||||
//low_putch ( curpos, pointsize, italic, *s ) ;
|
//low_putch ( curpos, pointsize, italic, *s ) ;
|
||||||
low_putch ( curpos, pointsize, italic, cc ) ;
|
low_putch ( curpos, pointsize, italic, cc ) ;
|
||||||
|
|||||||
Reference in New Issue
Block a user