tfontsrv: 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. - plan9port - [fork] Plan 9 from user space
git clone git://src.adamsgaard.dk/plan9port
Log
Files
Refs
README
LICENSE
---
commit df2d9ec9d169626cdc2a23829bb2831738215722
parent 03a8ec739af17bc4ba0a2e18ea59b33671c34f2b
Author: Igor Burago 
Date:   Thu, 17 May 2018 16:18:10 -0700

fontsrv: omit box-drawing characters from line struts on macOS
For some fonts, using box-drawing characters in the representative
ttext 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:
  M src/cmd/fontsrv/osx.c               |       2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/cmd/fontsrv/osx.c b/src/cmd/fontsrv/osx.c
t@@ -104,7 +104,7 @@ static char *lines[] = {
         "ABCDEFGHIJKLMNOPQRSTUVWXYZ",
         "abcdefghijklmnopqrstuvwxyz",
         "g",
-        "┌┬┐├┼┤└┴┘│─",
+        "ÁĂÇÂÄĊÀČĀĄÅÃĥľƒ",
         "ὕαλον ϕαγεῖν δύναμαι· τοῦτο οὔ με βλάπτει.",
         "私はガラスを食べられます。それは私を傷つけません。",
         "Aš galiu valgyti stiklą ir jis manęs nežeidžia",