Mercurial > mxd2map
diff src/java/de/intevation/mxd/reader/CharacterMarkerSymbolReader.java @ 48:8e6d529e9a22
Completed the CharacterSymbolMarkerReader.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Wed, 20 Apr 2011 11:48:46 +0200 |
parents | 5fc813f40fa5 |
children | 5c5ef5768893 |
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/reader/CharacterMarkerSymbolReader.java Tue Apr 19 17:25:09 2011 +0200 +++ b/src/java/de/intevation/mxd/reader/CharacterMarkerSymbolReader.java Wed Apr 20 11:48:46 2011 +0200 @@ -103,8 +103,20 @@ symbolElement.setAttribute( "name", symbol.getNameString()); + symbolElement.setAttribute( + "char", + String.valueOf(symbol.getCharacterIndex())); + Font f = symbol.getFont(); -//TODO Read the font attributes. + symbolElement.setAttribute("font", f.getName()); + symbolElement.setAttribute("char_set", String.valueOf(f.getCharset())); + symbolElement.setAttribute("bold", String.valueOf(f.getBold())); + symbolElement.setAttribute("italic", String.valueOf(f.getItalic())); + symbolElement.setAttribute("font_size", String.valueOf(f.getSize())); + symbolElement.setAttribute( + "strike_through", + String.valueOf(f.getStrikethrough())); + symbolElement.setAttribute("weight", String.valueOf(f.getWeight())); symbolElement.setAttribute("style", "char"); return symbolElement; }