Revision 25878

View differences:

trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/rendering/styling/labeling/LabelClass.java
125 125
import com.iver.cit.gvsig.fmap.core.symbols.ITextSymbol;
126 126
import com.iver.cit.gvsig.fmap.core.symbols.SimpleTextSymbol;
127 127
import com.iver.cit.gvsig.fmap.core.symbols.SymbolDrawingException;
128
import com.iver.cit.gvsig.fmap.core.v02.FConstant;
128 129
import com.iver.utiles.IPersistence;
129 130
import com.iver.utiles.XMLEntity;
130 131

  
......
233 234
			}
234 235

  
235 236
			Rectangle bounds = getTextSymbol().getBounds();
236
			bounds.setLocation(
237
					(int) Math.round(bounds.getX()),
238
					(int) Math.round(bounds.getY()+bounds.getHeight()));
237
//			bounds.setLocation(
238
//					(int) Math.round(bounds.getX()),
239
//					(int) Math.round(bounds.getY()+bounds.getHeight()));
239 240
			return new Dimension(bounds.width, bounds.height);
240 241
		} else {
241 242
			labelStyle.setTextFields(texts);
......
341 342
		double yAnchor = anchor.getY();
342 343
		double theta = llm.getRotation();
343 344

  
344

  
345 345
		graphics.translate(xAnchor, yAnchor);
346 346
		graphics.rotate(theta);
347

  
348
		ITextSymbol textSymbol = this.getTextSymbol();
349
		float prevFontSize = textSymbol.getFont().getSize2D();
350
		textSymbol.setFontSize(prevFontSize * FConstant.FONT_HEIGHT_SCALE_FACTOR * scale);
347 351
		try {
348 352
			drawInsideRectangle(graphics, r);
349 353
		} catch (SymbolDrawingException e) {
350 354
			// TODO Auto-generated catch block
351 355
			e.printStackTrace();
352 356
		}
357
		textSymbol.setFontSize(prevFontSize);
353 358
		graphics.rotate(-theta);
354 359
		graphics.translate(-xAnchor, -yAnchor);
355 360
	}

Also available in: Unified diff