Yes, this is really ugly ...
BW, Volkert
Am 18.06.2014 16:17, schrieb Alexandre Bergel:
I really wish this is fixed :-(
Hard to make convincing publicity for Roassal...
I am writing the text using:
-=-=-=-=-=-=-=-=-=-=-=-= drawOn: athensCanvas athensCanvas pathTransform restoreAfter: [ "Draw the label centered on the position" athensCanvas pathTransform translateBy: self position asIntegerPoint; rotateByDegrees: angle value; translateBy: ((self notRotatedWidth value / -2) @ (self notRotatedHeight value / 2)) asIntegerPoint; translateBy: (0 @ font descent negated) asIntegerPoint. athensCanvas setFont: font. athensCanvas setPaint: color. athensCanvas drawString: text ]. -=-=-=-=-=-=-=-=-=-=-=-=
the font variable is set using the following method:
getFontForSize: aNumber ^ LogicalFont familyName: StandardFonts defaultFont familyName pointSize: aNumber -=-=-=-=-=-=-=-=-=-=-=-=
Is there something I am missing?
Alexandre
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev