Commits
- Commit:
16d00819899260085ee10949012b07bf1c203db6
- From:
- Russ Cox <rsc@swtch.com>
- Date:
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.
- Commit:
8581c2b56763d7787604c8c833d2bd78bdc6a466
- From:
- Russ Cox <rsc@swtch.com>
- Date:
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.
- Commit:
9e0d3750c543de49ccc43512cb3fbaa1f42f1648
- From:
- Russ Cox <rsc@swtch.com>
- Date:
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>
- Commit:
79555a9987d62cd15b77df2b4328e963583a160e
- From:
- Russ Cox <rsc@swtch.com>
- Date:
libdraw: refine hidpi font selection
Change-Id: Id1e6a2630713024a1925ad1341bb9c846f82e93e
Reviewed-on: https://plan9port-review.googlesource.com/1171
Reviewed-by: Russ Cox <rsc@swtch.com>
- Commit:
213fc4f6fb26bb5781ea3e489bf4cc5c2aca591e
- From:
- Russ Cox <rsc@swtch.com>
- Date:
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>
- Commit:
77f23268f7073b254e91748d4764768bab6d6f1f
- From:
- Russ Cox <rsc@swtch.com>
- Date:
libdraw: add 2*font syntax for scaled fonts
An experiment.
Change-Id: I40660a211b8372701597d80f7e86917e94cccbaa
Reviewed-on: https://plan9port-review.googlesource.com/1161
Reviewed-by: Russ Cox <rsc@swtch.com>
- Commit:
94dae4befca074c0415b1ba448b69a9fa16c1981
- From:
- Russ Cox <rsc@swtch.com>
- Date:
libdraw: change DefaultDPI to 133
Let's see if that's any better.
R=rsc
http://codereview.appspot.com/6850103
- Commit:
9f3851871ed6edb544dfe5b518bff0121d6c020b
- From:
- Russ Cox <rsc@swtch.com>
- Date:
libdraw: add scalesize
R=rsc
http://codereview.appspot.com/6855092
- Commit:
323e7d0193999a22e605786d06fcff76cb780e38
- From:
- Russ Cox <rsc@swtch.com>
- Date:
draw.h: add DefaultDPI
R=rsc
http://codereview.appspot.com/6858071
- Commit:
d0e0701913f3aede1fcb256f3d1e9c60c9af6edf
- From:
- Russ Cox <rsc@swtch.com>
- Date:
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
- Commit:
76a1b3c9c658061a491b10384118482770fbef71
- From:
- rsc <devnull@localhost>
- Date:
new draw interface
- Commit:
cbeb0b26e4c7caa8d1b47de791a7418dc20a4567
- From:
- rsc <devnull@localhost>
- Date:
Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.
- Commit:
bebdea4e8e1a93c14099a7b8182ddfcb6d2cae14
- From:
- rsc <devnull@localhost>
- Date:
use carbon for pasteboard
- Commit:
32bb6c879450f715f10b88b181a8da04ca04831b
- From:
- rsc <devnull@localhost>
- Date:
add ABGR32
- Commit:
1a0954abb80f92cd9940a21f11dd8f3a84518579
- From:
- rsc <devnull@localhost>
- Date:
autolib