Commit graph

10 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
Russ Cox
b3a110affa man: document font syntaxes
Change-Id: Id441d4df192c47388af6b5da306f14d90f066d18
Reviewed-on: https://plan9port-review.googlesource.com/1173
Reviewed-by: Russ Cox <rsc@swtch.com>
2015-02-17 20:53:15 +00:00
Russ Cox
213fc4f6fb libdraw: autoscale fonts when moving between low and high dpi screens
Change-Id: I6093955b222db89dfe437fb723593b173d888d01
Reviewed-on: https://plan9port-review.googlesource.com/1170
Reviewed-by: Russ Cox <rsc@swtch.com>
2015-02-17 20:51:23 +00:00
Russ Cox
9f3851871e libdraw: add scalesize
R=rsc
http://codereview.appspot.com/6855092
2012-11-25 22:15:57 -05:00
rsc
c8b6342d3c Many small edits. 2005-01-13 04:49:19 +00:00
rsc
c3674de413 use macro for /usr/local/plan9 2005-01-11 17:37:33 +00:00
rsc
058b0118a5 Some man pages. 2005-01-03 06:40:20 +00:00
rsc
b5fdffeeed Mostly path name updates 2004-04-19 19:22:56 +00:00
rsc
bf8a59fa01 Rewrite page(2) references to page(3).
Add description of new libmach.
2004-04-11 03:42:27 +00:00
rsc
cfa37a7b11 Lots of man pages. 2004-04-10 18:53:55 +00:00