darkf / darkfo

DarkFO, a post-nuclear RPG remake (of Fallout 2)
Apache License 2.0
136 stars 12 forks source link

FO2 font (.FON) files should be supported #32

Open darkf opened 8 years ago

darkf commented 8 years ago

They can be converted to a bitmap font and easily rendered in Canvas/WebGL (especially useful for WebGL since we can't rely on the browser to render text.)

One problem is using this in the UI, since we'd have to somehow get CSS to use bitmap fonts. Using an <img> for each glyph seems unreasonably overkill. Perhaps a <div> per glyph (using appropriate background image positioning), but that is also very DOM-heavy and should ideally be avoided.

It might be worth looking into if we could convert bitmap fonts into a natively supported font type (TTF/WOFF/etc).