Support for loading a scalable graphics font.
authorTimo Korvola <tkorvola@iki.fi>
Thu, 8 Mar 2018 20:43:35 +0000 (22:43 +0200)
committerDavid Griffith <dave@661.org>
Sun, 11 Mar 2018 11:48:50 +0000 (04:48 -0700)
commitccbe895ddc836dacca82f567ffc5fd421fb63090
tree74d294879fd984665f12143954961572cb4a0e48
parent5181aac9a10fbf326749b25bf6042fe3273ca1ce
Support for loading a scalable graphics font.

A graphics font can be specified with the "graphics" option
(Fonts section) of .sfrotzrc.  The font is assumed to have fixed width
equal to height and em size (no line gap).  It is scaled to match the
width and height of the fixed width text font (not usually equal,
so the graphics font gets stretched).  Any size specification in the
option is ignored.

Now someone just needs to draw that font.  I made a quick autotrace
in Fontforge but it is rather hideous.
src/sdl/sf_fonts.c
src/sdl/sf_frotz.h
src/sdl/sf_ftype.c
src/sdl/sf_resource.c