Yes, this is a known bug actually, which i demonstrated to audience during tutorial presentation.. i/cairo miss the correct font matrix setup.. and i need to see what's there. Cairo caching the glyphs in a strange way (so if you never drawn anything with given font before and your first drawing will use some rotation then everything will be rendered correctly, but if you already drawn anything it will render them like you shown).. I'm going to fix that issue when i come back from Lviv. On 9 April 2013 15:04, Tristan Bourgois <tristan.bourgois@gmail.com> wrote:
Very cool tutorial :)
I show it at my works and they are impressed of the readability of Athens!
Juste a remark about the text. I try to rotate the text and (I d'ont know if it's the good behavior). All the text rotate but the letter not.
[image: Images intégrées 1]
Tristan
2013/4/4 Igor Stasenko <siguctua@gmail.com>
Hello, there
i prepared a small tutorial for Athens, which i did today at PharoConf. But the code i did can be reused by non-participants of conference :)
Here the instructions.
Download Pharo 2.0
wget -O - get.pharo.org | bash
Run Pharo 2.0
./pharo-ui Pharo.image
In a workspace, evaluate (line after line)
Gofer it smalltalkhubUser: 'Pharo' project: 'Athens'; configuration; load.
ConfigurationOfAthens loadVersion: '2.0'.
Gofer it smalltalkhubUser: 'Pharo' project: 'Athens'; package:'Athens-Tutorial'; load.
AthensTutorial new openWithSpec.
Took from here https://gist.github.com/SergeStinckwich/44ca34b54cde83b687a3 (just removed duplicates ;)
Thanks, Serge for compiling it down ;)
Once you load the code and have window open, skip step one (you already did it), and then just follow the steps by pressing doit button changing the code , pressing doit again , going forwards etc .. and playing with it. I put some comments there to serve as a small description/detail.
Any feedback & help & contributions & improvements is welcome.
P.S. if you get a DNU at step 30, enable Freetype in settings and try again.
-- Best regards, Igor Stasenko.
-- Best regards, Igor Stasenko.