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
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.





 

--

 

"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.