Fix an issue with Chinese font in POS
AWT bug reported at http://n4.nabble.com/Simplified-Chinese-characters-are-displayed-as-square-boxes-in-POS-td165505.html#a165506 More to come as this fix only the operator's part of the screen git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@826253 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -83,7 +83,12 @@ public class Operator {
|
||||
String fontName = titleStyle.getStyleAsString(XStyle.FONT_FACE);
|
||||
int fontStyle = titleStyle.getStyleAsInt(XStyle.FONT_WEIGHT);
|
||||
int fontSize = titleStyle.getStyleAsInt(XStyle.FONT_SIZE);
|
||||
Font titleFont = new Font(fontName, fontStyle, fontSize);
|
||||
Font titleFont = null;
|
||||
if (defaultLocale.getLanguage().equals("zh")) { // AWT bug reported at http://n4.nabble.com/Simplified-Chinese-characters-are-displayed-as-square-boxes-in-POS-td165505.html#a165506
|
||||
titleFont = new Font(null, fontStyle, fontSize);
|
||||
} else {
|
||||
titleFont = new Font(fontName, fontStyle, fontSize);
|
||||
}
|
||||
|
||||
Border base = BorderFactory.createEtchedBorder();
|
||||
TitledBorder border = BorderFactory.createTitledBorder(base, this.getFieldTitle(field.getName()),
|
||||
|
||||
Reference in New Issue
Block a user