And the installation of the font happens like this:

install
FreeTypeFontProvider current 
addFromFileContents: self fontContents 
baseName: self originalFileName

Cheers,
Doru




On Fri, Mar 28, 2014 at 1:41 PM, Tudor Girba <tudor@tudorgirba.com> 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"



--
www.tudorgirba.com

"Every thing has its own flow"