Font23D Save

Convert any text to a 3d mesh using any font style

Project README

Font23D

Font23D is a C++ library for creating a 3d mesh of any Text in the given True type font.

Demo: Font23D running on browser using webassembly

Compile the code

Install the dependancies

sudo apt install libfreetype6-dev

Now just run the bash script to get the OBJ file output.

sh compile.sh

Sample Outputs

Below outputs are generated using different fonts Screenshot Font23D with Coolveticarg Font Screenshot Font23D with HP Font Screenshot Font23D with Hursheys Font

Unicode Support Screenshot Font23D with Tamil Font

Instruction to use:

  • The Library uses FreeType Library to decode the fonts and converts the Text into Vector.
  • Then the vector data is converted into triangles using Ploy2Tri library.
  • This gives us the triangles of the complete text in a plane.
  • The plane is then extruded into 3d object and then creates a closed mesh.
  • The Mesh is then saved as OBJ file.

Plans for Future:

  • Support WebAssembly and create sample web page to convert input text using uploaded font to 3D mesh.

Contributions:

  • Thanks to J.Scheurich from White Dune Project for suggesting fixes for Face culling.
  • Thanks to DaegyuMin for fixing a bug in missing triangle.
Open Source Agenda is not affiliated with "Font23D" Project. README Source: codetiger/Font23D
Stars
126
Open Issues
2
Last Commit
1 year ago
Repository

Open Source Agenda Badge

Open Source Agenda Rating