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

Some letters rendered weirdly when using the OTF and WOFF files #90

Open
idnsunset opened this issue Mar 19, 2021 · 12 comments
Open

Some letters rendered weirdly when using the OTF and WOFF files #90

idnsunset opened this issue Mar 19, 2021 · 12 comments
Labels

Comments

@idnsunset
Copy link

idnsunset commented Mar 19, 2021

Look at the uppercase W and lowercase p in Workspace. It is more obvious in Backups, the p is lower than the following s.

urxvt:

urxvt

xterm:

xterm

All letters:

2021-03-19-224253_548x35_scrot

BTW,I remember there was no such issue in the previous releases back in 2016 when I first started to use this font. There is no problem with the Nerd patched 3270 font either (I don't know which release of 3270 that the Nerd patch was applied to).

@rbanffy
Copy link
Owner

rbanffy commented Mar 19, 2021

What OS and version of the font are you using? I ask because I added a couple test renderings using some popular terminal programs recently (running on Ubuntu) and none of them show this behavior.

@idnsunset
Copy link
Author

Debian sid and the latest 3270 release.

@idnsunset
Copy link
Author

idnsunset commented Mar 20, 2021

There is no problem for all the previous releases with font files named "3270Medium", "3270Narrow" and "3270SemiNarrow", although they have wide letter spacing issue in urxvt which could be fixed by setting the letterSpace option.

This issue comes with '2.0.3' release in which font files were named "3270-Regular", "3270Condesed-Regular" and "3270SemiCondensed-Regular".

The official Nerd patched font uses 1.2.23 version.

@rbanffy
Copy link
Owner

rbanffy commented Mar 20, 2021

By "latest" do you mean "latest Debian Sid package", "latest source or binary release", or "built from source from the develop branch"?. If you can do it, run a make uninstall clean install samples to generate some terminal screen captures so we can get a better idea of where the problem is - the font may be lacking some attribute to help align the characters). The resulting captures should end up in your build folder. The spacing issue in urxvt may be the same in #49 and, if it persists in Debian Sid with the newest build, it may be a Debian-specific issue.

@idnsunset
Copy link
Author

idnsunset commented Mar 20, 2021

The "latest" means the latest release from your Github Releases page, which is tagged v2.3.0. Since v2.0.3, the urxvt spacing issue has gone, but the character distorting issue does come with v.2.0.3. Since the spacing issue can be simply worked around by setting letterSpace, I've switched back to using v.2.0.2 release. Next week would be pretty busy for me, but I will try to find some time to have a try if it would really help.

@rbanffy
Copy link
Owner

rbanffy commented Mar 20, 2021

Thank you. I am generating screen captures under Ubuntu and macOS (which are the two desktops I have on hand) and maybe I can generate some under Fedora 33, but I have no Debian Sid box ready so it'd be really helpful. I'll flesh out the contributing instructions and, with some luck, we may get other Debian users on different releases willing to give a hand. I have a feeling I may be exposing some information that throws off some font renderers and not others. Debian Sid is a good one to test against because it shows symptoms before they hit any major distro.

@idnsunset
Copy link
Author

idnsunset commented Mar 23, 2021

make sample reports:

make: terminator: No such file or directory
make: *** [Makefile:44: sample] Error 127

and gnome-screenshot not found. I only see ./build/3270_sample.png, what files do you exactly need?

But I found some thing interesting that only OTF format has such issue. make install installs the TTF format and everything (glyph rendering, spacing) looks good.

@rbanffy
Copy link
Owner

rbanffy commented Mar 23, 2021

Interesting. It may be something with just the OTF export then. Explains a lot since all the test renderings are being done with the TTF one.

@rbanffy rbanffy changed the title Some letters rendered weirdly Some letters rendered weirdly when using the OTF file Mar 24, 2021
@rbanffy rbanffy added the bug label Mar 30, 2021
@rbanffy
Copy link
Owner

rbanffy commented Apr 22, 2021

Worth noting this could be related to pixel size. A magazine in Brazil seem to have used the OTF version on their cover at a very large size.
image

@rbanffy rbanffy changed the title Some letters rendered weirdly when using the OTF file Some letters rendered weirdly when using the OTF and WOFF files Feb 24, 2022
@rbanffy
Copy link
Owner

rbanffy commented Feb 24, 2022

I changed the sample rendered to use TTF, OTF and WOFF. Not sure if it's the font file or the rendering, but OTF and WOFF look considerably worse.

image

Other examples (from programmingfonts.org)

14 pt
image

17 pt
image

At multiples of 10, the issues mostly disappear
image

@Moonbase59
Copy link

I see the same problems (like "h" above baseline, overly-large "5", etc.) when using the OTF fonts on Linux Mint 21.2/Cinnamon. De-installing the OTF and installing the TTF fixed it immediately.

@rbanffy
Copy link
Owner

rbanffy commented Nov 9, 2023

I see the same problems (like "h" above baseline, overly-large "5", etc.) when using the OTF fonts on Linux Mint 21.2/Cinnamon. De-installing the OTF and installing the TTF fixed it immediately.

I think that stopping support for OTF is the way to go here until I figure out what is the issue (I blame FontForge, but need to run more experiments before I can be sure).

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

No branches or pull requests

3 participants