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
9e0d3750c5
9term, win: work around bsd linker nonsense
...
Change-Id: Ifcef0636ee1e1fd0f9b06a8d1a99d58fae831318
Reviewed-on: https://plan9port-review.googlesource.com/2780
Reviewed-by: Russ Cox <rsc@swtch.com >
2017-01-06 20:20:33 +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
Russ Cox
d0e0701913
devdraw, libdraw: add display->dpi
...
Fixed at 100 right now, but the plan is to make it accurate
and then use it.
R=rsc
http://codereview.appspot.com/6856091
2012-11-25 21:41:52 -05:00
Russ Cox
54bebe6a69
libdraw: add visibleclicks mode
...
R=rsc
http://codereview.appspot.com/6501137
2012-09-17 12:39:49 -04:00
rsc
74dc60da74
bye
2006-06-25 18:59:29 +00:00
rsc
dff99a80b6
do RFNOTEG in initdraw (Anselm Garbe)
2006-05-20 05:01:26 +00:00
rsc
cbeb0b26e4
Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.
2006-04-01 19:24:03 +00:00
rsc
297cded760
avoid nil freeimage
2005-12-29 20:59:24 +00:00
rsc
148f25d351
debugging help
2005-11-07 02:46:38 +00:00
rsc
abe4cd41cb
less graceful shutdown but avoid deadlocks
2005-07-27 20:38:08 +00:00
rsc
7ba8aa0c70
start with white instead of black
2005-07-24 14:01:15 +00:00
rsc
670dd11a8a
be more faithful to plan 9 environment --
...
allocate window on top of screen.
2005-03-18 18:55:47 +00:00
rsc
b20f06ab9c
use new thread library
2004-12-26 23:24:32 +00:00
rsc
76193d7cb0
Initial revision
2003-09-30 17:47:42 +00:00