diff --git a/3rdparty/fonts/fnt.cxx b/3rdparty/fonts/fnt.cxx index 5e3d381..54eddc3 100644 --- a/3rdparty/fonts/fnt.cxx +++ b/3rdparty/fonts/fnt.cxx @@ -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 ] )