Commit graph

7 commits

Author SHA1 Message Date
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
Erik Quanstrom
33cdf63251 libmemdraw: fix int size bug
R=rsc, quanstro
CC=plan9port.codebot
http://codereview.appspot.com/6657043
2012-10-21 12:08:49 -04:00
Russ Cox
0c9c620f39 fix type-punned pointer warnings from gcc
R=rsc
http://codereview.appspot.com/396042
2010-03-10 14:50:33 -08:00
Russ Cox
8e5ae416a7 libmemdraw: allow wider images
http://codereview.appspot.com/98067
2009-07-29 11:28:55 -04:00
Russ Cox
4aad1a3258 merge 2009-04-30 07:29:24 -07:00
rsc
e0ef95dce1 add stub routines 2006-06-25 19:28:25 +00:00
rsc
324891a557 separate out 2006-06-25 18:58:06 +00:00