font problem

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

font problem

abergel
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
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: font problem

Uko2
In “Age of Empires” this was a feature :)

On 18 Jun 2014, at 16:17, Alexandre Bergel <[hidden email]> 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
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: font problem

Volkert
In reply to this post by abergel
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
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev

-- 
www.nivoba.de

"The more complex an object, the larger the investment in learning to use it, and the greater the resistance to abandon it.", NW

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev