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
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
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project