atarw / material-ui-swing

A modern, Material Design UI for Java Swing
MIT License
654 stars 86 forks source link

Font pixelated #4

Closed andresain123 closed 6 years ago

andresain123 commented 6 years ago

Hi, I've just installed your library and the first thing I have noticed is that when I create a text component like JLabel, the text shows like pixelated.

Is any way to solve this? If I remove the UIManager.setLookAndFeel (new MaterialLookAndFeel()), the text just shows fine.

Thank you!

Here is a picture that shows that: test

atarw commented 6 years ago

i'm currently on vacation so i can't test the issue completely but i'm guessing it has to do with the font smoothing. i pushed a small update to the repo that may fix your issue.

if not, try playing around with lines 59-61 in MaterialLookAndFeel.java and see if anything changes. this might be useful

Nisgrak commented 6 years ago

The issue is resolved? I had the same problem now, but you say that it's resolved. Thanks! image

atarw commented 6 years ago

To be honest I'm still not quite sure why this happens, and it's hard for me to test since the fonts seem to render fine for me. I'll try to run the library on other computers and see if I could get to the bottom of this

lunabunn commented 6 years ago

Same thing happens for me. I'm on Windows 8.1, fyi

atarw commented 6 years ago

Pushed a possible fix for this, although I can't test until tomorrow since I don't have access to a Windows machine right now.

atarw commented 6 years ago

I'm happy to say that the issue seems to be fixed! Due to the nature of the fix, it needs to be applied separately for each component, so if a component isn't supported yet, let me know and I'll add the fix

vincenzopalazzo commented 6 years ago

it is in my case the problem of my friends has been solved. Fantastic