golang / freetype

The Freetype font rasterizer in the Go programming language.
Other
778 stars 183 forks source link

Fallback fonts #54

Open CamilleScholtz opened 6 years ago

CamilleScholtz commented 6 years ago

How would I go about handling fallback fonts? Say I want to "write" a string with both japanese and latin characters, but the font I loaded only contains loaded characters. Would it somehow be possible to merge two truetype.Fonts into one?

Wohlstand commented 6 years ago

If following outside of FreeType internal, I have made next way:

AndreKR commented 5 years ago

I just needed the same thing, so I made this: https://github.com/AndreKR/multiface

Usage: https://github.com/AndreKR/multiface/blob/master/multiface_test.go