Flash CS5 messed up all my text fields - how can I fix this?

I have an Actionscript project that I created using Flash CS4. I nested the font using the following command:

[Embed(source="/bin/assets/fonts/MyriadPro-Regular.otf", fontWeight="normal", fontFamily="Myriad Pro")]

Then, in my entire application in my TextFields, I would set embedFonts to true antialiastype for the advanced one and set the thickness property of the text field. And setting up the font family from the stylesheet. All this worked exactly as I expected it to be without any problems and months of development.

I just upgraded to CS5 and published, and not one of my texts was rendering at all. I was able to solve this by removing embedFonts = true from the text fields, but that leaves me with no control over the thickness.

I searched everywhere, does anyone know what is the right way to do this in CS5 now? I tried to embed my font directly into the CS5 environment, but still did not control the thickness.

Thank you in advance for any help - I have tons of text fields in the entire application, which are now all gang up. Thanks Adobe.

b

+3
source share
3 answers

I figured out how to do this, so it works with CS5. For everyone who is interested, this is what I did to get the fonts to display as they were before the update.

, ActionScript, text > embed fonts CS5 IDE. , , ActionScript "MyriadPro" .

actionscript Font.registerFont(MyriadPro), .

css - , . - , : "Myriad Pro"

Fonts , .

, , -

+2

. " ". (.. Unicode U + 2018-U + 2027). , Flash .

0

- , , ( ) - Flash CS5. CS4 .

HTML Flash CS5?

0

Source: https://habr.com/ru/post/1744072/


All Articles