3D mesh from text ?

Hi everyone !

I noticed that Blender can extract 3D models directly from text with any font and size.

I am looking to identify and understand the source code which is doing so. But Blender is a really huge project and I can’t figure it out.

I already looked the online source code (https://developer.blender.org/diffusion/B/browse/master/) but I can’t figure out where the magic happens. I try several key words like TTF or extruded but nothing helpful comes out.

Can you help me ?
Thank you very much !

This is spread across a few places:

./source/blender/blenlib/intern/freetypefont.c, freetypechar_to_vchar - loads TTF into `VChar` structs.
./source/blender/blenkernel/intern/font.c, BKE_vfont_to_curve_ex - formats body-text & `VChar` into splines.
./source/blender/blenkernel/intern/displist.c, do_makeDispListCurveTypes - tessellates splines for drawing.