l4l/yofi

Bad anti-aliasing

sujay1844 opened this issue · 9 comments

20210414_20h55m01s_grim
The anti-aliasing of the font and icons is so bad. Is there a way to fix this?? Or is it a bug??
And when I try to use a font that is not monospace, this happens:-
20210414_20h54m45s_grim
Also how do you make the corners rounded??

l4l commented

That's weird, anti-aliasing worked perfect for me so far (though a poor excuse, I know). May you share some info about your environment (e.g. yofi config, wm/de, hidpi scaling, font name/kind, etc)? Also, does it render the same for other fonts?

My monospace font is Hack, the normal one is Noto Sans. My yofi is exactly same as the sample one except the change in font and icons. I use SwayWM.

l4l commented

I can reproduce the issue with Noto Sans. But Hack (ttf one) looks normal for me:

Screenshot_2021 04 14_19:57:52

May you point out a particular font package so I can try it out?

Also how do you make the corners rounded??

Missed this one. Rounding for input block cannot be configured yet: #6. As for the window rounding there's no issue afair. Or do you mean something else?

UPD: As for Noto Sans, a third-party rendering lib has a bug with some fonts: jrmuizel/raqote#170.

nah it's the normal ttf package in the arch repos

Missed this one. Rounding for input block cannot be configured yet: #6. As for the window rounding there's no issue afair. Or do you mean something else?

I meant the rounding of the whole thing. the input block is fine for me

UPD: As for Noto Sans, a third-party rendering lib has a bug with some fonts: jrmuizel/raqote#170.

Oh I see.
RobotoMono Nerd Font works fine. I'm using that for now.

l4l commented

nah it's the normal ttf package in the arch repos

That's really weird then, I did try the ttf-hack 3.003-3 from arch repo.

I meant the rounding of the whole thing. the input block is fine for me

Got it, mind to open an another issue?

That's really weird then, I did try the ttf-hack 3.003-3 from arch repo.

Never mind, I'll use the Robotomono nerd font. I think there's some issue with my pc.

Got it, mind to open an another issue?

Sure

I'm still having this issue. DejaVu Sans looks like this
swappy-20210507_161827

l4l commented

Unfortunately that's the issue in the third-party library (or maybe its usage) and I cannot do anything with it. For now I think the only workaround is using a different font, that sucks I know.

Currently I'm considering to change the underlying font rendering library to rusttype but obviously it is going to take some time for both research & integration.

Got it. Thank you.