Re: [Pharo-project] how to use dejavu bitmap fonts
On Feb 1, 2011, at 11:02 AM, Benjamin wrote:
If it's still not working, I can have a look if you want :)
We should integrate that into 1.3 soon...
Ben
On Feb 1, 2011, at 7:07 AM, Stéphane Ducasse wrote:
Hi Doru, I've take a look and I think I've fixed it. Unfortunately the network is much too slow here for this BIG package. You can simply fix it by yourself locally (before it is uploaded on squeaksource). Just edit DejaVuHolder class >> #installSizes: and set it to:
installSizes: aListOfInteger "self installSizes: #(7 8 9 10 11 12 13 14 24)" TextConstants TextSharedInformation at: self fontName put: (TextStyle fontArray: (self loadFromStructuresList: (self fontStructureNamesForSizes: aListOfInteger))). StrikeFont useUnderscoreIfOver1bpp.
Yes this should be it.
Doru TextConstants was a dictionary containing poolVariables (old abstractions) AND values that people just added as global dictionary. What we did was to define the fixed part of TextConstant = the poolVariables as a real SharedPool and the rest the shitty part (where all the system register things in this nice global variables (instead of using adequate class variables)) is now in the classVariable TextSharedInformation of TextConstants
Stef
-- Marcus Denker -- http://www.marcusdenker.de INRIA Lille -- Nord Europe. Team RMoD.
participants (1)
-
Marcus Denker