How to convert any text / font to its representation of the bezier path?

I have a library of bezier paths to draw complex bezier paths without problems. Now I need to know how to read text or font and extract its path information in order to draw it as a path, not as text.

I came across a C application, FontForge . It does exactly what I need, selects any font and extracts its path information. But I need to know how to do this in order to add this function to my drawing library.

+3
source share
1 answer

You can use the GDI Windows function GetGlyphOutline.

BeginPath, TextOut, EndPath GetPath. . . ( , ).

+3

Source: https://habr.com/ru/post/1737809/


All Articles