Freetype tips with loading fonts

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

Freetype tips with loading fonts

Hilaire Fernandes
Hello

In case, it is useful to someone. It is how I clean up the known fonts
in the image and load an external one located along the image.


FreeTypeFontProvider unload.
FreeTypeFontProvider current
        updateFromFileEntry:
                (FileDirectory default entryAt: 'UnDotum.ttf')
        directory:  FileDirectory default
        locationType: #imageRelative.
FreeTypeFontProvider current buildFamilies.
FreeTypeFontSelectorDialogWindow new open. "to see the loaded font"

StandardFonts balloonFont:
        (LogicalFont familyName: 'UnDotum'  pointSize: 10).
StandardFonts defaultFont:
        (LogicalFont familyName: 'UnDotum'  pointSize: 11).


Hilaire

--
Dr. Geo -- http://www.drgeo.eu


Reply | Threaded
Open this post in threaded view
|

Re: Freetype tips with loading fonts

Stéphane Ducasse
thanks hilaire.
Yes this is useful.

On May 30, 2012, at 10:49 AM, Hilaire Fernandes wrote:

> Hello
>
> In case, it is useful to someone. It is how I clean up the known fonts
> in the image and load an external one located along the image.
>
>
> FreeTypeFontProvider unload.
> FreeTypeFontProvider current
> updateFromFileEntry:
> (FileDirectory default entryAt: 'UnDotum.ttf')
> directory:  FileDirectory default
> locationType: #imageRelative.
> FreeTypeFontProvider current buildFamilies.
> FreeTypeFontSelectorDialogWindow new open. "to see the loaded font"
>
> StandardFonts balloonFont:
> (LogicalFont familyName: 'UnDotum'  pointSize: 10).
> StandardFonts defaultFont:
> (LogicalFont familyName: 'UnDotum'  pointSize: 11).
>
>
> Hilaire
>
> --
> Dr. Geo -- http://www.drgeo.eu
>
>


Reply | Threaded
Open this post in threaded view
|

Re: Freetype tips with loading fonts

Stéphane Ducasse
excellent

is it possible to get some screen shots?

Stef

On May 31, 2012, at 6:37 PM, Hilaire Fernandes wrote:

> And now I can print Asian (Chinese, Japanese, Korean), Greek, Russian
> languages in Pharo/Dr. Geo.
>
> I am still looking for people to translate in Japanese, Greek and
> Russian. It takes place there http://translation.drgeo.eu
>
> Hilaire
>
> Le 30/05/2012 21:11, Stéphane Ducasse a écrit :
>> thanks hilaire.
>> Yes this is useful.
>
>


Reply | Threaded
Open this post in threaded view
|

Re: Freetype tips with loading fonts

Hilaire Fernandes
Sure, see on my tweets https://twitter.com/#!/drgeo2
There are Dr. Geo'screenshots with Japanese, Korean and Chinese.

Hilaire


On 31/05/2012 23:01, Stéphane Ducasse wrote:

> excellent
>
> is it possible to get some screen shots?
>
> Stef
>
> On May 31, 2012, at 6:37 PM, Hilaire Fernandes wrote:
>
>> And now I can print Asian (Chinese, Japanese, Korean), Greek, Russian
>> languages in Pharo/Dr. Geo.
>>
>> I am still looking for people to translate in Japanese, Greek and
>> Russian. It takes place there http://translation.drgeo.eu
>>
>> Hilaire
>>
>> Le 30/05/2012 21:11, Stéphane Ducasse a écrit :
>>> thanks hilaire.
>>> Yes this is useful.
>>
>>
>
>
>


--
Dr. Geo -- http://www.drgeo.eu