Hi Adrian,
The LogicalFont's realFont is set to nil when the image is saved, so your
tweaked line height will be lost next time the image opens.
You could run the script each time the image starts.
Or, we would have to find a place to store these values and apply them
automatically each time a LogicalFont gets assigned a realFont.
Cheers,
Andy
> From: [email protected]
> To: [email protected]
> Date: Thu, 21 May 2009 22:50:18 +0200
> Subject: Re: [Pharo-project] call for hypercool fonts configuration
>
> On Mac, I like the following "special" configuration with Lucida
> Grande and Monaco:
>
> font := LogicalFont familyName: 'Lucida Grande' pointSize: 10.
> codeFont := LogicalFont familyName: 'Monaco' pointSize: 9.
> codeFont realFont instVarNamed: 'cachedAscent' put: 12.
> codeFont realFont instVarNamed: 'cachedHeight' put: 15.
> titleFont := LogicalFont familyName: 'Lucida Grande' pointSize: 10.
>
> Preferences setListFontTo: font.
> Preferences setMenuFontTo: font.
> Preferences setCodeFontTo: codeFont.
> Preferences setButtonFontTo: font.
> Preferences setSystemFontTo: font.
> Preferences setWindowTitleFontTo: titleFont.
>
> Note, I manually tweak the font description of Monaco to decrease the
> line height (don't know why it is that high by default). With the
> above, it looks more like in TextMate for example.
>
> Adrian
>
> On May 21, 2009, at 10:55 , Hilaire Fernandes wrote:
>
> > Yes, anythinks related to look'nd feel and overal design in Pharo
> > could help a lot to make people to LOVE Pharo or to RUN AWAY.
> >
> > Regarding fonts, I found myself sharing the point previously
> > expressed there:
> > -Dejavu Sans for all but code
> > -Code with Dedavu mono
> >
> > The issue about Freetype efficiency, related to submorph damage code
> > related previsouly, is of equal importance.
> >
> > If the user experience is ungood -- slowness -- people will RUN AWAY.
> >
> >
> >
> >
> > 2009/5/21 Stéphane Ducasse <[email protected]>:
> >> Hi guys
> >>
> >> on one hand we should have a good default for fonts - default means
> >> ok
> >> for license and
> >> work on platforms....
> >>
> >> Now I would LOVE to get a list of cool combination of fonts even if
> >> they are proprietary.
> >>
> >> So I hope that I woke the designer in you :)
> >> Send snippets in the following forms that we can impress girls :)
> >>
> >>
> >> font := LogicalFont familyName: 'DejaVu Sans' pointSize: 10.
> >> codeFont := LogicalFont familyName: 'DejaVu Sans Mono' pointSize: 9.
> >> titleFont := LogicalFont familyName: 'DejaVu Serif' pointSize: 11.
> >>
> >> Preferences setListFontTo: font.
> >> Preferences setMenuFontTo: font.
> >> Preferences setCodeFontTo: codeFont.
> >> Preferences setButtonFontTo: font.
> >> Preferences setSystemFontTo: font.
> >> Preferences setWindowTitleFontTo: titleFont.
> >>
> >>
> >> Stef
> >>
> >>
> >>
> >> _______________________________________________
> >> Pharo-project mailing list
> >> [email protected]
> >> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
> >>
> >
> >
> >
> > --
> > http://blog.ofset.org/hilaire
> >
> > _______________________________________________
> > 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
_________________________________________________________________
Share your photos with Windows Live Photos – Free.
http://clk.atdmt.com/UKM/go/134665338/direct/01/
_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project