fumobox / FontLoaderZ

A simple font loader for Unity.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FontLoaderZ

Screenshot

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.

Requirement

  • Unity2020 or higher

It may work with older version of Unity, but I haven't tested.

License

MIT

How to import package

  1. Open the package manager window

  2. Select Add package from git URL

Add package from git URL

  1. Input the url below

https://github.com/fumobox/FontLoaderZ.git?path=/Packages/FontLoaderZ

Usage

Please see an example scene and code.

Tips

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

Assembly definition

About

A simple font loader for Unity.

License:MIT License


Languages

Language:C# 100.0%