0 Replies Latest reply on Apr 14, 2009 8:04 AM by tanitm

    mx.controls.Text zoom issue with wrapped text. Is this a bug?

      We have created a diagram drawing tool in Flex, but we are having a serious issue with zooming. Everything zoom fine expect the Text control if it contains wrapped text. At certain zoom levels, some of the text seems to disappear (usually text at the end). I have tried everything, embedding fonts, turning anti-aliasing on and off, setting anti-aliasing to normal or advanced, but it doesn't seem to fix the problem. Is this is a known bug?


      If you check out the pictures (see attachments), you will see that the part of the text ('34') disappears at a certain zoom level.


      There is another blog who suggest to embed the font and set the antiAliasType to ‘animation’ (http://www.mehtanirav.com/2008/08/20/zooming-text-area-in-flex-messes-up-word-wrap-bug%20), but this doesn't seem to work for me either. I don't know if I am doing this correctly though, but I embedded a font and called text.setStyle("fontAntiAliasType","animation"). However, 'animation' is not one of the  AntiAliasType contants. According to the official documentation, the AntiAliasType constants are 'advanced' or 'normal'.


      Any help will be appreciated.