ermig1979 / Simd

C++ image processing and machine learning library with using of SIMD: SSE, AVX, AVX-512, AMX for x86/x64, VMX(Altivec) and VSX(Power7) for PowerPC, NEON for ARM.
http://ermig1979.github.io/Simd
MIT License
2.03k stars 406 forks source link

How to draw extended ASCII characters #192

Open s-trinh opened 2 years ago

s-trinh commented 2 years ago

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.

ermig1979 commented 2 years ago

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.

s-trinh commented 2 years ago

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.