Re-hello. And it works for Chineese ideograms on Linux too!:
The trick for Linux: 1) In console look for the font installed compatible with Chinese ideograms: `$ > fc-list :lang=zh` 2) Chosse one, I took randomily **'Noto Serif CJK TC'** 3) In code, add the font name (see previous post): ``` f := tfont.create; f.name := 'Noto Serif CJK TC'; ``` Fre;D ________________________________ De : Fred van Stappen <fi...@hotmail.com> Envoyé : dimanche 13 mars 2022 01:28 À : mseide-msegui-talk@lists.sourceforge.net <mseide-msegui-talk@lists.sourceforge.net> Objet : [MSEide-MSEgui-talk] Draw text using BGRABitmap Hello everybody. Here how to draw text using BGRABitmap : //drawing some text with MSEgui canvas f := tfont.create; f.height := 20; txt := 'نبوب'; bmp.canvas.drawstring(text, makepoint((bmp.width - bmp.canvas.getstringwidth(text, f)) div 2, bmp.height div 6), f); f.free; Fre;D
_______________________________________________ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk