- Timestamp:
- 2014-01-10T18:03:03+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/ElemStyle.java
r6284 r6663 155 155 156 156 protected static Font getFont(Cascade c) { 157 initDefaultFontParameters(); // populated cached preferences, if neces ary157 initDefaultFontParameters(); // populated cached preferences, if necessary 158 158 String name = c.get("font-family", DEFAULT_FONT_NAME, String.class); 159 159 float size = c.get("font-size", DEFAULT_FONT_SIZE, Float.class); 160 160 int weight = Font.PLAIN; 161 Keyword weightKW = c.get("font-weight", null, Keyword.class); 162 if (weightKW != null && equal(weightKW, "bold")) { 161 if ("bold".equalsIgnoreCase(c.get("font-weight", null, String.class))) { 163 162 weight = Font.BOLD; 164 163 } 165 164 int style = Font.PLAIN; 166 Keyword styleKW = c.get("font-style", null, Keyword.class); 167 if (styleKW != null && equal(styleKW.val, "italic")) { 165 if ("italic".equalsIgnoreCase(c.get("font-style", null, String.class))) { 168 166 style = Font.ITALIC; 169 167 }
Note:
See TracChangeset
for help on using the changeset viewer.