| Referring to fonts in Java on openSUSE 12.3 [message #1125472] |
Fri, 04 October 2013 10:53  |
Colin Beckingham Messages: 2 Registered: October 2013 |
Junior Member |
|
|
I'm using Eclipse Kepler openSUSE 12.3 64 bit under Gnome and having an issue with fonts.
In a programme, a line
theTitleLabel.setFont(new Font("sansserif",Font.BOLD, 36));
works correctly, but the more indirect reference
theTitleLabel.setFont(new Font(GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames()[0], Font.BOLD, 36));
fails to fetch the correct character set. For example, if the title string is "Chess" then on the final page I see printed "Uxecc" in what appears to be a Cyrillic character set.
I guess I must be missing a setting in my system so that Java can find this resource, but don't know at this point if I should be setting something in Eclipse or the system itself.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01507 seconds