1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

dtinfo: Fix a font issue to make the multilingual text can be

displayed correctly.
This commit is contained in:
Liang Chang 2021-11-14 04:33:11 +08:00
parent 3f950009bc
commit e2216838d1

View file

@ -580,7 +580,7 @@ CanvasRenderer::_dofont(const FeatureSet &fs, Symbol** symbols)
len = strlen(font);
xlfd = (char*)realloc(xlfd, slen + len + 3);
*((char *) memcpy(xlfd + slen, ",", 1) + 1) = '\0';
*((char *) memcpy(xlfd + slen + 1, ",", len) + len) = '\0';
*((char *) memcpy(xlfd + slen + 1, font, len) + len) = '\0';
}
// otherwise, just dup the font streing
else {