Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AS3 font embed height issue

This is probably the weirdest font embed problem I've had in years...

I'm using Flash CC. Whenever I use an embed font I get this weird result.

problem

On the left I'm using a system font without embed, on the right I just switch to an embedded font in the library. Nothing else changes. I'm doing everything by code.

The height of the TextField and the textHeight property changes, depending on if I use an embedded font or not. It doesn't matter what font I embed, I have tried many different fonts with the exact same result.

enter image description here

I have tried changing the leading property in the TextFormat object, but there's always some sort of padding at the top of the textField.

Anyone has any idea of what is going on?

like image 566
Pier Avatar asked Nov 12 '22 02:11

Pier


1 Answers

It's a bug in Flash CC confirmed by Adobe.

Only solution as suggested by Adobe until they fix the bug, is to create a textfield that uses the embedded font via the IDE. Put it on the stage, and hide it.

My client will be very happy.

like image 157
Pier Avatar answered Nov 15 '22 06:11

Pier