nerd-fonts icon indicating copy to clipboard operation
nerd-fonts copied to clipboard

Font parcher - fonts get blurred/grayed out

Open im-n1 opened this issue 6 years ago • 15 comments

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 :(

im-n1 avatar Feb 26 '19 11:02 im-n1

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

gim913 avatar Feb 28 '19 09:02 gim913

Offtopic: whats the crate you are working on?

im-n1 avatar Mar 02 '19 12:03 im-n1

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

gim913 avatar Mar 02 '19 17:03 gim913

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.

im-n1 avatar Mar 02 '19 18:03 im-n1

Anything on this?

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

Slabity avatar Dec 30 '19 15:12 Slabity

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

im-n1 avatar Dec 31 '19 08:12 im-n1

Can I get a bump on this?

hbjydev avatar Aug 23 '20 11:08 hbjydev

Bumping... Still broken...

Slabity avatar Nov 04 '20 18:11 Slabity

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.

pinusc avatar Nov 16 '20 21:11 pinusc

This is not only happening with bitmap fonts but any font :confused:

topaxi avatar Jun 03 '21 15:06 topaxi

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

Akselmo avatar Nov 04 '21 11:11 Akselmo

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

gim913 avatar Nov 05 '21 08:11 gim913

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

yamabiiko avatar Feb 08 '22 23:02 yamabiiko

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 avatar Feb 09 '22 11:02 Finii

Duplicate of #86

Finii avatar Feb 09 '22 12:02 Finii

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

DoctorKnowsBetter avatar Sep 22 '22 21:09 DoctorKnowsBetter

Closed via #939.

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

Finii avatar Sep 24 '22 09:09 Finii

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[bot] avatar Mar 27 '23 00:03 github-actions[bot]