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

Bad anti-aliasing #39

Closed
sujay1844 opened this issue Apr 14, 2021 · 9 comments
Closed

Bad anti-aliasing #39

sujay1844 opened this issue Apr 14, 2021 · 9 comments

Comments

@sujay1844
Copy link

sujay1844 commented Apr 14, 2021

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
Copy link
Owner

l4l commented Apr 14, 2021

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?

@sujay1844
Copy link
Author

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
Copy link
Owner

l4l commented Apr 14, 2021

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.

@sujay1844
Copy link
Author

sujay1844 commented Apr 16, 2021

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
Copy link
Owner

l4l commented Apr 16, 2021

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?

@sujay1844
Copy link
Author

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

@poperigby
Copy link

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

@l4l
Copy link
Owner

l4l commented May 9, 2021

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.

@poperigby
Copy link

Got it. Thank you.

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

3 participants