Skip to content

No bitmap font support since pango 1.44Β #4390

Closed

Description

@dnkl

Since version 1.44, pango no longer supports bitmap fonts: https://blogs.gnome.org/mclasen/2019/05/25/pango-future-directions/

Since sway uses pango, this also means no more bitmap fonts in sway. I just wanted to a) make you aware of this, and b) ask what your thoughts on this are?

I for one cannot live without bitmap fonts. At least not on non-high-DPI monitors.

If sway wants to continue supporting bitmap fonts, what kind of solutions would you find acceptable? I'm asking since it would seem this requires either moving away from pango, or at least add support for more font rendering backends?

Activity

  1. emersion commented on Jul 28, 2019

    @emersion
    Member

    I don't care a lot about these personally.

    In case you missed it:

    Note that Harfbuzz does support loading bitmap-only OpenType fonts.

  2. progandy commented on Jul 28, 2019

    @progandy
    Contributor

    Some useful links for font conversions. It should be possible to convert Type1 fonts to OTF (CFF) fonts and bitmap fonts to bitmap-only TTF/OTF fonts (optionally with a vectorized variant).

    https://fontforge.github.io/scripting-tutorial.html
    https://github.com/kreativekorp/bitsnpicas
    https://github.com/koron/bdf2ttf
    https://github.com/dse/bdf2ttf
    https://github.com/Tblue/mkttf

  3. DmitryHetman commented on Jul 28, 2019

    @DmitryHetman

    Why use ttf fonts in console? Bitmaps looks much better.

  4. DmitryHetman commented on Jul 28, 2019

    @DmitryHetman

    you dont have to smooth them etc.

  5. Architector4 commented on Jul 29, 2019

    @Architector4

    Why use ttf fonts in console? Bitmaps looks much better.

    Subjective, though. I, for one, don't like bitmap fonts, and prefer smooth monospace vector based fonts.

  6. hissssst commented on Jul 30, 2019

    @hissssst

    Got my bitmap font fucked up broken today, any fix/branch ?

  7. emersion commented on Jul 30, 2019

    @emersion
    Member

    Use OpenType bitmap fonts.

  8. dnkl commented on Jul 30, 2019

    @dnkl
    ContributorAuthor

    @hissssst: since re-packaging all my fonts in TTF/OTF isn't really something I wanted to do, I opted to: a) limit my usage of GTK/pango based programs as much as possible, b) use titlebar-less windows in Sway, and instead display the active window's title in the bar (not swaybar though, my own bar), and c) use qt or terminal based applications whenever possible.

    Might write a dunst/mako-replacement just for fun as well...

    Yeah, I'm not happy, but life goes on.

  9. parkerlreed commented on Jul 31, 2019

    @parkerlreed

    RIP Terminus. Glad I'm still on KDE. Sad to bear.

  10. dnkl commented on Aug 7, 2019

    @dnkl
    ContributorAuthor

    @parkerlreed @hissssst @DmitryHetman
    I've created a fork/PR-that-will-never-be-merged at https://gitlab.com/dnkl/sway. It replaces pango with fontconfig+cairo, which still support bitmap fonts. It's a huge hack, with lots of limitations. See README.md in the fontconfig branch for details and instructions.

    I guess it's also a good idea to not comment here anymore - don't beat the dead horse.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions