HTML "BOLD" text and regular on the Spark components with embeded fonts

Hello!

I took a quick glance to the textflow Flex 4 new (at least new to me).

I use a spark textarea that is assigned to a style that uses a font embed, the problem is that when the textarea component renders the text marked in bold (using < span fontWeight = "bold" >) you lose the embeded font style.

How to display bold text and text in the same text box using embeded fonts?

Thanks in advance

That's exactly what I was looking for:

{@font-face}

SRC:URL("..) ("/ assets/MyriadWebPro.ttf");

fontFamily: myFont;

embedAsCFF: true;

}

{@font-face}

SRC:URL("..) /Assets/MyriadWebPro-bold.ttf");

fontFamily: myFont;

fontWeight: bold;

embedAsCFF: true;

}

{@font-face}

SRC:URL("..) /Assets/MyriadWebPro-italic.ttf");

fontFamily: myFont;

fontStyle: italic;

embedAsCFF: true;

}

{.myPlainStyle}

fontSize: 20;

fontFamily: myFont;

}

{.myBoldStyle}

fontSize: 20;

fontFamily: myFont;

fontWeight: bold;

}

{.myItalicStyle}

fontSize: 20;

fontFamily: myFont;

fontStyle: italic;

}

so now I can put fonts on "myFont" style, and the Flash will be made to the police as a result.

http://help.Adobe.com/en_US/Flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7f5f.html

Nice!

Tags: Flex

Similar Questions

  • Blur and expanded text and icons after the connection with Windows vista

    I have windows vista and when I turn on the laptop, the text and icons on the Welcome screen are normal, but after registration on the text and icons become slightly enlarged and fuzzy.  How can I get it back to normal?

    Hello

    There are a number of things to try:

    try going to your graphic card manufacturers site or computer and are looking for the driver download section

    Search your computer or graphics card model number based on what you have and download and install the latest graphics drivers for vista

    then try to make the screen of solution of problems

    http://Windows.Microsoft.com/en-us/Windows-Vista/change-screen-resolution

    Change the screen resolution

    __________________________________________________________

    or try a restore of the system before this happened

    http://www.windowsvistauserguide.com/system_restore.htm

    If necessary do in safe mode

    Windows Vista

    Using the F8 method:

    1. Restart your computer.
    2. When the computer starts, you will see your computer hardware are listed. When you see this information begins to tap theF8 key repeatedly until you are presented with theBoot Options Advanced Windows Vista.
    3. Select the Safe Mode option with the arrow keys.
    4. Then press enter on your keyboard to start mode without failure of Vista.
    5. To start Windows, you'll be a typical logon screen. Connect to your computer and Vista goes into safe mode.
    6. Do whatever tasks you need and when you are done, reboot to return to normal mode.
  • Share text and photo to the same call?

    Hello

    I can call him to share text or photo separately by defining the type MIME "text/plain" or "image/jpg". My data has some text and a photo and I want to share the text and photo to the same call (e.g., email, facebook, BBM...). How can I achieve this? Thanks in advance.

    This is not currently supported.

  • Problem with opening programs of text and photos after the upgrade of computer for Windows 8

    Original title: Photos open in Notepad

    Hello

    Laptop with win 8.

    Recently upgraded XP to win8 with purchased MS DVD.

    All text programs open graphics (pictures) in Irfanview & if I send them WORD show as hieroglyphics jeeperish.

    And all the photos to open Notepad in hieroglyphs jeeperish but if I open them with "Sendto" Irfanview or MS photo editor pictures appear.

    Seems the association went haywire. How can I fix this please?

    8 win in my PC is not that.      .. thanx... .Nick

    Hi Nick,

    Please contact Microsoft Community. I understand that you have a problem with opening the programs of text and pictures after the computer upgrade to Windows 8. I appreciate your efforts to solve this problem, I'll probably help you solve this problem.

    This problem could occur if the default applications are not set correctly.

    I suggest you read the article that will help define the default applications that Windows automatically uses when you open a particular type of file, such as a song, film, photo or Web page.

    Choose the apps Windows uses by default
    http://Windows.Microsoft.com/en-us/Windows-8/choose-Programs-Windows-uses-default

    Hope this information helps. Reply to the post with an up-to-date report of the issue so that we can help you further.

  • I need to create combinations of text and images for the web. How to do this in elements or do I need Photoshop for this feature?

    I need to create combinations of text and images for the web. How to do this in elements or do I need Photoshop for this feature?  Please advise!

    slynn5236 wrote:

    I need to create combinations of text and images for the web. How to do this in elements or do I need Photoshop for this feature?  Please advise!

    You can do in PSE.

    1. Do the math to see how much space you'll need on your canvas to the image and text.
    2. Navigate to the file queue > new.blank. Enter the width & height, background color, resolution 72 px / in. It is your canvas, and in the layers palette will be the background layer.
    3. Copy and paste the image. It turns on a separate layer
    4. Activate the tool move, position the image and resize if necessary
    5. Activate the text tool, and then type your text. It will be on a separate so layer
    6. Position the text.
    7. Flatten layers and go to file > save for web. I'm usually on the long side about 800 px. Don't forget to check "constrain proportions". Adjust the quality slider to suit. You will probably want the type of JPEG file for web work.
  • I need serious help please... We do translations of textbooks, I searched an excessive type function but have been unable to find, we are working in indesign CS 5. It takes allot of time to delete the text and type in the new language.

    I need serious help please... We do translations of textbooks, I searched an excessive type function but have been unable to find, we are working in indesign CS 5. It takes allot of time to delete the text and type in the new language.

    Argh it's frustrating! I never noticed that the key was not working in InDesign.

    A bit of research and it turns out that the MS Office has this as an option in their software. But I can't find an option in the InDesign preferences to make it work.

    However, somethings do not appear in the shortcuts and preferences and are hidden triggers in InDesign that are accessible via a script.

    I'm not saying that it is possible to activate the button insert by using a script, but it is plausible that he can be activated.

    Maybe ask on the forum script? Scripting InDesign

    I know that this may be a possibility as with InDesign prior to export PDF documents interactive versions, there was previously no way to export PDFs interactive as unique pages if the gaps of.

    But the option to toggle this setting was scriptable.

  • Impossible to include the Spark components for my extension for CS 5

    Hi all

    I'm develpoing an extension for Illustrator CS5 and I want to be able to use the Spark DataGrid. I'm developing on Flash Builder 4.6. To do this, the compiler defines the sdk to builder extension 3.4. I'm not able to use the spark even after including the namespace xmlns:s = "library://ns.adobe.com/flex/spark".

    But, if I remove the socket support for CS5 and have an extension for CS6 and above and change the compiler settings to support the extension builder 4.5 sdk, then the spark components are recognized.

    Why can't include spark to my CS5 extension components?

    Sparx components were introduced with Flex SDK 4.0; This is the reason why you can not include in an extension of CS5. Extension Builder SDK 3.4 is based on the kit Flex SDK 3.x series

    I hope this might help.

    Best,

    Luca

  • Problem in the field of text with embedded fonts

    Hello world!

    I have a problem with the textField with embedded fonts.
    I use symbols of police created in the library, and they work very well with dynamic textfields.
    If I do an input textfield with these embedded fonts the following problem occurs:

    If I set the initial value of the textfield (.text) what it is not equal to "" everything works fine. Can I change the text inside.
    But if I put .text of the textfield input at the start of an empty string, I can't have the cursor in the textfield, because it cannot receive the focus.
    If I turn the texfield false embeddedfonts, everything works well, but it I can't use fields and custom fonts are looking terrible.

    Can you tell me any solution? I would also use my custom in the input textfields fonts...

    Use setNewTextFormat() instead of setTextFormat().

  • Why can't acquire data from strain and resistance at the same time with a NI 9219 module?

    Hello

    I use a chassis with a NI9219 module 9172 cDAQ to try to acquire the strain and resistance at the same time, with the Labview SignalExpress software.  Is this possible?  When I try to display two values of signal at the same time, I get an error of assistant DAQ 50103 'the specified resource is reserved.  The operation could not be performed as indicated.  I used to be able to acquire the strain and tension at the same time, but now even that gives me error 50103.  I have hours trying to figure this out.  Any help would be greatly appreciated.

    Thank you

    Justin

    That's all!  Thank you very much, now I can sleep tonight - seriously!

    Thanks again,

    Justin

  • my internet radio stops every 10 to 15 minutes and I have to update it again and again. The same thing with my action also voip internet phone while iam using it

    my internet radio stops every 10 to 15 minutes and I have to update it again and again. The same thing with my action also voip internet phone while iam using it

    Hello
     
    (1) what version of Windows are you using?
    (2) remember to make changes to the computer before the question?
    (3) what browser do you use for Internet Radio?
    (4) what do you exactly mean by the loss of the webradio?
    (5) on which site you want to play the radio?
    (6) using WIndows Media Player to listen to Radio Online?
     
    See also a few following articles dealing on VoIP.
    Troubleshooting VoIP
    How IP phones connect to the network
     
    Get back to us with more information on the issue so that we can better help you to provide the resolution.
  • Reinstalled Windows XP HOME SP2 and cannot download the appropriate components to upgrade my software to SP3! Suggestions?

    Reinstalled Windows XP HOME SP2 and cannot download the appropriate components to upgrade my software to SP3! Suggestions? It seems that microsoft Web sites send me in circles. Patches do not work either.

    Hello
     
    1. What is the error code / message that displayed when you try to install updates for your Windows Xp Service pack 2 computer?
     
    2. What are the steps of troubleshooting that you already tried?
     
    Please follow the links below to solve the problem.
     
    Method 1
     
    Step 1
     
    Steps to take before you install Windows XP Service Pack 3
     
     
    Step 2
     
    Cannot install Windows updates
     
     
     
    Method 2
     
    If you still face problems, please start your computer in a clean boot to avoid conflicts with security and third-party software conflicts and try to install updates.
     
    How to configure Windows XP to start in a "clean boot" State

    http://support.Microsoft.com/kb/929135
     
    Note: Follow the steps to configure Windows to use a normal startup state of the article mentioned above to start the computer in normal startup when you have completed the necessary troubleshooting.
     
    I hope this helps.
  • Convert to PDF from word, the fonts are not included, the word doc record embedded fonts, but conversion does not incorporate fonts?  What should I do to get the embedded fonts?

    Convert to PDF from word, the fonts are not included, the word doc record embedded fonts, but conversion does not incorporate fonts?  What should I do to get the embedded fonts?

    I used times new roman in word 2013.  New file.  Apparently the version of adobe that I use will not incorporate.  I use the version line.  I was told that I have to upgrade to Adobe Pro.  I'm dealing with a patent application, so I can't share the document.  The patent office cannot accept that documents with embedded fonts.  My drawings that have been scanned and then converted are a problem too because I get an error based on the size of the page (23.6 "x 32.4") and I am unable to reduce this size in files from Adobe.com.

    Unfortunately I signed up for this product that get these two converted documents and uploaded only to discover that the conversions will not download.

  • How to share text and image at the same time using Blackberry invocation framework

    Hello

    I need to share the text and its corresponding picture to FB, Twitter and BBM using the framework of invocation of blackberry. No invocation framework support for images and text sharing simultaneously.

    When I use the mime type as text/plain, the url of the image and the text is shared and when it is image/jpeg is used only the image is shared and not the text. Here is the snippet of code used.

    ShareDataTo=function shareTo(key) {
    //shareImage();
    var text ="";
    
    text = itemObject.myName +"\n My Age : Rs."+itemObject.myAge+"\n Address "+itemObject.address+"\n"
    try
    {
    blackberry.invoke.invoke({
    target: key,
    action: "bb.action.SHARE",
    type: "text/plain",
    data:text
    });
    }
    catch(Error)
    {
    //alert('in ShareDataTo error '+ Error);
    }
    }
    

    Help, please

    Kind regards

    Annuk

    This is not currently supported.  Now, you can make a text or an image, but not both.

  • I have placer place text, and then change the font size, but it does not flow to the next page

    Hello! Tell when I have text that fits into a page, because it is absorbed in indesign with a great font size small. Then when I want to increase the font size it does not continue on the next page. How can I get there?

    Thank you very much!!

    Click the port at the bottom right of the text block to recharge the cursor, go to the next page and click to place it.

    If this is new to see you:

    Text of wire among images in Adobe InDesign

    InDesign 03 - Mini tutorials - threads of text - Threads view - overflow of text warnings areas - YouTube

  • Text and graphics on the 3D Annotation

    I found this impressive example of a 3D PDF: http://directlight.de/media/tgv_lyon.PDF

    Someone know how you can get these text and translucent buttons on the 3D surface?

    They have a few buttons, which can stack above a 3D annotation. You can put a lot of stuff above 3D (and other Rich Media) annotations, like other annotations, content on layers, etc., but to draw a link or a button, the annotation must be in a disabled state.

Maybe you are looking for