Skip to content

Custom Fallback Fonts

yvt edited this page Mar 9, 2014 · 4 revisions

OpenSpades 0.0.10 added support for Unicode characters by using "fallback fonts".

When font rendering subsystem has to render a character, it first searches built-in font, which covers most of Latin-1 charset, for the matching glyph. When one was not found, it searches externally provided fonts called "fallback fonts".

Create Fallback Font

Currently convenient way to create fallback fonts is not provided. Instead you have to compile an conversion software called BdfToOSFont. Because of the complexity of BDF format, this software doesn't handle BDF font files in a correct way, so you're likely to have to modify the source code before compiling it, for successful conversion.

See also