[BUG] FreeTypeFont>>veryDeepCopy

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[BUG] FreeTypeFont>>veryDeepCopy

Denis Kudriashov
veryDeepCopy method on FreeTypeFont instance should do nothing. Just returns self.

Otherwise, FreeType font copy raise primitive failure on image saving and can corrupt image.

Maybe this method should be in AbstractFont (It exists in other subclasses too, but not all).

I open ussue 2529

I found this bug after cloning morphs with text by halo button.

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: [BUG] FreeTypeFont>>veryDeepCopy

Stéphane Ducasse
thanks denis.

Stef

On Jun 10, 2010, at 7:58 PM, Denis Kudriashov wrote:

> veryDeepCopy method on FreeTypeFont instance should do nothing. Just returns self.
>
> Otherwise, FreeType font copy raise primitive failure on image saving and can corrupt image.
>
> Maybe this method should be in AbstractFont (It exists in other subclasses too, but not all).
>
>
> I open ussue 2529
>
> I found this bug after cloning morphs with text by halo button.
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project