aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/fontsrv
diff options
context:
space:
mode:
authorIgor Burago <ib@iburago.org>2018-05-17 16:18:10 -0700
committerDavid du Colombier <0intro@gmail.com>2018-06-26 23:24:22 +0200
commitdf2d9ec9d169626cdc2a23829bb2831738215722 (patch)
tree3d44a4cd3517fca6d18e9a97139843b8f3291800 /src/cmd/fontsrv
parent03a8ec739af17bc4ba0a2e18ea59b33671c34f2b (diff)
downloadplan9port-df2d9ec9d169626cdc2a23829bb2831738215722.tar.gz
plan9port-df2d9ec9d169626cdc2a23829bb2831738215722.tar.bz2
plan9port-df2d9ec9d169626cdc2a23829bb2831738215722.zip
fontsrv: omit box-drawing characters from line struts on macOS
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.
Diffstat (limited to 'src/cmd/fontsrv')
-rw-r--r--src/cmd/fontsrv/osx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/fontsrv/osx.c b/src/cmd/fontsrv/osx.c
index 4d969290..b28ee252 100644
--- a/src/cmd/fontsrv/osx.c
+++ b/src/cmd/fontsrv/osx.c
@@ -104,7 +104,7 @@ static char *lines[] = {
"ABCDEFGHIJKLMNOPQRSTUVWXYZ",
"abcdefghijklmnopqrstuvwxyz",
"g",
- "┌┬┐├┼┤└┴┘│─",
+ "ÁĂÇÂÄĊÀČĀĄÅÃĥľƒ",
"ὕαλον ϕαγεῖν δύναμαι· τοῦτο οὔ με βλάπτει.",
"私はガラスを食べられます。それは私を傷つけません。",
"Aš galiu valgyti stiklą ir jis manęs nežeidžia",