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 parcher - fonts get blurred/grayed out #329

Closed
im-n1 opened this issue Feb 26, 2019 · 18 comments
Closed

Font parcher - fonts get blurred/grayed out #329

im-n1 opened this issue Feb 26, 2019 · 18 comments

Comments

@im-n1
Copy link

im-n1 commented Feb 26, 2019

Hi folks

I've spend many hours choosing my new font to substidue my bitmap current one (need scalability). The major thing bitmap fonts are so great (according to me) is they are sharp and thus well visible. I could achieve the same visibility and sharpness with AnonymousPro font. But if I try to use your patched font or i do patch it by myself with your font patcher I get blurry font and grayed out characters.

Before patching
image

After
image

The letter spacing is ok - i can adjust that in Xresources. But not the blurriness :(

@gim913
Copy link

gim913 commented Feb 28, 2019

There's actually same issue with Terminess TTF Nerd font

This is Terminus TTF font (click to zoom in):
image

This is Terminess TTF Nerd from patched-fonts dir:
image

@im-n1
Copy link
Author

im-n1 commented Mar 2, 2019

Offtopic: whats the crate you are working on?

@gim913
Copy link

gim913 commented Mar 2, 2019

Offtopic: whats the crate you are working on?

actually not my crate, clone of https://github.com/Peltoche/lsd
(apparently github needs some kind of chat/messaging ^^)

@im-n1
Copy link
Author

im-n1 commented Mar 2, 2019

Nice to see another Rust dev. Let's use irc. Serv: irc.mozilla.org, chann: rust

Back to topic:
The lsd is nice tool. Another usage for nerd fonts. I hope the font patcher will be fixed soon.

@Slabity
Copy link

Slabity commented Dec 30, 2019

Anything on this?

Bitmap fonts are still blurry when patched. What seems to be the issue?

@im-n1
Copy link
Author

im-n1 commented Dec 31, 2019

I just tried already patched font in term Alacritty and it's completely different font...

@hbjydev
Copy link

hbjydev commented Aug 23, 2020

Can I get a bump on this?

@Slabity
Copy link

Slabity commented Nov 4, 2020

Bumping... Still broken...

@pinusc
Copy link

pinusc commented Nov 16, 2020

I believe there is a chance this is related to fontconfig issues. I have been playing with my configuration all day, and can not seem to achieve the same sharpness as when using .pcf or .otb fonts (testing on GohuFont)
I can achieve sharpness by disabling antialiasing, but then the font "breaks", I suspect as a result of hinting.

@topaxi
Copy link

topaxi commented Jun 3, 2021

This is not only happening with bitmap fonts but any font 😕

@Akselmo
Copy link

Akselmo commented Nov 4, 2021

Ive seen this problem too. I really like the terminus font in its bitmap form

@gim913
Copy link

gim913 commented Nov 5, 2021

Ive seen this problem too. I really like the terminus font in its bitmap form

And so I've switched to Iosevka ¯_(ツ)_/¯
https://github.com/be5invis/Iosevka

@yamabiiko
Copy link

Is there any update on this? Terminess Nerd Font still looks blurry in my system

@Finii
Copy link
Collaborator

Finii commented Feb 9, 2022

I looked a bit into this.

Terminus is a bitmap only font http://terminus-font.sourceforge.net/

Q. Scalable version?
A. Long story short, when the average display resolution becomes at least 150 DPI. Prefferably 200.

The bitmap fonts are bundled into a ttf then with https://github.com/Tblue/mkttf
to form the Terminus (TTF) we use as base.

(Well in fact in the middle this is also involved: https://github.com/drew-kun/terminus_powerline_font_osx, I guess. Or something alike there are multiple projects; but that has no influence on the technical aspect in this comment)

That mkttf takes all bitmap fonts, stuffs them into a ttf file and uses autotrace or potrace to create also a scalable font.
I see no special handling in the potrace call, and I also see no manual adjustments to the resultant glyphs we use (like Almost Vertical etc). So the results are ... sorry, I would call that mediocre.

image

If you use the 'original' TTF (calling it 'original' feels a bit strange) you in fact use the embedded bitmap fonts (I believe). Thus the result looks good. After Nerd Font patching the bitmaps are dropped (we do not patch bitmaps), and the (mediocre) outlines are used.

Making good outlines for Terminus would involve a lot of work, also manually. This is nothing I would conduct.

So sorry, I see no easy solution for this. But maybe I'm wrong. @ryanoasis might know more about Terminus.
More info maybe at Issue #23

@Finii
Copy link
Collaborator

Finii commented Feb 9, 2022

Duplicate of #86

@Finii Finii marked this as a duplicate of #86 Feb 9, 2022
@DoctorKnowsBetter
Copy link

DoctorKnowsBetter commented Sep 22, 2022

I fixed this crap :)
https://github.com/DoctorKnowsBetter/TerminessNerdFont-FixBlur

@Finii
Copy link
Collaborator

Finii commented Sep 24, 2022

Closed via #939.

Many thanks to @DoctorKnowsBetter for finding a solution and help testing!

@Finii Finii closed this as completed Sep 24, 2022
@github-actions
Copy link
Contributor

This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a new issue, complete the issue template with all the details necessary to reproduce, and mention this issue as reference.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants