BUG - in flash pro CC, 'bold' and 'italic' properties of TextFormat have no effect on rendered text

Concise problem statement:
If you compile with flash pro CC, and use the 'setTextFormat' method of a TextField, the 'bold' and 'italic' properties of the TextFormat argument have no effect on the rendered text. If you compile with flash pro CS6, the 'bold' and 'italic' properties work as expected.
Apparently, with flash pro CC, the only way to make the text render correctly is to change the font name (add the suffix ' Bold', ' Italic', or ' Bold Italic'.) This means code which dynamically changes font styles only works in CS6 or CC, but not both. For example, if you use the 'bold' property the text renders bold in CS6 and regular in CC, whereas if you change the font name to add the suffix ' Bold', the text renders bold in CC and DOES NOT RENDER at all in CS6. This makes it difficult to transition a team from CS6 to CC.
Steps to reproduce bug:
1. Create an xfl with 2 TextFields on the stage, both with font "Trebuchet MS" and style "regular", one named boldTrueText containing the String "bold = true", one named fontNameText containing the String "fontName = Trebuchet MS Bold". Create 2 more TextFields on the stage for visual reference, both with font "Trebuchet MS", one with style "regular", one with style "bold".
2. Add the following code to the Actions panel on frame 1:
import flash.text.TextFormat;
import flash.text.Font;
var format:TextFormat = boldTrueText.getTextFormat();
format.bold = true;
boldTrueText.setTextFormat(format);
format = fontNameText.getTextFormat();
format.font = "Trebuchet MS Bold";
fontNameText.setTextFormat(format);
var fonts:Array = Font.enumerateFonts(), count:int = fonts.length;
for (var i:int = 0; i < count; i++) {
    var font:Font = fonts[i];
    trace("fontName: " + font.fontName + ", fontStyle: " + font.fontStyle);
3. Save, and compile with flash pro CS6 and flash pro CC.
Results:
With flash pro CS6, "bold = true" renders bold, and "fontName = Trebuchet MS Bold" DOES NOT RENDER.
With flash pro CS6, the following is traced:
fontName: Trebuchet MS, fontStyle: bold
fontName: Trebuchet MS, fontStyle: regular
With flash pro CC, "bold = true" renders regular, and "fontName = Trebuchet MS Bold" renders bold.
With flash pro CC, the following is traced:
fontName: Trebuchet MS, fontStyle: regular
fontName: Trebuchet MS Bold, fontStyle: bold
Expected results:
The same text is rendered in both flash pro CS6 and CC. I don't know why this behavior was changed in flash pro CC - it causes silent failures in code which dynamically changes font styles. I expected the flash pro CS6 behavior to remain the same in CC, like so:
With flash pro CC, "bold = true" renders bold, and "fontName = Trebuchet MS Bold" DOES NOT RENDER.
With flash pro CC, the following is traced:
fontName: Trebuchet MS, fontStyle: bold
fontName: Trebuchet MS, fontStyle: regular
If you don't want to break backward compatibility (any further), you could make both the behaviors work in flash pro CC, like so:
With flash pro CC, "bold = true" renders bold (font is still "Trebuchet MS"), and "fontName = Trebuchet MS Bold" renders bold also.
With flash pro CC, the following is traced:
fontName: Trebuchet MS, fontStyle: bold
fontName: Trebuchet MS, fontStyle: regular
fontName: Trebuchet MS Bold, fontStyle: bold
I submitted this bug with the bug form, and also with adobe bugbase (in case it isn't obsolete) - I'm just trying to maximize my chances of getting a fix.  Has anyone else encountered this bug?

I just can't believe how there is ZERO documenation for any of this.  Flash's stylesheets have fontStyle and fontWeight properties, but they only recognize regular/italic and regular/bold respectively.
This change in Flash CC completely breaks systems built in Flash CS6, and the font naming is actually arbitrary and is not a consistant combination of font name and style (e.g. "Eras ITC" family's bold font name is "Eras Bold ITC", but the bold version of Times New Roman is "Times New Roman Bold" (with Bold at the end, rather than the middle), and what's absolutely appaling is that the font name used at runtime is not exposed anywhere in the Flash IDE!!!  In the IDE you select a font family and font style independently, which is absolutely not what's used at runtime, because it actually uses a separate, arbitrarily named field in the font file for the font name. So we can't even know from within Flash what the proper runtime name is, unless we trace it out or open the font properties details tab in Windows explorer.
It seems that Flash CC is always using the font "Title" that can be found in the properties of the font, NOT the font name displayed in Windows Font Preview or in Flash CC.  For example, the font name for Times New Roman Bold in Windows Font Preview is just "Times New Roman", but the font title in the properties/details tab is "Times New Roman Bold".  If they made the change to allow for specific fonts to be selected, that's fine, but it completely breaks HTML support in TextFields if it's not respecting bold and italic tags.
This may actually be a trend on the web now, if you read this: http://www.smashingmagazine.com/2013/02/14/setting-weights-and-styles-at-font-face-declara tion/ , it says: "If you’ve used one of FontSquirrel’s amazing @font-face kits, then you’re familiar with this approach to setting weights and styles. The CSS provided in every kit uses a unique font-family name for each weight and style, and sets the weight and style in the @font-face declaration to normal. [...] Notice that the font-family names are unique, with each font-family name accessing the appropriate Web font files."
But there's just no mention of this in any documentation I can find.  What the hell.
It's also helpful to realize that font and u tags have been deprecated in HTML5, while b and i tags have been repurposed since they still retain semantic meaning apart from style: https://www.w3.org/International/questions/qa-b-and-i-tags

Similar Messages

  • CS4 (XP Pro)--missing bold and italic fonts for PMingLiu font

    I'm working on a book that's been translated into Chinese. The Chinese text I'm using was sent to me in Microsoft Word using the PMingLiu font. While in Word, there are some characters that appear in bold and/or italics, but those disappear when I try any means of importing into ID (as in placing the file as a Word document, placing the file as rtf, or even just copying and pasting from Word).
    As I've seen mentioned in other topics on this forum, no matter what I do, I get the pink boxes that I have to highlight and change to PMingLiu (slow but not a huge problem). But I really do need the bolds and italics. I only seem to have "Regular" PMingLiu--don't have the bold and italic varieties listed in my font list.
    Are those fonts available somewhere to download?
    Thanks so much to the oh-so helpful readers of this forum!

    Microsoft Office applications as well as many other applications allow you to "bold" or "italicize" content even when the "bold" or "italic" version of the font is either not installed or in fact might not even exist. Artificial bold usually consists of stroking the character slightly in addition to filling it. Artificial italic is performed by skewing (obliqueing) the character to simulate the look of an italic style. Although these artificial techniques sometimes yield usable results, they are typically NOT supported by graphic arts programs such as InDesign, Illustrator, or Photoshop. Typically, bold and italic faces are typical of most but not all "Latin" font families but are less common for non-Latin font families.
    In your particular case, I suspect that artificial bold, italic, and/or combinations of bold and italic were used with the font in question. InDesign does "the right thing" by indicating that no such font exists. If you want to simulate bold, let the characters in question be stroked in addition to being filled. The width of the stroke will obviously depend on the point size of the text and the style of the characters. You will need to experiment a bit. For italics, skew the characters to the right; again you will need to experiment.
    Doing a quick web search, from what I can best determine, there are no bold or italic versions of PMingLiu available either for free or for paid licensing.
    - Dov

  • Bold and italic fonts in dynamic text fields.

    I have a dynamic text field with the text "IMAGES". The font
    is Arial, it has BOLD and ITALIC checked, and has basic Latin fonts
    embedded. Now, I use Actionscript to change the text:
    textField.text = "IMAGES";
    Suddenly the text disappears! Now, it seems to me that since
    BOLD and ITALIC are checked on the text field, changing the .text
    value should simply change the text itself, which should then be
    rendered in bold and italic, and since I have bold+italic Latin
    glyphs embedded, it should display properly. But what's clearly
    happening is that when I set the text using Actionscript, it is
    attempting to display the NORMAL font instead, and since it's not
    embedded, it won't display. I know this because if I create another
    proxy text field off the screen and embed the NORMAL Arial glyphs,
    the original text field's text will display just fine - as
    normal-weight text.
    But why is this? Do I have to use a TextFormat object to set
    the text to Bold and Italic EVERY time I want to dynamicaly change
    the text? This seems silly. I simply want my text field to be bold
    and italic every time the text changes, and NO normal text!
    Any ideas?

    I met the same problem using ActionScript3 and Flash Professional CS5. There are two problems with dynamic TextFields:
    - When you set style "Bold" for a text field in CS5, the "bold" property is not available in the TextField object in ActionScript, its defaultTextFormat.bold is alway false; I don't know if we can get this property anywhere else.
    - When you change the text of the dynamic TextField object, its style changes to normal no matter whether it was bold previously.
    This is really a bug in TextField, Adobe should fix this to implement TextField in an expected way.

  • Euclid Symbol Bold and Italic fonts not working in Indesign CS5

    Hi I created some Maths Text books about 5 years ago in an older Adobe Indesign program. I now have to re-edit the files using Indesign CS5.
    The Euclid Symbol Bold and Italic fonts i used back in 2005 now do not display in Indesign 5 when i open up the program. The other Euclid Symbol Fonts do. I think that they are all truefonts.
    I have attached an example.
    I am using a Mac running OSX 10.6.8.
    http://www.dessci.com/en/support/mathtype/tsn/tsn109.htm    <-- this is an error log from 'MathType' the guys who created the font - yet unsure what this actually means for me
    Here is the example
    fonts in the Euclid Family on my Mac

    Congratulations on fixing the problem yourself! Hopefully our article (to which you linked) was of some help in that process. Let us know if you need anything else.
    Bob Mathews
    Design Science

  • Text appearing as Bold and Italic in CS4

    Hi Guys
    Whenever I create a new document and type into it the text is automatically 'bold' and 'italics', I have saved the page and opened on another computer running CS4 and the text is fine (not bold or italic). I have created a page on another computer and opened it on the troublesome one and again it is bold and italic ((
    I cannot see anything in the preferences that may cause it, I have also discarded the configuration folder which contains the preferences for the program - no good either (( So as a last resort I have re-installed Dreamweaver and it is still playing up. I guess I can re-installs the complete CS4 suite but rather not as it is going to take a while and also may not fix the problem.
    Any ideas anybody??

    I have just copied the code from the page as below and as you can see there is no bold or italic applied:-
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    <body>
    hello
    </body>
    </html>

  • Backspace turns on bold and italic

    This is a completely infuriating problem in Dreamweaver 7.
    For several months now, when I'm working in design view, if I hit
    the backspace while typing, it turns on the bold and italic for the
    font. The conspiracy theorist in me was hoping to find on the forum
    that others are having the same problem - I was hoping to point a
    finger at a programming time bomb set to go off several months
    after the newest version came out so that people would be incited
    to upgrade. *sigh* I guess that's not the case.
    Does anyone have an idea why it's doing this and how I can
    fix it?

    Look in your keyboard shortcuts for "ctrl-H"?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Wyndy" <[email protected]> wrote in message
    news:eo0lhu$mo$[email protected]..
    > This is a completely infuriating problem in Dreamweaver
    7. For several
    > months
    > now, when I'm working in design view, if I hit the
    backspace while typing,
    > it
    > turns on the bold and italic for the font. The
    conspiracy theorist in me
    > was
    > hoping to find on the forum that others are having the
    same problem - I
    > was
    > hoping to point a finger at a programming time bomb set
    to go off several
    > months after the newest version came out so that people
    would be incited
    > to
    > upgrade. *sigh* I guess that's not the case.
    >
    > Does anyone have an idea why it's doing this and how I
    can fix it?
    >
    >
    >

  • [SOLVED] wine arial font only bold and italic

    I have installed office 2003 in wine. Some one send me a document in arial regular font. It looks fine in winxp, but when I open with the word by wine the all the arial font looks bold and italic.
    I have also tried with winetricks corefonts but nothing changed.
    Last edited by sant527 (2009-12-01 11:07:16)

    The problem got solved when I copy pasted the fonts from /usr/share/fonts/TTF to wine fonts folder.
    Now arial looks fine as of windows.

  • PDFExport fonts. How they are detected, difference between bold and italic.

    Hi,
    i am experiencing issues with PDFExport mainly because i don't understand how the engine detects fonts in the original document.
    First i will explain my issue:
    PDFExport is used on linux machine environment.
    Copyright reasons prevents me from using windows fonts for PDFExport. I downloaded some open source fonts, most of time they are working fine. the issues that i have are with the variations the fonts. italicized and bold.
    Lets take an example of a .doc file. the file contains Hebrew characters some of them are bolded some italicized and some are regular. the font that .doc used is a windows font called David.
    When i use PDFExport with the original David fonts everything works fine and converted correctly to PDF. Since i cannot use windows fonts i resorted to using the Open Source fonts, they too have similar in style to David. they have bold version, italicized version and regular version.
    When i use the open source fonts the detection of the font is incorrect. the entire document becomes italic. when i remove the italic version of the font everything is bold. and when i remove the bold version everything becomes regular. -- i am missing the bold and italic styles when they are used in the document.
    (note that the original document can use any font it wants not restricted to the Copyright issue)
    if i understood how the detection worked, i could modified the open source fonts that i have so that it will detect correctly all the different style (bold and italicized ) correctly.
    my first question:
    How can i use the Open source fonts and also not lose the bold and italicized styles?
    my second question:
    2. Is there a way to recieve via the API which fonts the engine looked for and didn't find? it can help me to better understand which fonts i need. and may be look for them and bring them manually.
    sometimes even when i used the entire windows fonts folder still the fonts where missing or incorrect. (in the resulted converted PDF 'squares' instead of characters). an API like this may help me look for the missing fonts.
    my third question:
    is there a general guide or Standard which fonts to use. i wish to use the minimum number of fonts which will get the job done. i.e characters will be visible and not squares, styles (bold and italicized) should not be lost.
    my forth question:
    How do the engine choose which font to use?

    These are very deep technical questions and I assume it will be difficult to find anyone who knows answers on this forum.
    You will need to speak with Outside In people (you could also try other conversion component such as OpenOfficeConversion - see http://docs.oracle.com/cd/E23943_01/doc.1111/e10800/c03_pdfi_all.htm#IBRAG238). Contacts to OIT are available at Oracle Outside In Technology, or try to create a SR via Metalink.

  • I have a mac book pro, an ipad and an iphone.  i have an icloud account that allows my iPad and imac to sync.  but my mac book only has a connection to 'mobile me'.  how can i include my macbook with my other devices?  help!  thanks

    i have a mac book pro, an ipad and an iphone.  i have an icloud account that allows my iPad and imac to sync.  but my mac book only has a connection to 'mobile me'.  how can i include my macbook with my other devices?  help!  thanks

    You need OSX 10.7.2 or higher in order to access icloud.  The mobile me account is now defunct (it closed down more than a year ago).

  • My Mac Book Pro runs hot and then freezes up I have to restart it and keep it cool with a fan

    My MacBook Pro runs hot and then freezes up, I have to restart it and keep it cool with a fan on the battery

    Runaway applications can shorten battery runtime, affect performance, and increase heat and fan acti…
    Pre-Mavericks
    Open Activity Monitor in the Utilities folder.  Select All Processes from the Processes dropdown menu.  Click twice on the CPU% column header to display in descending order.  If you find a process using a large amount of CPU time (>=70,) then select the process and click on the Quit icon in the toolbar.  Click on the Force Quit button to kill the process.  See if that helps.  Be sure to note the name of the runaway process so you can track down the cause of the problem.
    Mavericks and later
    Open Activity Monitor in the Utilities folder.  Select All Processes from the View menu.  Click on the CPU tab in the toolbar. Click twice on the CPU% column header to display in descending order.  If you find a process using a large amount of CPU time (>=70,) then select the process and click on the Quit icon in the toolbar.  Click on the Force Quit button to kill the process.  See if that helps.  Be sure to note the name of the runaway process so you can track down the cause of the problem.

  • I udate my os to 10.6.7 and since then my Pages have color problems. The text is not visible (white on white background) it does'nt help to change the text color nor background color. Pls help

    I udate my os to 10.6.7 and since then my Pages have color problems. The text is not visible (white on white background) it does'nt help to change the text color nor background color. I just download the recent trail version of Iworks and install it. The first document I opened it was ok. When I open the second one the problem appear again and stayed. Pls help

    This behavior was described many times.
    In every occurrence,the operating system was an uncompleted one resulting of the use of Software Update to update the operating system to 10.6.2, 10.6.3, 10.6.4, 10.6.5, 10.6.6, 10.6.7.
    In such cases, the solace was to apply a combo updater.
    As you are using 10.6.7, download and apply the combo 10.6.7 :
    http://support.apple.com/kb/DL1361
    After that, run Software Update which will urge you to apply :
    Snow Leopard Font Update
    Yvan KOENIG (VALLAURIS, France) dimanche 29 mai 2011 21:15:58
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.7
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • Windows 8.1 Pro - Flash Pro: Menu's and window selection panes do not fully render, or are misaligned. Same with the stage

    This bug makes the program virtually unusable for anyone using Windows 8.1.  I have a dual screen setup : 1920 x 1200 and 1920 x 1080 on the other, AMD Radeon HD 5700 Series drivers (Latest versions), running on a Windows 8.1 Pro OS.  When you attempt to view the various menu option panes, the windows themselves are not rendering fully, or you are hidden.  Also the stage is shifted as well to the lower right, making the program almost unusable. I have tested this on a Mac, as well as on a windows 7 machine and this does not occur there.  So it appears to be only within a Windows 8.1 Pro machine.   I have attached screen shots of what I am seeing.  Notice in the first image, we are looking at the new document pane. You cannot see the options fully and they are shifted to the right out of view.  The next image shows both the stage, shifted right, as well as the Document Pane.  The options are not fully visible, and clipped off.  The window itself is not re-sizable.  I have cleared the appdata, and re-installed the program. Same result.  I attempted to troubleshoot this via chat, however your network kept losing connection. Please let me know if anyone is suffering from this, and any resolution. Thanks!

    Thank you sir!  The scaling was the issue, and the solution.  By clicking on settings->Screen Resolution-> Text and Font link ->  It was defaulted to 125%. For anyone else who has this issue, set it to 100% and it will resolve these issues.
    Thanks again! Back to development

  • Bold text appears bold and italic

    Hi Folks,
    Can anyone please explain why this happens?
    In FW when I click the bold text button, the text appears bold but italic aswell.
    Thanks in advance

    That's unusual. Which version of Fireworks and what operating system are you using?
    If you click on the Faux Italic button, is the italic styling removed? (It should be. If not, click twice.) You might want to try quitting and restarting the application—or shutting down and restarting your computer—and see if this takes care of the problem.
    FYI: It's generally a better choice to add bolding via the Font Style dropdown menu, if that style is available within the currently selected font family.

  • Adobe Flash Pro CS6 -- cursor and focus issues

    This is OS specific as it works fine in the Snow Leopard.
    I am having issues with nearly everything involved with switching between apps / focusing on text windows / getting the cursor to appear where I click / etc since upgrading to Mountian Lion/Mavericks while using Flash Professional CS6. 
    Example problems:
    I click on the Flash icon in the menu bar (twice because the new Mac OS's have focus problems in the dock with mission control enabled) the OS will sometimes switch to the space containing Flash (sometimes not but let's focus on the Flash focus issues). I hover over the code window, I scroll with the mousewheel down the page to where I want to edit the code, I CLICK exactly where I want to paste it, hit cmd+C -- then it pastes the code NOT THERE but instead where the cursor was before (at the top of the page)... So essentially I have to double or triple click everything in Flash all the time. I just click like crazy anymore on everything all the time, but in Flash it's really unpredictable.
    This happens on both of my work computers (both 10.8.5)
    and my Mac Pro (10.9) but not my MacBook Pro that is still extremely fortunate enough to have 10.6 on it.

    What you need is an inner Graphic symbol. What I mean by Graphic symbol is when you select all your letters and hit "F8", choose "Graphic" instead of "MovieClip." In the properties panel, you'll see that one of the sections is called "Looping." Select"play once" (the default is "Loop"). Inside that graphic should be the animation of the letters moving in from left to right.
    On the outer timeline, put a keyframe at the same frame number where the Graphic's animation ends. Change the Looping to "Single Frame" and then type in the frame number of the last frame. You can then create a motion tween that animates the graphic symbol upward at its final frame.

  • Flash Pro CS5.5 and Flash 11/Air 3

    Hey guys. First time posting here.
    I recently read up on some news about Flash player 11 / Air 3 update coming soon and that Adobe is bringing full hardware-accelerated 3D graphics to both Flash and Air. Which sounds awesome . Buuut.. Here's the thing. Will these features be updated into CS5.5? as well as be available for CS6 (I'm just assuming it's coinciding with the release, I may be wrong). I've only just hopped on the CS bandwagon and bought my student liscence for CS5.5 and I really hope I don't regret not waiting for CS6 to buy instead.
    For all who have been using Flash Pro for a while now, how has it been for previous software updates? Did Air become available to those who had earlier versions of Flash Pro when they released a new version?
    Let me know
    Thanks

    Yes its available to those people who have previous versions. Just to change or update the folders (tweeking) for new AIR releases.

Maybe you are looking for

  • To filter data acording to year of  date field of a table

    Hi i have a table TABLE  T1(ID NUMBER, SET_DATE DATE)I want to select id values from this table by comparing year present in set_date field. For that i wrote select id from t1 where set_date like '%2010%' ;It's returning no rows. But the following co

  • Link between invoice and KONP

    Hi all my friends there is a field KNUMH (condition record number) in KONP. I wanted to know how it is linked to billing document and connected through which field. ( I wanted to access the tax condition in a output which is stored in KONP through In

  • Hi, I would like to ask a question

    I'm trying to write a program that fills the applet window with a large ellipse, filled with any color, and that touches the window boundaries. However, I'm stuck on how I should I start; this is what I have so far written: import java.applet.Applet;

  • Save Exceptions Limitation

    Hello Gurus, I have a problem with the Save Exceptions. I am using database 11g. When I am doing bulk insert I would like to insert the error records into a new table. But when I am inserting the error records I am getting the error "error:- ORA-0098

  • AIP-SSM-10 status: Unreponsive

    Hye All, wish to know what can result in an AIP-SSM-10 to be in an unreponsive mode. Thanks ye all.