91861 / wayst

A simple terminal emulator
MIT License
289 stars 9 forks source link

Suport for OTB (Open Type Bitmap) fonts #3

Closed freed00m closed 4 years ago

freed00m commented 4 years ago

I've tried to use terminus-font-otb in wayst without success.

$ fc-match "Terminus"
ter-u12n.otb: "Terminus" "Medium"

 $ fc-list | grep "Terminus"
/usr/share/fonts/misc/ter-u22b.otb: Terminus:style=Bold
/usr/share/fonts/misc/ter-u20b.otb: Terminus:style=Bold
/usr/share/fonts/misc/ter-u24b.otb: Terminus:style=Bold
/usr/share/fonts/misc/ter-u12n.otb: Terminus:style=Medium
/usr/share/fonts/misc/ter-u16n.otb: Terminus:style=Medium
/usr/share/fonts/misc/ter-u18n.otb: Terminus:style=Medium
/usr/share/fonts/misc/ter-u14n.otb: Terminus:style=Medium
/usr/share/fonts/misc/ter-u32n.otb: Terminus:style=Medium
/usr/share/fonts/misc/ter-u28n.otb: Terminus:style=Medium
/usr/share/fonts/misc/ter-u14v.otb: Terminus:style=Bold
/usr/share/fonts/misc/ter-u16v.otb: Terminus:style=Bold
/usr/share/fonts/misc/ter-u22n.otb: Terminus:style=Medium
/usr/share/fonts/misc/ter-u20n.otb: Terminus:style=Medium
/usr/share/fonts/misc/ter-u12b.otb: Terminus:style=Bold
/usr/share/fonts/misc/ter-u24n.otb: Terminus:style=Medium
/usr/share/fonts/misc/ter-u16b.otb: Terminus:style=Bold
/usr/share/fonts/misc/ter-u14b.otb: Terminus:style=Bold
/usr/share/fonts/misc/ter-u18b.otb: Terminus:style=Bold
/usr/share/fonts/misc/ter-u32b.otb: Terminus:style=Bold
/usr/share/fonts/misc/ter-u28b.otb: Terminus:style=Bold

 $ wayst
Failed to locate font files for "Terminus"

also listing standard fontconfs from Arch repos

/etc/fonts/conf.d $ ll
total 4
lrwxrwxrwx 1 root root  44 19.01.2020 11:22 10-hinting-slight.conf -> /etc/fonts/conf.avail/10-hinting-slight.conf
lrwxrwxrwx 1 root root  48 19.01.2020 11:22 10-scale-bitmap-fonts.conf -> /etc/fonts/conf.avail/10-scale-bitmap-fonts.conf
lrwxrwxrwx 1 root root  47 19.01.2020 11:22 20-unhint-small-vera.conf -> /etc/fonts/conf.avail/20-unhint-small-vera.conf
lrwxrwxrwx 1 root root  44 19.01.2020 11:22 30-metric-aliases.conf -> /etc/fonts/conf.avail/30-metric-aliases.conf
lrwxrwxrwx 1 root root  38 19.01.2020 11:22 40-nonlatin.conf -> /etc/fonts/conf.avail/40-nonlatin.conf
lrwxrwxrwx 1 root root  37 19.01.2020 11:22 45-generic.conf -> /etc/fonts/conf.avail/45-generic.conf
lrwxrwxrwx 1 root root  35 19.01.2020 11:22 45-latin.conf -> /etc/fonts/conf.avail/45-latin.conf
lrwxrwxrwx 1 root root  31 11.01.2020 19:32 46-noto-mono.conf -> ../conf.avail/46-noto-mono.conf
lrwxrwxrwx 1 root root  31 11.01.2020 19:32 46-noto-sans.conf -> ../conf.avail/46-noto-sans.conf
lrwxrwxrwx 1 root root  32 11.01.2020 19:32 46-noto-serif.conf -> ../conf.avail/46-noto-serif.conf
lrwxrwxrwx 1 root root  39 19.01.2020 11:22 49-sansserif.conf -> /etc/fonts/conf.avail/49-sansserif.conf
lrwxrwxrwx 1 root root  34 19.01.2020 11:22 50-user.conf -> /etc/fonts/conf.avail/50-user.conf
lrwxrwxrwx 1 root root  35 19.01.2020 11:22 51-local.conf -> /etc/fonts/conf.avail/51-local.conf
lrwxrwxrwx 1 root root  37 19.01.2020 11:22 60-generic.conf -> /etc/fonts/conf.avail/60-generic.conf
lrwxrwxrwx 1 root root  35 19.01.2020 11:22 60-latin.conf -> /etc/fonts/conf.avail/60-latin.conf
lrwxrwxrwx 1 root root  43 19.01.2020 11:22 65-fonts-persian.conf -> /etc/fonts/conf.avail/65-fonts-persian.conf
lrwxrwxrwx 1 root root  38 19.01.2020 11:22 65-nonlatin.conf -> /etc/fonts/conf.avail/65-nonlatin.conf
lrwxrwxrwx 1 root root  31 11.01.2020 19:32 66-noto-mono.conf -> ../conf.avail/66-noto-mono.conf
lrwxrwxrwx 1 root root  31 11.01.2020 19:32 66-noto-sans.conf -> ../conf.avail/66-noto-sans.conf
lrwxrwxrwx 1 root root  32 11.01.2020 19:32 66-noto-serif.conf -> ../conf.avail/66-noto-serif.conf
lrwxrwxrwx 1 root root  37 19.01.2020 11:22 69-unifont.conf -> /etc/fonts/conf.avail/69-unifont.conf
lrwxrwxrwx 1 root root  39 19.01.2020 11:22 80-delicious.conf -> /etc/fonts/conf.avail/80-delicious.conf
lrwxrwxrwx 1 root root  39 19.01.2020 11:22 90-synthetic.conf -> /etc/fonts/conf.avail/90-synthetic.conf
-rw-r--r-- 1 root root 967 19.01.2020 11:22 README
freed00m commented 4 years ago

fixed by https://github.com/91861/wayst/commit/9bd775c3da1ff8dc5719e96c905250fbd5a2acd4