Support for querying current font size.
authorTimo Korvola <tkorvola@iki.fi>
Fri, 9 Mar 2018 21:23:19 +0000 (23:23 +0200)
committerDavid Griffith <dave@661.org>
Sun, 11 Mar 2018 11:48:51 +0000 (04:48 -0700)
commit700c42088aea8d82218f6d5fbb70c791b46457ed
tree432c044fc711b8539629a61586f21b1f5ec126d5
parentccbe895ddc836dacca82f567ffc5fd421fb63090
Support for querying current font size.

os_font_data(0, &h, &w) stores the current font height and width
into h and w, also accounting for style (with a non-zero font
os_font_data returns dimensions for Roman style as before).
Currently properly implemented only in SDL where the call returns true.
On other front ends it returns false and either does not touch h & w
(curses) or sets them correctly anyway (dos).
src/sdl/sf_fonts.c