W walt61 Well-Known Member Licensed User Longtime User Jul 11, 2023 #1 When running outside the IDE, all is well. However, when running the attached (based on the default project when creating a new UI one in B4J) from the IDE, it looks like a Greek font is being used for all views except the form title. Changing e.g. a button's font to Arial instead of the default one does make the button look like it's supposed to, but a Msgbox will still use the Greek font - see attached images. It happens in both Debug and Release modes. Is there a way to correct this, perhaps (wild guess) by somehow (#VirtualMachineArgs ?) instructing the JVM to use a specific font as default? Environment: - Linux Mint 21.1 Cinnamon - B4J 9.80 - OpenJDK 11.0.1 - Wine: Ubuntu 6.0.3~repack-1 Thanks in advance! Attachments newUI.zip newUI.zip 2 KB · Views: 521
When running outside the IDE, all is well. However, when running the attached (based on the default project when creating a new UI one in B4J) from the IDE, it looks like a Greek font is being used for all views except the form title. Changing e.g. a button's font to Arial instead of the default one does make the button look like it's supposed to, but a Msgbox will still use the Greek font - see attached images. It happens in both Debug and Release modes. Is there a way to correct this, perhaps (wild guess) by somehow (#VirtualMachineArgs ?) instructing the JVM to use a specific font as default? Environment: - Linux Mint 21.1 Cinnamon - B4J 9.80 - OpenJDK 11.0.1 - Wine: Ubuntu 6.0.3~repack-1 Thanks in advance!
Erel B4X founder Staff member Licensed User Longtime User Jul 12, 2023 #2 Strange. The IDE adds this VM arg: -Dfile.encoding=UTF-8 This should be the only difference. You can try running the jar from the terminal with this arg and see whether it causes this. Upvote 0
Strange. The IDE adds this VM arg: -Dfile.encoding=UTF-8 This should be the only difference. You can try running the jar from the terminal with this arg and see whether it causes this.
W walt61 Well-Known Member Licensed User Longtime User Jul 12, 2023 #3 It seems to be wine-related. If I run the jar from wine, the issue is there. If I package the program all is fine, with or without the arg. Very puzzling (to me anyway ). Upvote 0
It seems to be wine-related. If I run the jar from wine, the issue is there. If I package the program all is fine, with or without the arg. Very puzzling (to me anyway ).
W walt61 Well-Known Member Licensed User Longtime User Jul 16, 2023 #4 Found a solution after lots of trial and error: - mkdir ~/.fonts - from a Windows installation, copy the C:\Windows\Fonts folder contents to that directory, which solves the issue Upvote 0
Found a solution after lots of trial and error: - mkdir ~/.fonts - from a Windows installation, copy the C:\Windows\Fonts folder contents to that directory, which solves the issue