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 Initial import. 2003-09-30 17:47:42 +00:00
arith.c Lots of X fixes. 2003-10-11 02:47:43 +00:00
bezier.c Initial import. 2003-09-30 17:47:42 +00:00
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 Initial import. 2003-09-30 17:47:42 +00:00
computil.c Initial import. 2003-09-30 17:47:42 +00:00
creadimage.c make it possible to access fonts without a display. 2004-04-25 20:26:27 +00:00
cursor.c libdraw: add Cursor2, a 32x32 high-res cursor 2018-11-15 20:39:35 -05:00
debug.c Initial import. 2003-09-30 17:47:42 +00:00
defont.h libdraw: redo default font construction to be hidpi-safe 2018-11-16 00:03:24 -05:00
draw.c Initial import. 2003-09-30 17:47:42 +00:00
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 Initial import. 2003-09-30 17:47:42 +00:00
egetrect.c Initial import. 2003-09-30 17:47:42 +00:00
ellipse.c SunOS can rot in hell. 2004-03-26 01:59:35 +00:00
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 Initial import. 2003-09-30 17:47:42 +00:00
getsubfont.c libdraw: redo default font construction to be hidpi-safe 2018-11-16 00:03:24 -05:00
icossin.c Initial import. 2003-09-30 17:47:42 +00:00
icossin2.c Initial import. 2003-09-30 17:47:42 +00:00
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 Initial import. 2003-09-30 17:47:42 +00:00
loadimage.c Initial import. 2003-09-30 17:47:42 +00:00
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 Initial import. 2003-09-30 17:47:42 +00:00
openfont.c libdraw: redo default font construction to be hidpi-safe 2018-11-16 00:03:24 -05:00
poly.c Initial import. 2003-09-30 17:47:42 +00:00
readimage.c make it possible to access fonts without a display. 2004-04-25 20:26:27 +00:00
readsubfont.c libdraw: redo default font construction to be hidpi-safe 2018-11-16 00:03:24 -05:00
rectclip.c Initial import. 2003-09-30 17:47:42 +00:00
replclipr.c Initial import. 2003-09-30 17:47:42 +00:00
rgb.c Initial import. 2003-09-30 17:47:42 +00:00
scroll.c scrolling 2004-06-11 04:13:24 +00:00
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 Initial import. 2003-09-30 17:47:42 +00:00
stringsubfont.c Initial import. 2003-09-30 17:47:42 +00:00
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 Initial import. 2003-09-30 17:47:42 +00:00
unix.c SunOS can rot in hell. 2004-03-26 01:59:35 +00:00
unloadimage.c bye 2006-06-25 18:59:29 +00:00
window.c Initial import. 2003-09-30 17:47:42 +00:00
writeimage.c Initial import. 2003-09-30 17:47:42 +00:00
writesubfont.c Initial import. 2003-09-30 17:47:42 +00:00
wsys.c event 2006-06-25 21:04:07 +00:00