With source now, great! (btw the source-package link in the first post points to the wrong file)
Font rendering always has been a major weakness of fbgfx2, so this is a great contribution.
Thank you for sharing!
I took a quick look into the stb_truetype.h you're using and saw that e.g. hinting is still on the TODO list, which may be a problem when using small font sizes and/or small (display) resolutions.
As an external library ist still required (linked statically, only at compile time) I asked myself what are the pros/cons of using e.g. FreeType as a "backend" for your library instead of stb_truetype.h (because FreeType supports e.g. hinting and many other features). Maybe you could give a short explanation? Is this even possible?
St_W wrote:... because FreeType supports e.g. hinting and many other features ...
To place glyphs on the right position I need only ascend, descend, linegap and kerning
italic and bold comes from the font self what is "hinting" and which other feature do you need ?
If you remove all unsed parts (the backed OpenGL quad rendering stuff, and codepoint calls) from stb_truetype.h it's only 6 KB that grows up the *.exe.
@Roland the FreeBASIC wstring is unicode 2 bytes per char on windows 4 bytes on linux not UTF8 (so far I know) may be i'm wrong
I'm a german and never used wstring before ASCII codes only :-)
The two lines look correct in Notepad++ (I can see the russian and greek characters).
After I read your message, I tried to convert my file (using Notepad++) to UTF-16BE, and now the the program display correctly the characters. I also tried UTF-16LE, and it works too. Why is there no difference between UTF-16BE and UTF16-LE?