Commit graph

14 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
8581c2b567 libdraw: add Cursor2, a 32x32 high-res cursor
Also add setcursor2, esetcursor2, and draw protocol encoding.
Calls to the old setcursor, esetcursor create a 32x32 by
pixel doubling when needed.
2018-11-15 20:39:35 -05:00
rsc
8159666d6a add iprint 2006-06-25 23:52:51 +00:00
rsc
150f88023b event 2006-06-25 21:04:07 +00:00
rsc
74dc60da74 bye 2006-06-25 18:59:29 +00:00
rsc
41e0f84ca6 break x11 for sure 2005-02-02 22:04:41 +00:00
rsc
c8b6342d3c Many small edits. 2005-01-13 04:49:19 +00:00
rsc
fa009f9d72 scrolling 2004-06-11 04:13:24 +00:00
rsc
1b135a7805 clean up when finished.
don't set PLAN9
don't set PLAN9
2004-04-19 23:04:36 +00:00
rsc
e543c475e7 fix drawread, add changes from david tolpin 2004-04-19 05:56:17 +00:00
rsc
912fba95e7 Changes for Mac OS X. Most important is stack sizes in samterm,
which were completely bogus.  (Libthread used to ignore them but
not anymore.  Maybe we really should ignore them, but that breaks
Venti, which needs *really* big stacks.)
2003-11-24 22:39:06 +00:00
rsc
16a7096669 Add drawsetlabel(Display*, char*).
Turn window destruction into "hangup" note.
Fix (?) snarf buffer management.
Add latin1 keyboard translation.
2003-11-23 18:15:43 +00:00
rsc
522b0689c3 Reorg 2003-09-30 19:05:50 +00:00
rsc
76193d7cb0 Initial revision 2003-09-30 17:47:42 +00:00