Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Device fonts are get ugly when converted to Bitmap in OS X

New Here ,
Jan 12, 2016 Jan 12, 2016

Dear All,

I'm not sure this will happen in other platforms, but in OS X, either Flash Professional or AS3, if I was trying to make a TextField render to a Bitmap using device fonts, than the texts will become ugly, regardless of what fonts.

In Flash Professional:

When I create a text with "Use device fonts":

Screen Shot 2016-01-13 at 1.05.26 AM.png

Then right click and convert to bitmap:

Screen Shot 2016-01-13 at 1.05.38 AM.png

As you can see, they are get ugly and I don't know why!

In AS3:

import flash.text.TextField;

import flash.display.BitmapData;

import flash.display.Bitmap;

var text : TextField = new TextField();

text.defaultTextFormat = new TextFormat(null, 13, 0xffffff);

text.text = "Some texts";

text.x = 10;

text.y = 10;

addChild (text);

var bd : BitmapData = new BitmapData(512, 512, true, 0);

bd.draw(text);

var bitmap : Bitmap = new Bitmap(bd);

bitmap.x = 10;

bitmap.y = 30;

addChild(bitmap);

Result:

Screen Shot 2016-01-13 at 1.11.19 AM.png

I had tried use drawWithQuality instead and still can not solve the problem.

Is this is a bug? Did I just missing something steps?

I was stuck for a whole day in this problem, I am really looking for help, thanks!

TOPICS
ActionScript
332
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation