Simd icon indicating copy to clipboard operation
Simd copied to clipboard

How to draw extended ASCII characters

Open s-trinh opened this issue 3 years ago • 2 comments
trafficstars

Hi,

The Font class is very useful to us for debugging purposes. Could you give a procedure or some advices about how to extend it in order to support the extended ASCII characters? Typically to be able to draw the French accents.

Thanks.

s-trinh avatar Jan 05 '22 23:01 s-trinh

Hi! I looked source codes of Font class, and function GenerateFont which generates data for font rendering. Unfortunately these algorithms are not extendable to the rest symbols besides ASCII table. This Font class was specialy designed for debug purposes only, so this restricted functionaly can be overcome only by using of external library for font drawing.

ermig1979 avatar Jan 06 '22 06:01 ermig1979

Thanks for the answer.

I have found stb_truetype.h for a potential replacement. Feel free to propose if you know another solution.

You can keep this issue open for potential contribution or close it if you want.

s-trinh avatar Jan 06 '22 20:01 s-trinh