-
-
Notifications
You must be signed in to change notification settings - Fork 278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Permissive font pattern by default (fix broken layout) #349
Conversation
So if future distros are going to not ship misc fixed PCF fonts, why do we expect them to ship any PCF fonts at all? Wouldn't a better fix be an |
That's what I suggested in the original bug report.
…On Mon, Jun 1, 2020, 03:48 Tomáš Janoušek ***@***.***> wrote:
So if future distros are going to not ship misc fixed PCF fonts, why do we
expect them to ship any PCF fonts at all? Wouldn't a better fix be an
#ifdef that uses something like xft:monospace when xft is enabled?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#349 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAPRFIF7FNZOKNRHC3KLTCTRUNMMBANCNFSM4NPLDF3A>
.
|
Sorry, I'm not qualified to answer. I do not yet understand how various font systems work. What does switch to There was no difference when I removed I've found another fallback I've spent a day trying to understand what is going on. Current results - X Server contains built in font (kind of) which is selected by Xmonad config. This font is not present in the system. Everything works once I install package containing font. So it should be dependency of X Server on Arch Linux. But this font behaves strange - with
And xmonad pulls this buggy font even after I've installed terminus font (does not match foundry). I believe each project may be improved a bit. Filling issues in XOrg and Arch Linux trackers. |
I don't think it does. That being said, it's irrelevant, anyway. xmonad didn't switch to harfbuzz, pango did, and xmonad doesn't use pango. xmonad uses XLFD and optionally Xft. Both support bitmap fonts and that support isn't going away. So the only relevant question is still this: are current/future distros shipping bitmap fonts or not? If not, then defaulting to an XLFD font descriptor, no matter how permissive (wildcard-y), doesn't make sense, as going through XLFD means no antialiasing, and antialiasing is necessary for vector fonts. If not depending on the core X11 fonts is a packaging bug in Arch that's been fixed since, I think we can close this bug. If, on the other hand, modern systems only install TTF fonts, then we need to default to something like |
We have had a few people on arch reporting that the prompt doesn't come up. This seems to always invariably be a font issue (the default font for the prompt is also set to |
You'll want to make sure the |
Good point. @sergeykish are you still interested in this? The |
I would actually recommend that the Cabal flag define a CPP macro that can be used to select an appropriate font expression depending on whether I would also beware of the all- Even better would be a way to do multiple fallbacks, but that again requires |
@liskin @geekosaur I pushed a few changes; what do you people think? This is something I'd like to get done before 0.17 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
@slotThe Why are we changing the XLFD default, and why to |
See the earlier discussion. 10646 would also work, the real question is which set might be installed. |
On Fri, Mar 19 2021 14:36, Tomáš Janoušek wrote:
@slotThe Why are we changing the XLFD default, and why to
`-*-*-medium-r-normal-*-*-*-*-*-*-*-iso8859-*` in particular?
Especially the iso8859 bit seems a bit weird these days. :-)
As geekosaur already said, I just went with what was said above. I
don't really have a strong opinion on this, and I don't suspect it
matters very much, because we compile with XFT support by default and
hence I don't think these fonts will see much use anyways.
|
Well, it'd break my setup if I hadn't enlarged the fonts last week, so I wouldn't be that sure about it not mattering. :-) The thing is, @geekosaur's message doesn't really explain the change. It explains why |
I only came into it after the change to |
That is a fair point. I reverted back to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect.
(We use #ifdef
in the rest of the codebase, but I'm not sure if that's worth following or whether #if
is fine. Feel free to merge if you know what you're doing. :-))
The silent error `user error (createFontSet)` would break certain modules (like the prompt) by simply not showing anything. Pango 1.44 dropped support for FreeType in favor of HarfBuzz, losing support for traditional BDF/PCF bitmap fonts. Hence, some distributions don't ship `xorg-fonts-misc` anymore. Fixes xmonad#348
Ah, you're right of course. In this case it doesn't really matter because if |
Layout broken if font is not found with
user error (createFontSet)
Pango 1.44 dropped support for FreeType in favor of HarfBuzz thus losing support for traditional BDF/PCF bitmap fonts. There would be no
xorg-fonts-misc
on future installations.Fixes #348
Description
Change default
fontName
to accept any font. Previous default expects XOrg misc font (PCF) which is not supported in pango 1.44 anymore and would not be present in future installations.Font not found causes silent
user error (createFontSet)
and breaks Layout.Checklist
I've read CONTRIBUTING.md
I tested my changes with xmonad-testing
I updated the
CHANGES.md
fileI've tested with latest
git
versions ofxmonad
andxmonad-contrib