-
Notifications
You must be signed in to change notification settings - Fork 89
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
[Substance] Writing Japanese text fails when using Substance #4
Comments
I am able to get around this on Windows by using But if you are thinking of some fix that would work better, I'll be happy to hear of it! Also, it took me quite a bit of digging through source code to find out how to create a FontSet and FontPolicy. If there is more documentation, I'd be happy to hear of that as well. |
Had the same problem in FlatLaf and was able to solve it by using Font font = new javax.swing.text.StyleContext().getFont( family, style, size ); to create fonts instead of This creates a composite font that is able to display all Unicode characters. See commit JFormDesigner/FlatLaf@9eaee8d Hope this helps. |
Thanks! Looks like you're only doing this on Windows? |
No, on all platforms. |
Just verified that it works on Windows. The font fallback already works on my Mac machine, but I'll add it for all the platforms. Just need to figure out the right place to put it. |
Thanks. Glad this was fixed. |
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.
The text was updated successfully, but these errors were encountered: