atarw / material-ui-swing

A modern, Material Design UI for Java Swing
MIT License
655 stars 87 forks source link

fix a issue #52 #53

Closed vincenzopalazzo closed 5 years ago

vincenzopalazzo commented 5 years ago

I applied the adapter model to add the whole TitlePane swing support, I hope you enjoy my idea.

p00f commented 5 years ago

@vincenzopalazzo brilliant idea.

One thing: for the life of me I can't get windows to display roboto correctly. There's always some jagged edges (since 2 years)(Ubuntu works properly).

Since you guys are using roboto in this, can you tell if and how you got it to work on windows?

atarw commented 5 years ago

According to the source code I found here, TitledBorder gets its font from the UIManager property TitledBorder.font, so I don't think making a new class is necessary.

vincenzopalazzo commented 5 years ago

@TheGreat2201

Since you guys are using roboto in this, can you tell if and how you got it to work on windows?

The problem has not yet been resolved, in August we had a long discussion and we opted to set a different font. I'm thinking of a way to adapt the font depending on the operating system that is starting, but I still have to understand how to do it.

However the font now works quite well.