Nicolas this is because you clicked on freetype.
Apparently it resets the font form the os but missed the font in the image.
Stef





on my computer (linux) nothing gets drawn.
Mondrian works well without text.
As soon as I come on a node and it tries to show the text, I have the red square of death as mentionned by steph.

nicolas

On 28/03/2014 13:41, Tudor Girba wrote:
I am not quite sure this is where the problem comes from given that we see half of the letters being well drawn and half not well.

Here is how the font is loaded:
#('SourceCodeProRegular' 'SourceCodeProBold' 'SourceSansProRegular' 'SourceSansProBold') do: [ :each | 
each asSymbol asClassIfAbsent: [
Gofer new 
smalltalkhubUser: 'girba' project: 'FreeFonts';
package: each;
load ].
(Smalltalk at: each asSymbol) new install ].
FreeTypeSystemSettings loadFt2Library: true.
FreeTypeFontProvider current updateFromSystem.

StandardFonts 
setAllStandardFontsTo: (LogicalFont familyName: 'Source Sans Pro' pointSize: 10);
haloFont: (LogicalFont familyName: 'Source Sans Pro' pointSize: 10);
windowTitleFont: (LogicalFont familyName: 'Source Sans Pro' pointSize: 14);
balloonFont: (LogicalFont familyName: 'Source Sans Pro' pointSize: 10);
codeFont: (LogicalFont familyName: 'Source Code Pro' pointSize: 10)

Did I miss something?

Cheers,
Doru



On Fri, Mar 28, 2014 at 12:44 PM, Pharo4Stef <pharo4Stef@free.fr> wrote:

On 28 Mar 2014, at 12:38, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:

Hi

We found with igor the problems that produced red cross in Moose.
The problem is that the system is looking Source Sans Pro and does not find it.

The logic in findBestFont: does not find it because there is no such font registered in font manager
and the default logic is to return TextStyle defaultFont which is a bitmpa one.

So question:
        - may be we should have a FT font default loaded in the system?

        - Doru we remember that you loaded font in the system? May be you do not register well the fonts.
        Could you let us know what you did?


can you execute the following
        -0  (LogicalFont familyName: 'Source Sans Pro' pointSize: 12) realFont
        you should get a freetype font

        - 1 Disable the freetrype in the setting
        - 2 Enable again freetype in the setting
        - 3 (LogicalFont familyName: 'Source Sans Pro' pointSize: 12) realFont

because you should get a strikeFont and this is the bug
So it looks like the image level fonts are lost.

Stef and Igor.
_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev





--

"Every thing has its own flow"


_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev

_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev