Revision 32881 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/core/symbols/SimpleTextSymbol.java

View differences:

SimpleTextSymbol.java
107 107
		// Antes tomabamos el resultado de getBounds pero ya se le hab?a aplicado
108 108
		// la rotaci?n, con lo que no obten?amos el la altura correcta de la fuente.
109 109

  
110
		// Alineamos el texto de manera que la parte superior
110
		// Alineamos el texto de manera que la parte inferior
111 111
		// izquierda de la primera letra est? en (0,0).
112 112
		// Para chino hay que escoger una fuente como esta (SimSun)
113 113
//		g.setFont(new Font("SimSun",Font.PLAIN, 12));
114 114

  
115
		g.drawString(getText(), 0, (int)-bounds.getY());
115
		g.drawString(getText(), -((int) bounds.getWidth()/2), 0); //(int)-bounds.getY());
116
//		g.drawRect(0, 0, 5, 5);
116 117
		g.rotate(-rotation);
117 118
		g.translate(-shpX, -shpY);
118 119
	}

Also available in: Unified diff