Skip to content
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

Closed
D-Vaillant opened this issue Aug 5, 2019 · 14 comments
Assignees

Comments

@D-Vaillant
Copy link

D-Vaillant commented Aug 5, 2019

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.

@mugman174
Copy link

Is the font installed on the client?

@D-Vaillant
Copy link
Author

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.)

@D-Vaillant
Copy link
Author

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.

@D-Vaillant D-Vaillant changed the title Font doesn't render properly, appears as squares Font doesn't render properly, appears as squares (pango 1:1.44.1-1 breaks font) Aug 5, 2019
@mugman174
Copy link

Report that to the pango website.

@ccfb3ee765a58cae
Copy link

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.

@pierre-ac
Copy link

Bringing back the otb format (dropped in Tamzen-1.11.4) would fix this issue.

@leshow
Copy link

leshow commented Sep 9, 2019

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

@lcpz
Copy link

lcpz commented Nov 8, 2019

Bringing back the otb format (dropped in Tamzen-1.11.4) would fix this issue.

Unfortunately, the result is ugly. This is the OTB rendering of medium style in sizes 10, 13 and 20:

tamzen-otb-10r
tamzen-otb-13r
tamzen-otb-20r

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.

@ghost
Copy link

ghost commented Apr 1, 2020

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 fc-cache -f)

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)

@ghost
Copy link

ghost commented Apr 1, 2020

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

@sunaku sunaku self-assigned this May 3, 2020
sunaku added a commit that referenced this issue May 3, 2020
Thanks to @j-n-f for showing how to properly generate these OTB files:

#25 (comment)
@sunaku
Copy link
Owner

sunaku commented May 3, 2020

Thanks @j-n-f , I've applied your suggestion in the issue-25 branch and also added the generated *.otb files there (under otb/ folder). Please try it out and let me know if you find any problems.

@sunaku
Copy link
Owner

sunaku commented May 8, 2020

@D-Vaillant could you help verify? 😇 There is only Pango 1.42 available in the distro I use (Void Linux).

@D-Vaillant
Copy link
Author

D-Vaillant commented May 8, 2020 via email

sunaku added a commit that referenced this issue May 16, 2020
Thanks to @j-n-f for showing how to properly generate these OTB files:

#25 (comment)
@sunaku
Copy link
Owner

sunaku commented May 16, 2020

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.

@sunaku sunaku closed this as completed May 16, 2020
sunaku added a commit that referenced this issue May 16, 2020
Thanks to @j-n-f for showing how to properly generate these OTB files:

#25 (comment)
wishfort36 added a commit to wishfort36/nixpkgs that referenced this issue May 24, 2020
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
jonringer pushed a commit to NixOS/nixpkgs that referenced this issue May 27, 2020
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
dtzWill pushed a commit to dtzWill/nixpkgs that referenced this issue Jun 5, 2020
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants