Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Font support (code points, bitmaps, etc) #68

hpjansson started this conversation in General
Discussion options

I'm opening this thread for discussing anything having to do with font support. This is only tangentially related to Chafa, but it affects how its output is rendered in various environments.

Ref. discussion started in #66:

  • @clort81 mentioned improving PETSCII and other block/legacy symbol support in various publicly available fonts.
  • @hpjansson mentioned packaging bitmap fonts as OTB, Terminus specifically.

Feel free to post questions, progress reports, etc. or otherwise coordinate font-related activity here!

You must be logged in to vote

Replies: 2 comments 2 replies

Comment options

hpjansson
Sep 26, 2021
Maintainer Author

@clort81 If font maintainers are unresponsive, we can try to get your improvements into distro packages, e.g. openSUSE where I'm already a packager.

You must be logged in to vote
0 replies
Comment options

Acknowledged. Are distros generally dropping .pcf support? I need pixel-perfect fonts, not smoothed, for terminals displaying small text.

You must be logged in to vote
2 replies
Comment options

hpjansson Sep 27, 2021
Maintainer Author

I think the PCF fonts themselves will still be around for a long time, probably as long as X11. But support is already poor, and it's not going to get better (otoh, doubt it can get much worse). It looks like bitmap-only OpenType is the way forward, though. I did some testing with it yesterday, and it works out of the box on openSUSE. No smoothing as long as you pick the right font size.

I tested with the OTB from here: https://github.com/wyatt8740/IBM3161-font/tree/master/X11 -- just ran gnome-font-viewer on the file and hit "install", then selected it the preferences dialog of xfce-terminal.

Comment options

hpjansson Sep 29, 2021
Maintainer Author

This script worked for me: https://gist.github.com/Earnestly/6bc5bad7666f7bf8816d054b7b76112e

Went from ter-x*[nb].pcf -> Terminus(Bold|Medium).otb. The result looks exactly right in VTE and works in modern desktop apps. I'll see if I can package this for openSUSE, which doesn't seem to already have it. Maybe other bitmap fonts too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /