diff options
author | Russ Cox <rsc@swtch.com> | 2018-11-15 23:52:05 -0500 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2018-11-16 00:03:24 -0500 |
commit | 16d00819899260085ee10949012b07bf1c203db6 (patch) | |
tree | 540151e0f43ef7e08255d31f5c68b4100c783b93 /font/shinonome/k12min.6200 | |
parent | 3ebbb99ce3b13357f4dfb0156877c6e5892de5aa (diff) | |
download | plan9port-16d00819899260085ee10949012b07bf1c203db6.tar.gz plan9port-16d00819899260085ee10949012b07bf1c203db6.tar.bz2 plan9port-16d00819899260085ee10949012b07bf1c203db6.zip |
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.
Diffstat (limited to 'font/shinonome/k12min.6200')
0 files changed, 0 insertions, 0 deletions