De : Pharo-dev [mailto:pharo-dev-bounces@lists.pharo.org] De la part de Igor Stasenko Envoyé : jeudi 27 mars 2014 16:45 à : Pharo Development List Objet : Re: [Pharo-dev] Font problem is still there Btw, guys i need some details: - what platform you using The problem appears on both Linux Ubuntu x64 and Windows 7 platforms. - what default font you using We use this code to grab the default font: LogicalFont familyName: StandardFonts defaultFont familyName pointSize: aSize (aSize is the size of the font that we want). On Windows 7 the standard default font is (by printing âStandardFonts defaultFontâ): "a LogicalFont familyName: Source Sans Pro emphasis: nil pointSize: 10 realFont: FreeTypeFont('Source Sans Pro' 'Regular' 10) weight: 400 stretch: 5 slant: 0" On 26 March 2014 21:27, Tudor Girba <tudor@tudorgirba.com<mailto:tudor@tudorgirba.com>> wrote: Thanks, indeed :) Please keep us informed. Doru On Wed, Mar 26, 2014 at 5:57 PM, Alexandre Bergel <alexandre.bergel@me.com<mailto:alexandre.bergel@me.com>> wrote:
I didn't tried to debug it, i can't bet it would be easy (need to build a debug version of cairo first) but it worth trying. Meanwhile i will put workaround back. Thanks Igor. Let us know!
Alexandre
Hi!
there's some kind of caching interference either in cairo or between cairo and freetype, when using identity transformation matrix and integral (integer) font sizes. and there is a simple workaround:
canvas pathTransform restoreAfter: [ canvas pathTransform scaleBy: 1.00001. "draw text here"
]
this workaround was in font-rendering code, but then i removed it, because i thought problem was solved.
Can we add this back please? This font problem is quite serious. It makes people laugh at Pharo...
-- Best regards, Igor Stasenko.
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. -- www.tudorgirba.com<http://www.tudorgirba.com> "Every thing has its own flow" -- Best regards, Igor Stasenko. ________________________________ Ce message et les pièces jointes sont confidentiels et réservés à l'usage exclusif de ses destinataires. Il peut également être protégé par le secret professionnel. Si vous recevez ce message par erreur, merci d'en avertir immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant être assurée sur Internet, la responsabilité de Worldline ne pourra être recherchée quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus, l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne saurait être recherchée pour tout dommage résultant d'un virus transmis. This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Worldline liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted.