[squeak-dev] Re: Trunk update error
Raymond Asselin
asselinraymond at videotron.ca
Thu Aug 6 16:54:27 UTC 2009
Le 09-08-06 à 12:31, Raymond Asselin a écrit :
>
> Le 09-08-06 à 12:13, Andreas Raab a écrit :
>
>> StrikeFont allInstances do:[:font|
>> font characterToGlyphMap ifNil:[
>> font characterToGlyphMap: (0 to: 256 collect:[:i| i]).
>> ].
>> ].
snip...
> Thank you very much this snippet of code solve my problem.
> But I still does not understand how that japanese font went there!
>
> This was a super fast answer... :)
Just to be sure to understand correctly ...
=====
createCharacterToGlyphMap
"Private. Create the character to glyph mapping for a font
that didn't have any before. This is basically equivalent to what the
former setStopCondition did, only based on indexes."
maxAscii < 256 ifTrue: [^ (1 to: 256) collect: [:i | i - 1]].
^ nil.
=====
is not applied on fonts where maxAscii is > 255 as in Japanese fonts
thus must be changed ?
More information about the Squeak-dev
mailing list
|