bad height or ascent in font file
Closed this issue · 4 comments
7v0lk0v commented
+(1) pechkin ~ % PLAN9=/usr/lib/plan9 PATH=$PLAN9/bin:$PATH edwood -f /usr/share/fonts/TTF/DejaVuSans.ttf
imageinit: can't open default font /usr/share/fonts/TTF/DejaVuSans.ttf: bad height or ascent in font file
2020/06/07 17:17:15 can't open display: bad height or ascent in font file
Tried 4 more fonts with the exact same error - TerminusTTF, Input-Mono, Roboto-Mono and SF-Mono. Tried relative and absolute paths.
edwood
starts fine if no font arg is given (using default Go font).
fhs commented
If you're use plan9port, you need to use fontsrv(4) for TTF fonts. It'll automatically get started if you provide the right path:
PLAN9=/usr/lib/plan9 PATH=$PLAN9/bin:$PATH edwood -f /mnt/font/DejaVuSans/16a/font
It's a different story if you build edwood with -tags 'duitdraw mux9p'
, in which case you can use the TTF font directly:
edwood -f /usr/share/fonts/TTF/DejaVuSans.ttf@16pt
paul-lalonde commented
That seems like a sub-optimal error message. Can it be trapped and made
more user friendly?
…On Sun, Jun 7, 2020 at 9:03 AM Fazlul Shahriar ***@***.***> wrote:
If you're use plan9port, you need to use fontsrv(4)
<https://9fans.github.io/plan9port/man/man4/fontsrv.html> for TTF fonts.
It'll automatically get started if you provide the right path:
PLAN9=/usr/lib/plan9 PATH=$PLAN9/bin:$PATH edwood -f /mnt/font/DejaVuSans/16a/font
It's a different story if you build edwood with -tags 'duitdraw mux9p',
in which case you can use the TTF font directly:
edwood -f ***@***.***
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#304 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJ6RUAHCL72YM4XWPJIYALRVO25RANCNFSM4NW4YSSQ>
.