I'm not sure but the fonts could be defined as class methods. Have a look at the way MenuIcon does it.
Stef On Oct 2, 2009, at 3:56 PM, Jochen wrote: > Stéphane Ducasse schrieb: >> >>>>>>> >>> Thank you Henry! With your hint i've finally found a solution! >>> >>> In Squeak I could file out the font with: >>> (StrikeFont familyName: 'Accujen' size: 9) writeAsStrike2named: >>> 'Accujen9.sf2' >>> >>> In Pharo then I could file it in with: >>> TextConstants at: 'Accujen' put: (TextStyle fontArray: (Array with: >>> (StrikeFont new readFromStrike2: 'Accujen9.sf2'))). >>> Preferences restoreDefaultFonts. >>> StrikeFont limitTo16Bits. >>> StrikeFont useUnderscoreIfOver1bpp >>> >>> Now I can use the Accujen like any other font in Pharo. :) >>> >> >> could you package that and put it somewhere? >> so that we can reuse it somebody needs it? >> A AccujenPharo Package would be great! >> >> Stef > I'm quite new to packages/monticello etc. - probably it should be > two packages: one for Squeak (to file out) and one for Pharo (to > file in). Or is it possible to include files (the fonts) into > packages? I'm quite busy at the moment but will think about it the > next days! > Jochen > _______________________________________________ > Pharo-project mailing list > [email protected] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project _______________________________________________ Pharo-project mailing list [email protected] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
