summaryrefslogtreecommitdiffstats
path: root/src/cmd/fontsrv/osx.c
Commit message (Collapse)AuthorAgeFilesLines
* devdraw: use consistent mac-* prefix on macOS filesRuss Cox2020-01-131-362/+0
| | | | We were using osx- and cocoa- but it's not even OS X anymore.
* 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>
* fontsrv: disable font smoothing on osx (#196)Xiao-Yong2018-11-131-0/+3
| | | | | | macOS Mojave version 10.14 starts to disable font smoothing. We disable font smoothing for OSX_VERSION >= 101400 to match the system default font rendering. It also makes the font rendering on macOS similar to that on X11.
* fontsrv: omit box-drawing characters from line struts on macOSIgor Burago2018-06-261-1/+1
| | | | | | | | | For some fonts, using box-drawing characters in the representative text for computing the line height results in it being uncomfortably high. Replace them with accented capitals and tall lower-case letters which lead to a more conservative increase in the line height. Fixes #162.
* fontsrv: fix some memory leaksXiao-Yong Jin2018-03-271-1/+3
|
* fontsrv: enlarge drawing buffer for subfonts on macOSXiao-Yong Jin2018-03-271-1/+3
| | | | | | | | | | Double the width returned by CTFontGetBoundingBox when drawing. Add box drawing characters for determining the line height. Call freememimage(1) for the character memimage. Fixes #18. Fixes #120. Fixes #146.
* fontsrv: skip only the surrogate pairsMechiel Lukkien2018-03-231-1/+1
| | | | | fontsrv wasn't rendering fontawesome icons, which uses the private use area around 0xf000.
* fontsrv: avoid quote mapping on fonts with indistinguishable quotesRuss Cox2017-06-191-5/+19
| | | | | | | | Fixes #86. Change-Id: Id487219a0fcfdb68133fc81b11383365a1431c1c Reviewed-on: https://plan9port-review.googlesource.com/2922 Reviewed-by: Russ Cox <rsc@swtch.com>
* fontsrv: do not try to look up surrogate pairsRuss Cox2016-01-221-0/+2
| | | | | | Change-Id: Ib0a680e123ba02b41e1029e356543c24e8b4647e Reviewed-on: https://plan9port-review.googlesource.com/1430 Reviewed-by: Russ Cox <rsc@swtch.com>
* fontsrv: use CoreText API on OS XRuss Cox2015-02-171-87/+126
| | | | | | | | | 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>
* fontsrv: make single quotes look like quotesRuss Cox2012-12-031-3/+15
| | | | | R=rsc https://codereview.appspot.com/6864051
* fontsrv: scaled pjwRuss Cox2012-12-011-11/+3
| | | | | R=rsc https://codereview.appspot.com/6854130
* fontsrv: work around a few crashesRuss Cox2012-11-251-2/+6
| | | | | | | Probably not the right fix, but gets us going. R=rsc http://codereview.appspot.com/6782113
* mergeRuss Cox2009-07-081-0/+292