-
Notifications
You must be signed in to change notification settings - Fork 29
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
Font doesn't render properly, appears as squares (pango 1:1.44.1-1 breaks font) #25
Comments
Is the font installed on the client? |
Edited the OP. The font was previously installed properly and should still be installed properly (it's in /usr/share/fonts, I reran fc-cache, other fonts work properly.) |
Okay, I figured it out. Downgrading from pango 1:1.44.1-1 to 1:1.43.0-2 made the font start rendering properly again, so there's definitely something that breaks the font going on there. |
Report that to the pango website. |
Tamzen should probably provide bitmap OTFs now that this change has taken place. Seems like the only way forward with the GNOME developer's unnecessary rigidity on this matter. |
Bringing back the otb format (dropped in Tamzen-1.11.4) would fix this issue. |
Also bit by this, the I don't think that pango considers this a bug and so they aren't going to 'fix' it. tamzen still renders messed up for me wherever pango is used |
Unfortunately, the result is ugly. This is the OTB rendering of medium style in sizes 10, 13 and 20: Seems that size 13 is the template and every other is just a down/upper scale. I am not a font expert, but I've made a fork for Arch Linux. I hope this could be the start of a full port. |
Arch users can work around this as follows yay -S fonttosfnt move all the .bdf files into a directory, and run the following script #!/bin/sh
for file in *.bdf; do
NAME=$(echo $file | sed -e 's/\.bdf//g')
echo $file
echo $NAME
fonttosfnt -v -o $NAME.otb -- $file
done Now you have the .otb files. Install as usual (copy to the correct folder, then run I don't really have time to figure out the build system for this project, so if someone else wants to do that and put together the pull request I've at least verified that it can be done. (probably better than creating a fork, as the AUR package builds from this repo) |
I would add that presently it looks like Alacritty can render these otb files correctly, but pango doesn't. It looks like pango is adding 1 pixel more between characters than it should. sigh |
Thanks to @j-n-f for showing how to properly generate these OTB files: #25 (comment)
Thanks @j-n-f , I've applied your suggestion in the |
@D-Vaillant could you help verify? 😇 There is only Pango 1.42 available in the distro I use (Void Linux). |
I’ve been using it and it works so far; I can check version specifics in a bit. LightDM isn’t liking the font still but I’ll figure out why.
… On May 8, 2020, at 12:59, Suraj N. Kurapati ***@***.***> wrote:
@D-Vaillant could you help verify? 😇 There is only Pango 1.42 available in the distro I use (Void Linux).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Thanks to @j-n-f for showing how to properly generate these OTB files: #25 (comment)
Thanks for confirming. I also tested this locally and found that the old Pango 1.42 supports it too. ✔️ These fonts are now merged into master at commit 7477526. Closing. |
Thanks to @j-n-f for showing how to properly generate these OTB files: #25 (comment)
Pango doesn't support PCF and BDF fonts since v1.44 [1], but still supports OTB fonts. As such, we've had to generate OTB fonts for fonts that don't supply them [2], including tamzen. As of v1.11.5, tamzen supplies its own OTB fonts [3], so we don't need to make them ourselves. [1]: https://gitlab.gnome.org/GNOME/pango/-/issues/386 [2]: NixOS#75160 [3]: sunaku/tamzen-font#25
Pango doesn't support PCF and BDF fonts since v1.44 [1], but still supports OTB fonts. As such, we've had to generate OTB fonts for fonts that don't supply them [2], including tamzen. As of v1.11.5, tamzen supplies its own OTB fonts [3], so we don't need to make them ourselves. [1]: https://gitlab.gnome.org/GNOME/pango/-/issues/386 [2]: #75160 [3]: sunaku/tamzen-font#25
Pango doesn't support PCF and BDF fonts since v1.44 [1], but still supports OTB fonts. As such, we've had to generate OTB fonts for fonts that don't supply them [2], including tamzen. As of v1.11.5, tamzen supplies its own OTB fonts [3], so we don't need to make them ourselves. [1]: https://gitlab.gnome.org/GNOME/pango/-/issues/386 [2]: NixOS#75160 [3]: sunaku/tamzen-font#25 (cherry picked from commit 1975e4b)
I'm not certain that this is an issue specific to just this font but it's the only one that's been affected from what I can tell.
Other .bdf fonts in the same location render properly, Tamzen appears in
fc-list
. The font was working fine until I updated some packages through AUR.The text was updated successfully, but these errors were encountered: