A simple font loader for Unity.
This library provides a function to get contour points from a font binary.
It supports TTF and OTF fonts.
This library does not include a mesh generator.
If you want to generate glyph meshs, GlyphMeshZ may help you. Please search GlyphMeshZ on Unity asset store.
- Unity2020 or higher
It may work with older version of Unity, but I haven't tested.
MIT
-
Open the package manager window
-
Select Add package from git URL
- Input the url below
https://github.com/fumobox/FontLoaderZ.git?path=/Packages/FontLoaderZ
Please see an example scene and code.
To read a font as text asset, an extension of file must be changed to .bytes.
Roboto-Regular.ttf -> Roboto-Regular.bytes
You need to add FontLoaderZ to Assembly Definition References