In “Age of Empires” this was a feature :)
On 18 Jun 2014, at 16:17, Alexandre Bergel <alexandre.bergel(a)me.com> wrote:
I really wish this is fixed :-(
<Screen Shot 2014-06-18 at 10.13.23 AM.png>
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(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev