aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/fontsrv/a.h
AgeCommit message (Collapse)AuthorFilesLines
2018-11-16libdraw: redo default font construction to be hidpi-safeRuss Cox1-1/+0
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.
2015-08-27fontsrv: use 64 chars per subfont instead of 256Russ Cox1-1/+6
Makes loading faster, and makes larger sizes not too wide. Change-Id: I076c83fdb9577c1e596de45558f38ea93e3a2a31 Reviewed-on: https://plan9port-review.googlesource.com/1360 Reviewed-by: Russ Cox <rsc@swtch.com>
2015-02-17fontsrv: use CoreText API on OS XRuss Cox1-1/+2
This gets us font fallback for free and avoids use of a deprecated API that might go away some day. Change-Id: I4b9b1a1ce3e6d98bfb407e3baea13f4adfe2c26a Reviewed-on: https://plan9port-review.googlesource.com/1160 Reviewed-by: Russ Cox <rsc@swtch.com>
2012-12-01fontsrv: scaled pjwRuss Cox1-0/+2
R=rsc https://codereview.appspot.com/6854130
2012-10-21fontsrv: x11 supportYuval Pavel Zholkover1-0/+4
R=rsc, 0intro CC=plan9port.codebot http://codereview.appspot.com/6739047
2009-07-08mergeRuss Cox1-0/+23