Re: [Pharo-project] DejaVu extra sizes Re: DemoMode should not change Fonts only sizes?
Yes I think that we should just get better at packaging/loading.... But this package is important so it should be a supported package. Stef
Due to the size issue, I wouldn't include them all by default.
Maybe we could make some clever set of MC packages that you can load for each font size that you want ? Or load the spec data from a file/url ?
You have a point here. Maybe we don't need to put all the families and all the size in the core....just the most used ones.
Then, in the Dev image we can load all the rest, and the settings to set the Demo Fonts.
what do you think alain?
Anyway, all these fonts should be removed in #cleanUpForProduction I think.
cheers
mariano
I think most people will only need one or two sizes. The fallback should just be miminal.
Sven
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Le 23/09/2010 09:17, Stéphane Ducasse a écrit :
Yes I think that we should just get better at packaging/loading.... But this package is important so it should be a supported package.
Stef
Concerning the size issue: On a fresh image: after a cleanUpForRelease -> 13.4 Mo Then, I've load the full dejaVu font and I've removed the old accuny one, also removed old dejaVu (the current one with 3 sizes), cleaned StrikeFont class then cleanUpForRelease -> 14.1 Mo In this image, only one dejaVu font with all sizes, so that standard and demo mode are working. Of course we can also remove small sizes (maybe 5, 6 and 7) to decrease the size more. Cheers Alain
Accuny was not fully removed in my previous try (was still referenced by TextConstants). After deeper cleaning and loading of the dejaVu font without the 5, 6 and 7 sizes -> 14.0 Mo. The size was of 13.2 Mo before the cleaning, so, I guess that the price is of 0.8 Mo. Here is what I've done: ------- Before: World removeAllMorphs. StrikeFont cleanUp. ScriptLoader new cleanUpForRelease. -> 13.2 Mo Then: World removeAllMorphs. StrikeFont cleanUp. DejaVuHolder cleanUpForRelease. StandardFonts setFontsFromSpec: #( #(#defaultFont: 'Bitmap DejaVu' 9 ) #(#codeFont: 'Bitmap DejaVu' 9 ) #(#listFont: 'Bitmap DejaVu' 9 ) #(#menuFont: 'Bitmap DejaVu' 9 ) #(#windowTitleFont: 'Bitmap DejaVu' 12 ) #(#balloonFont: 'Bitmap DejaVu' 10 ) #(#haloFont: 'Bitmap DejaVu' 10 ) #(#buttonFont: 'Bitmap DejaVu' 9 ) ). StrikeFont class removeCategory: #'*Graphics-Resources'. TextConstants removeKey: #Accuny. TextConstants removeKey: #'Bitmap DejaVu Sans'. TextConstants at: #DefaultFixedTextStyle put: (TextConstants at: #'Bitmap DejaVu'). TextConstants at: #DefaultMultiStyle put: (TextConstants at: #'Bitmap DejaVu'). StrikeFont cleanUp. ScriptLoader new cleanUpForRelease. SmalltalkImage current garbageCollectMost. ------ After that, there was still an old text style referenced by the ParagraphEditor UndoParagraph class variable. I've cleaned it by setting UndoParagraph to nil from an inspector. Cheers Alain Le 23/09/2010 09:40, Alain Plantec a écrit :
Le 23/09/2010 09:17, Stéphane Ducasse a écrit :
Yes I think that we should just get better at packaging/loading.... But this package is important so it should be a supported package.
Stef
Concerning the size issue: On a fresh image: after a cleanUpForRelease -> 13.4 Mo
Then, I've load the full dejaVu font and I've removed the old accuny one, also removed old dejaVu (the current one with 3 sizes), cleaned StrikeFont class then cleanUpForRelease -> 14.1 Mo
In this image, only one dejaVu font with all sizes, so that standard and demo mode are working. Of course we can also remove small sizes (maybe 5, 6 and 7) to decrease the size more.
Cheers Alain
On Sep 23, 2010, at 9:40 42AM, Alain Plantec wrote:
Le 23/09/2010 09:17, Stéphane Ducasse a écrit :
Yes I think that we should just get better at packaging/loading.... But this package is important so it should be a supported package.
Stef
Concerning the size issue: On a fresh image: after a cleanUpForRelease -> 13.4 Mo
Then, I've load the full dejaVu font and I've removed the old accuny one, also removed old dejaVu (the current one with 3 sizes), cleaned StrikeFont class then cleanUpForRelease -> 14.1 Mo
In this image, only one dejaVu font with all sizes, so that standard and demo mode are working. Of course we can also remove small sizes (maybe 5, 6 and 7) to decrease the size more.
Cheers Alain Sounds like a plan, I feel the StrikeFont port from Cuis is new robust enough now to drop accuny completely. Personally I find 7 a good size for tooltips/buttons, haven't used the even smaller sizes.
The package should be updated to provide proper derived fonts for Bold Italic though. Also, is there a specific reason bitmaps for Italic underlined is included for size 12, and no others? Cheers, Henry
Le 23/09/2010 16:03, Henrik Johansen a écrit :
Sounds like a plan, I feel the StrikeFont port from Cuis is new robust enough now to drop accuny completely. Personally I find 7 a good size for tooltips/buttons, haven't used the even smaller sizes.
too small here, but of course, the 7 is available if we want to include it.
The package should be updated to provide proper derived fonts for Bold Italic though. notice that the 22 has Undelined and Italic-Underlined too
Also, is there a specific reason bitmaps for Italic underlined is included for size 12, and no others?
I don't know why but it seems that it is like that in Cuis. Maybe Juan could tell us ? I've only implemented some methods in order to automatically extract them from Cuis. Alain
Cheers, Henry
Alain Plantec wrote:
Le 23/09/2010 16:03, Henrik Johansen a écrit :
Sounds like a plan, I feel the StrikeFont port from Cuis is new robust enough now to drop accuny completely. Personally I find 7 a good size for tooltips/buttons, haven't used the even smaller sizes.
too small here, but of course, the 7 is available if we want to include it.
The package should be updated to provide proper derived fonts for Bold Italic though. notice that the 22 has Undelined and Italic-Underlined too
Also, is there a specific reason bitmaps for Italic underlined is included for size 12, and no others?
I don't know why but it seems that it is like that in Cuis. Maybe Juan could tell us ?
I've only implemented some methods in order to automatically extract them from Cuis. Alain
Cheers, Henry
Hi Folks, I included in Cuis the fonts I think are most needed. If you want to build other sizes, all you need is http://www.jvuletich.org/Cuis/AAFonts.zip and the methods already in StrikeFont. That zip file includes regular, bold, italic and bold italic for all sizes between 5 and 24. Have fun with it! Cheers, Juan Vuletich
Le 23/09/2010 20:20, Juan Vuletich a écrit :
Hi Folks,
I included in Cuis the fonts I think are most needed. If you want to build other sizes, all you need is http://www.jvuletich.org/Cuis/AAFonts.zip and the methods already in StrikeFont. That zip file includes regular, bold, italic and bold italic for all sizes between 5 and 24.
Have fun with it!
yes! I've load them in pharo. Thanks a lot Juan A package for Pharo will be available soon. Cheers Alain
Cheers, Juan Vuletich
participants (4)
-
Alain Plantec -
Henrik Johansen -
Juan Vuletich -
Stéphane Ducasse