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> wrote:
Thanks, indeed :)
Please keep us informed.
Doru
On Wed, Mar 26, 2014 at 5:57 PM, Alexandre Bergel <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
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
--
Best regards,
Igor Stasenko.