Quantcast
Channel: Adobe Community : All Content - Adobe Animate CC - General
Viewing all articles
Browse latest Browse all 13519

cacheAsBitmap interfering with device font clear type rendering.

$
0
0

I want to use device fonts in my application so the text appears clear on LCD displays and uses the system's clearType font rasterizing system.  It is characterized by slightly colored edges of text, as opposed to Flash's purely grayscale text rasterizer.  clearType is also what web browsers use, so it allows the text in Flash to exactly match that of the web browser.  Otherwise, Flash's text looks blurry when it uses it's own system with embedded fonts such as "anti-alias for readability", which is purely grayscale.

 

I've noticed that when I'm using a scrollRect with cacheAsBitmp, my text is no longer clear and no longer uses the clearType system, despite having embedFonts set to off.  If I turn off cacheAsBitmap, then the text renders as expected.

 

Is this alteration in font rendering technique by design?  I don't understand why cacheAsBitmp doesn't just render normally and cache the results.  The cached image will be aligned to whole pixels, and frankly, if it wasn't going to be and the colored edges wouldn't look right, then I wouldn't use clearType rendering, but it should be my decision.  cacheAsBitmap seems to exhibit this side effect of altering the font rendering technique, but I wasn't expecting it to have such an effect.
cacheAsBitmapDisablesClearType.png


Viewing all articles
Browse latest Browse all 13519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>