plan9port/src/libmemdraw
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-stub.c add stub routines 2006-06-25 19:28:25 +00:00
alloc.c libmemdraw: fix int size bug 2012-10-21 12:08:49 -04:00
arc.c separate out 2006-06-25 18:58:06 +00:00
arctest.c separate out 2006-06-25 18:58:06 +00:00
cload-stub.c add stub routines 2006-06-25 19:28:25 +00:00
cload.c separate out 2006-06-25 18:58:06 +00:00
cmap.c separate out 2006-06-25 18:58:06 +00:00
cread.c separate out 2006-06-25 18:58:06 +00:00
draw-stub.c add stub routines 2006-06-25 19:28:25 +00:00
draw.c fix type-punned pointer warnings from gcc 2010-03-10 14:50:33 -08:00
drawtest.c merge 2009-04-30 07:29:24 -07:00
ellipse.c separate out 2006-06-25 18:58:06 +00:00
fill-stub.c add stub routines 2006-06-25 19:28:25 +00:00
fillpoly.c separate out 2006-06-25 18:58:06 +00:00
hwdraw.c separate out 2006-06-25 18:58:06 +00:00
iprint.c separate out 2006-06-25 18:58:06 +00:00
line.c separate out 2006-06-25 18:58:06 +00:00
load-stub.c add stub routines 2006-06-25 19:28:25 +00:00
load.c separate out 2006-06-25 18:58:06 +00:00
mkcmap.c separate out 2006-06-25 18:58:06 +00:00
mkfile libdraw: redo default font construction to be hidpi-safe 2018-11-16 00:03:24 -05:00
openmemsubfont.c separate out 2006-06-25 18:58:06 +00:00
poly.c separate out 2006-06-25 18:58:06 +00:00
read.c separate out 2006-06-25 18:58:06 +00:00
string.c separate out 2006-06-25 18:58:06 +00:00
subfont.c separate out 2006-06-25 18:58:06 +00:00
unload-stub.c add stub routines 2006-06-25 19:28:25 +00:00
unload.c separate out 2006-06-25 18:58:06 +00:00
write.c libmemdraw: allow wider images 2009-07-29 11:28:55 -04:00