aboutsummaryrefslogtreecommitdiff
path: root/src/libdraw/openfont.c
Commit message (Collapse)AuthorAgeFilesLines
* libdraw: handle larger number of subfontsRuss Cox2020-05-291-1/+1
|
* Trivial changes: whitespace and modes.Dan Cross2020-01-101-14/+14
| | | | | | | | | Remote whitespace at the ends of lines. Remove blank lines from the ends of files. Change modes on source files so that they are not executable. Signed-off-by: Dan Cross <cross@gajendra.net>
* libdraw: redo default font construction to be hidpi-safeRuss Cox2018-11-161-0/+7
| | | | | | | | | | | | | | | | 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.
* libdraw: fix error in the previous commitXiao-Yong Jin2018-03-271-1/+1
|
* libdraw: fix some memory leaks in font handlingXiao-Yong Jin2018-03-271-6/+14
|
* fontsrv: use 64 chars per subfont instead of 256Russ Cox2015-08-271-1/+1
| | | | | | | | 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>
* libdraw, acme: fix acme segfault triggered passing an invalid fontGleydson Soares2015-05-151-0/+2
| | | | | | | | acme -f nosuchfont Change-Id: Iaa727db02b43e63082130796ec97c0efb7fe2b19 Reviewed-on: https://plan9port-review.googlesource.com/1220 Reviewed-by: Russ Cox <rsc@swtch.com>
* libdraw: refine hidpi font selectionRuss Cox2015-02-171-1/+40
| | | | | | Change-Id: Id1e6a2630713024a1925ad1341bb9c846f82e93e Reviewed-on: https://plan9port-review.googlesource.com/1171 Reviewed-by: Russ Cox <rsc@swtch.com>
* libdraw: autoscale fonts when moving between low and high dpi screensRuss Cox2015-02-171-13/+152
| | | | | | Change-Id: I6093955b222db89dfe437fb723593b173d888d01 Reviewed-on: https://plan9port-review.googlesource.com/1170 Reviewed-by: Russ Cox <rsc@swtch.com>
* libdraw: add 2*font syntax for scaled fontsRuss Cox2015-02-171-1/+12
| | | | | | | | An experiment. Change-Id: I40660a211b8372701597d80f7e86917e94cccbaa Reviewed-on: https://plan9port-review.googlesource.com/1161 Reviewed-by: Russ Cox <rsc@swtch.com>
* mergeRuss Cox2009-07-081-4/+57
|
* Today's changes.rsc2004-03-251-1/+3
| | | | More changes.
* various tweaks.rsc2004-02-091-0/+1
|
* Add support for user-level 9P servers/clients and various bug fixes to go ↵rsc2003-12-111-8/+2
| | | | with them.
* Rewrite /lib/font/bit to $PLAN9/font when open fails.rsc2003-10-131-1/+22
|
* Lots of X fixes.rsc2003-10-111-1/+3
|
* Initial revisionrsc2003-09-301-0/+32