Fonts

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

Fonts

Alexandre Bergel
Dear List,

In a core 10401, I copied the Font folder next to the image. When I  
open the font chooser, one 'Accuny' is listed. Apparently, the font  
folder is not scanned. Is there a way to enforce this?

Few release earlier, the following expression worked as expected:
                 (LogicalFont familyName: 'Accuny' pointSize: 10) widthOfString:  
'abc' => 20

In a 10401, an exception is raised: DNU ByteString>>between:and:
The error stems from:
-=-=-=-=-=-=-=-=-=-=-=-=
FreeTypeFontProvider>>fontInfoFor: aLogicalFont familyName: familyName
        | family member |
        ...
        family := self families at: familyName ifAbsent:[].
        ...
-=-=-=-=-=-=-=-=-=-=-=-=

familyName is expected to be a string apparently, but it is used as an  
integer.
Is this a bug, or the protocol recently changed?

Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Fonts

Mariano Martinez Peck
Alex: I don't know if I understand you, but FreeType has to scan for new installed or removed fonts. In the beginning this was done when the image was open. But as this takes several seconds and this were not something very common, it was removed from startup. However, as you can read here: http://code.google.com/p/pharo/wiki/CodeSnippets

You can evaluate this to refresh the fonts:

FreeTypeFontProvider current updateFromSystem

Best,

Mariano

On Fri, Aug 14, 2009 at 3:45 PM, Alexandre Bergel <[hidden email]> wrote:
Dear List,

In a core 10401, I copied the Font folder next to the image. When I
open the font chooser, one 'Accuny' is listed. Apparently, the font
folder is not scanned. Is there a way to enforce this?

Few release earlier, the following expression worked as expected:
                (LogicalFont familyName: 'Accuny' pointSize: 10) widthOfString:
'abc' => 20

In a 10401, an exception is raised: DNU ByteString>>between:and:
The error stems from:
-=-=-=-=-=-=-=-=-=-=-=-=
FreeTypeFontProvider>>fontInfoFor: aLogicalFont familyName: familyName
       | family member |
       ...
       family := self families at: familyName ifAbsent:[].
       ...
-=-=-=-=-=-=-=-=-=-=-=-=

familyName is expected to be a string apparently, but it is used as an
integer.
Is this a bug, or the protocol recently changed?

Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Fonts

Damien Cassou
In reply to this post by Alexandre Bergel
Hi Alexandre,

On Fri, Aug 14, 2009 at 6:45 PM, Alexandre Bergel<[hidden email]> wrote:
> In a core 10401, I copied the Font folder next to the image. When I
> open the font chooser, one 'Accuny' is listed. Apparently, the font
> folder is not scanned. Is there a way to enforce this?

all Pharo images contain nice fonts by default, a very cool code
browser, syntax highlighting, completion... Why do you need to do that
manually in the Core?

--
Damien Cassou
http://damiencassou.seasidehosting.st

"Lambdas are relegated to relative obscurity until Java makes them
popular by not having them." James Iry

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Fonts

Alexandre Bergel
>> In a core 10401, I copied the Font folder next to the image. When I
>> open the font chooser, one 'Accuny' is listed. Apparently, the font
>> folder is not scanned. Is there a way to enforce this?
>
> all Pharo images contain nice fonts by default, a very cool code
> browser, syntax highlighting, completion... Why do you need to do that
> manually in the Core?

Mondrian needs this. You can set different font for labels in  
Mondrian, and now it is broken. I will dive into this soon.

Alexandre


--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project