plan9port/src/libdraw
Russ Cox 16d0081989 libdraw: redo default font construction to be hidpi-safe
If $font is not set, the default font is constructed from
font data linked into every libdraw binary. That process
was different from the usual openfont code, and so it was
not hidpi-aware, resulting in very tiny fonts out of the box
on hidpi systems, until users set $font.

Fix this by using openfont to construct the default font,
by recognizing the name *default* when looking for
font and subfont file contents. Then all the hidpi scaling
applies automatically.

As a side effect, the concept of a 'default subfont' is gone,
as are display->defaultsubfont, getdefont, and memgetdefont.
2018-11-16 00:03:24 -05:00
..
alloc.c bye 2006-06-25 18:59:29 +00:00
allocimagemix.c
…
arith.c
…
bezier.c
…
border.c libdraw: add borderop 2008-12-03 02:13:38 -06:00
buildfont.c libdraw: redo default font construction to be hidpi-safe 2018-11-16 00:03:24 -05:00
bytesperline.c 64-bit fixes from lucho 2005-01-14 03:33:11 +00:00
chan.c I just hate to be pushed around by some @#$%^& machine. 2005-07-19 18:00:07 +00:00
cloadimage.c
…
computil.c
…
creadimage.c
…
cursor.c libdraw: add Cursor2, a 32x32 high-res cursor 2018-11-15 20:39:35 -05:00
debug.c
…
defont.h libdraw: redo default font construction to be hidpi-safe 2018-11-16 00:03:24 -05:00
draw.c
…
drawclient.c libdraw: add Cursor2, a 32x32 high-res cursor 2018-11-15 20:39:35 -05:00
drawfcall.c libdraw: add Cursor2, a 32x32 high-res cursor 2018-11-15 20:39:35 -05:00
drawrepl.c
…
egetrect.c
…
ellipse.c
…
emenuhit.c Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. 2006-04-01 19:24:03 +00:00
event.c libdraw: add Cursor2, a 32x32 high-res cursor 2018-11-15 20:39:35 -05:00
font.c libdraw: redo default font construction to be hidpi-safe 2018-11-16 00:03:24 -05:00
freesubfont.c libdraw: fix some memory leaks in font handling 2018-03-27 15:03:12 +02:00
getrect.c
…
getsubfont.c libdraw: redo default font construction to be hidpi-safe 2018-11-16 00:03:24 -05:00
icossin.c
…
icossin2.c
…
init.c libdraw: redo default font construction to be hidpi-safe 2018-11-16 00:03:24 -05:00
iprint.c add iprint 2006-06-25 23:52:51 +00:00
keyboard.c bye 2006-06-25 18:59:29 +00:00
line.c
…
loadimage.c
…
menuhit.c Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. 2006-04-01 19:24:03 +00:00
mkfile libdraw: redo default font construction to be hidpi-safe 2018-11-16 00:03:24 -05:00
mkfont.c libdraw: refine hidpi font selection 2015-02-17 20:52:06 +00:00
mouse.c libdraw: add Cursor2, a 32x32 high-res cursor 2018-11-15 20:39:35 -05:00
newwindow.c
…
openfont.c libdraw: redo default font construction to be hidpi-safe 2018-11-16 00:03:24 -05:00
poly.c
…
readimage.c
…
readsubfont.c libdraw: redo default font construction to be hidpi-safe 2018-11-16 00:03:24 -05:00
rectclip.c
…
replclipr.c
…
rgb.c
…
scroll.c
…
snarf.c new 2006-06-25 19:00:14 +00:00
string.c libdraw: autoscale fonts when moving between low and high dpi screens 2015-02-17 20:51:23 +00:00
stringbg.c
…
stringsubfont.c
…
stringwidth.c libdraw: autoscale fonts when moving between low and high dpi screens 2015-02-17 20:51:23 +00:00
subfont.c silence fprint 2005-07-14 00:03:57 +00:00
subfontcache.c libdraw: redo default font construction to be hidpi-safe 2018-11-16 00:03:24 -05:00
subfontname.c libdraw: redo default font construction to be hidpi-safe 2018-11-16 00:03:24 -05:00
test.c
…
unix.c
…
unloadimage.c bye 2006-06-25 18:59:29 +00:00
window.c
…
writeimage.c
…
writesubfont.c
…
wsys.c event 2006-06-25 21:04:07 +00:00