On 21 December 2013 03:41, J.F. Rick <self@je77.com> wrote:
Yes, that code will crash my machine (Ubuntu). I upgraded to the latest Pharo 3.0 and added the newest Athens-Morphic package to get AthensWrapMorph. Of the Athens packages, I have the following versions:
Balloon 13
Cairo 51
CairoPools 9
Core 51
Examples 26
Morphic 25
PangoCairo 14
Text 7
Tutorial 7

Cheers,

Jeff

PS Just adding the 30 point string��by itself crashes the VM.


thanks for info.
I will try it in my virtual ubuntu image (i also added bug report)
https://pharo.fogbugz.com/f/cases/12478/Crash-when-using-fonts-with-Athens-on-ubuntu
feel free to add any extra info there, if you find more.

��

On Saturday, December 21, 2013, Igor Stasenko wrote:



On 20 December 2013 15:35, J.F. Rick <self@je77.com> wrote:
I keep on crashing my VM based on using Athens to render fonts. Some things work; some don't. It is a mystery.

I managed to install the TrueType fonts. I'm using StringMorph in an AthensWrapMorph, so it is rendered in Athens. When I do the following, it seems to work fine:

string := StringMorph contents: 'HelloWorld' font: (LogicalFont familyName: 'Arial' pointSize: 20).
string color: Color white.
string position: 100 @ 100.
self addMorph: string.

When I changed it to 30, it initially crashed. Now it doesn't crash, but the rendering is the same as for 20. When I change it to 40, it crashes. When I add two strings, one of size 20 and one of size 30, it crashes. All of these things render fine outside of Athens (i.e., I just open them in the world).��

What am I doing wrong?

What platform you running, and can you share your code?
��
Following runs well on my image (mac):


| m string |
m := AthensWrapMorph new.

string := StringMorph contents: 'HelloWorld' font: (LogicalFont familyName: 'Arial' pointSize: 20).
string color: Color red�� .
��
m addMorph: string.

string := StringMorph contents: 'HelloWorld' font: (LogicalFont familyName: 'Arial' pointSize: 30).
string color: Color green�� .
��
m addMorph: string.

m openInWindow

(image double-sized because of retina display :)
Inline images 1

Jeff

--
Jochen "Jeff" Rick, Ph.D.
http://www.je77.com/
Skype ID: jochenrick



--
Best regards,
Igor Stasenko.


--
Jochen "Jeff" Rick, Ph.D.
http://www.je77.com/
Skype ID: jochenrick



--
Best regards,
Igor Stasenko.