kirill-grouchnikov / substance

A modern and high-performant Swing look-and-feel library
164 stars 109 forks source link

Writing Japanese text fails when using Substance #68

Closed brad-eric closed 6 years ago

brad-eric commented 6 years ago

Version of Substance: 8.0

Version of Java: 1.8

Version of OS: Windows 10

The issue you're experiencing (expected vs actual, screenshot, stack trace etc):

When i use the default system look & feel, and click Browse to select a file i select a file with a Japanese name and its Japanese name appears fine in the JTextField. If i use a Substance look and feel, select the same file, its name appears as blocks in the JTextField.

Screenshots attached.

Is there a way to fix this in Substance? And can substance controls show text of any language?

Cheers, Brad substance l f system l f

nroduit commented 6 years ago

I guess it is because of the specific font associated with the L&F. After the L&F has been applied, try to set the default font which contains Asiatic characters: LookAndFeels.setUIFont(new javax.swing.plaf.FontUIResource(Font.SANS_SERIF, Font.PLAIN, 12));

kirill-grouchnikov commented 6 years ago

Will be tracked in kirill-grouchnikov/radiance#4

See http://www.pushing-pixels.org/2018/05/23/hello-radiance.html for context.