[Pharo-dev] WhatsUp from: 2013-11-04 until: 2013-11-17

Tudor Girba tudor at tudorgirba.com
Tue Nov 5 00:04:28 EST 2013


I am glad you are considering other types of fonts :). Still, I think that
Open Sans does not work well with Source Code. First, there is not enough
distinction between them, and second, their rhythms do not match (both in
terms of height and width).

Choosing a consistent family of fonts mitigates these problems. Source is a
family of fonts that also comes with a Source Sans variation. That is why
my settings look like:

#('SourceCodeProRegular' 'SourceCodeProBold' 'SourceSansProRegular'
'SourceSansProBold') do: [ :each |
Smalltalk globals
at: each asSymbol
ifAbsent: [
Gofer new
smalltalkhubUser: 'girba' project: 'FreeFonts';
package: each;
load ].
(Smalltalk at: each asSymbol) new install ].
FreeTypeSystemSettings loadFt2Library: true.
FreeTypeFontProvider current updateFromSystem
setAllStandardFontsTo: (LogicalFont familyName: 'Source Sans Pro'
pointSize: 10);
haloFont: (LogicalFont familyName: 'Source Sans Pro' pointSize: 10);
windowTitleFont: (LogicalFont familyName: 'Source Sans Pro' pointSize: 14);
balloonFont: (LogicalFont familyName: 'Source Sans Pro' pointSize: 10);
codeFont: (LogicalFont familyName: 'Source Code Pro' pointSize: 10)

Here is a screenshot:

Notice how I also load the bold versions of both fonts so that we can use
them both in code and in lists.


On Mon, Nov 4, 2013 at 5:31 PM, Sven Van Caekenberghe <sven at stfx.eu> wrote:

> Hey Doru,
> On 04 Nov 2013, at 17:01, Tudor Girba <tudor at tudorgirba.com> wrote:
> - Continue on the topic of "Pharo IDE of the Future”
> Great, looking forward to it !
> FWIW, I have come around about the fonts ;-)
> I have been using Open Sans & Source Code Pro for a while now, and I like
> them.
> These are my font selections for my MacBook Air 13’’ (1440x900):
> Light and modern, like Pharo itself !
> Apart from the bolding of the window title font, this code sets those
> fonts:
> SourceCodeProRegular new install.
> OpenSansRegular new install.
> FreeTypeFontProvider current updateFromSystem.
> #(
> #(#defaultFont: 'Open Sans' 12)
> #(#listFont: 'Open Sans' 12)
> #(#menuFont: 'Open Sans' 12)
> #(#windowTitleFont: 'Open Sans' 12)
> #(#balloonFont: 'Open Sans' 10)
> #(#codeFont: 'Source Code Pro' 11)
> #(#buttonFont: 'Open Sans' 12)
> #(#haloFont: 'Open Sans' 10)) do: [ :spec |
> | font |
> font := LogicalFont familyName: spec second pointSize: spec third.
> StandardFonts perform: spec first with: font ]
> Thanks again for taking care !
> Sven


"Every thing has its own flow"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20131105/627528a8/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2013-11-04 at 17.25.38.png
Type: image/png
Size: 526979 bytes
Desc: not available
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20131105/627528a8/attachment.png>

More information about the Pharo-dev mailing list