Apply embedded fonts to special characters in spark textArea using tlf

By setting fontfamily directly to textarea in mxml fonts get applied to special characters. But using tlf and setting fontfamily it does not apply.
style.css ::
@font-face
    src: URL("/Assets/Fonts/GandhariUnicode-Bold.otf");
    fontFamily: "GandhariUnicode-Bold";
    embedAsCFF: true;
snippet of source code ::
textArea.textFlow.interactionManager.selectRange(beginIndex, endIndex);
var textLayoutFormat:TextLayoutFormat = getTextLayoutFormat();
textLayoutFormat.fontLookup = FontLookup.EMBEDDED_CFF;
textLayoutFormat.fontFamily ="GandhariUnicode-Bold";   
textLayoutFormat.renderingMode = RenderingMode.CFF;

Please try the code as follows.
(1)
[Embed(mimeType="application/x-font", exportSymbol="GandhariUnicode-Bold", embedAsCFF="true", fontWeight="bold", source="Assets/Fonts/GandhariUnicode-Bold.otf", fontName="gandhariUnicode-Bold")]
var GandhariUnicode-Bold:Class;
var textLayoutFormat:TextLayoutFormat = new TextLayoutFormat();
textLayoutFormat.fontLookup = FontLookup.EMBEDDED_CFF;
textLayoutFormat.fontFamily ="gandhariUnicode-Bold";   
textLayoutFormat.renderingMode = RenderingMode.CFF;
textArea.textFlow.hostFormat = textLayoutFormat;
textArea.textFlow.flowComposer.updateAllControllers();
Or (2)
[Embed(mimeType="application/x-font", exportSymbol="GandhariUnicode-Bold", embedAsCFF="true", fontWeight="bold", source="Assets/Fonts/GandhariUnicode-Bold.otf", fontName="gandhariUnicode-Bold")]
var GandhariUnicode-Bold:Class;
textArea.textFlow.fontLookup = FontLookup.EMBEDDED_CFF;
textArea.textFlow.fontFamily ="gandhariUnicode-Bold";   
textArea.textFlow.renderingMode = RenderingMode.CFF;
textArea.textFlow.flowComposer.updateAllControllers();

Similar Messages

  • Unable to undo applied embedded fonts

    Hello All,
    I have application with text box created with  container controller and textflow.
    Also I have applied embedded fonts dynamicaly using
    styleManager.loadStyleDeclarations2(url,false);
    but after this when I try to undo, previous font is not get applied.
    When I debug the application, i fonund that generation is number is mismatch.
    please anybady know why it is? When I apply different font size or any other property link color, Undo works properly.
    Thanks,
    Vikram

    Undo can only undo those changes that are inside operations. If there are direct model changes (changes resulting from an API call that is NOT in an operation), this will cause a generation number mismatch. Undo will be blocked because the model has changed. I would suggest finding out what it is you are calling that is incrementing the generation number, but is not inside an operation.
    - robin

  • Font problem - special characters sometimes displayed incorrectly

    I have a problem with the fonts installed on my computer: With some of them special characters (mainly german umlauts) get replaced by other fairly random symbols. My first guess was broken fonts, but the behaviour is completely inconsistent: In some apps they are displayed correctly, in some not, sometimes it even changes within one app:
    Screenshot, wrong symbols marked red, correct symbols marked green.
    Note that Exaile consistently displays them wrongly, while Pidgin does alright in the buddy list but screws up in the conversation window [edit: See below] and Audacious behaves differently even within one window! Adding to this the behaviour changes depending on the font. Most fonts are alright (so far all default fonts are, but not all installed later (manually or via pacman) are faulty), within the faulty ones it depends on the font which apps work and which don't, e.g. Bauhaus will work perfectly except that the Pidgin conversations can't display '€', Santana works for Audacious, but fails completely in Pidgin and Exaile, while Petita (the one from the screenshot) is all over the place. In some cases one font package contains different weights of the same font and those will behave completely differently.
    All kinds of text editors work fine with all kinds of fonts, so do all file managers I tested.
    Any idea as to what might be the source of this problem? How can one app interpret one ttf-file differently depending on where it uses it?
    [edit: I was mistaken: Pidgin screws up consistently in all it's windows. It's just inconsistent with other apps: In the screenshot for example 'ü' in Pidgin works, 'ä' and 'ö' don't, in Exaile all three don't. This is insane!]
    Last edited by lastchancetosee (2011-01-15 12:21:21)

    I downloaded the Petita font by Manfred Klein and checked the mapping with Fontforge.  Fontforge is reporting many, many errors with the mapping to Unicode, such as,
    The glyph named breve is mapped to U+0005.
    But its name indicates it should be mapped to U+02D8.
    Most likely, the fonts with the errors were designed for a different operating system.
    Last edited by thisoldman (2011-01-15 16:06:49)

  • Can we apply embedded font in extension to a text layer of Photoshop ?

    Hi All,
    I have embedded some fonts into my Flex extension panel of Photoshop.
    Can I apply these fonts to any text layer?
    Kindly help URGENTLY!
    Thanks,
    D.A

    Here are 3 options for future reference:
    1. With the setup you've described, apply a Match Move behavior to  the text and make the rectangle the source. Change the Transform parameter to Mimic source.  This way you can still adjust the text postion as needed, but the rectangle will drive the animation.
    2. Use a group to do the animation.  Put both your rectangle and text in the same group and animate the group's postion.
    3. Use the Link behavior.
    Each of these has it's advantages depending on what you need.

  • Embedded fonts are missing characters in display despite having all glyphs...

    Hi,
    As per the subject, I have a vast array of different fonts that I need to load on demand via CSS to SWF.
    For the most part, this works very well. I have around 600 fonts where everything is just fine.
    I also have some problem fonts like the below;
    That is _supposed_ to display;
    "ABCDEFGHIJKLMNOPQRSTUVWXYZ
    abcdefghijklmnopqrstuvwxyz"
    All the glyphs are there, and have been validated using font.hasGlyphs(string) method.
    The font works perfectly in numerous desktop applications
    The font works perfectly when converted to a web font
    Nonetheless, no matter what I try, or what SDK I use, the problem fonts always fail to display on the same characters.
    My guess is, because they are allowing spaces for the characters, that the glyphs and / or metrics are slightly out, but I have absolutely no idea where to begin debugging this and I would welcome any input from anybody who _has_ got an idea!
    Thanks,
    G

    Well, hasGlyphs just says there is data in the slot for that character, not whether the data is any good.
    Essentially,  all embedded fonts are transcoded into a Flash-compatible data format.  Then Flash uses that data format to draw the glyph.  There are 4 data formats that Flash uses, but they fall into two main categories: CFF, and non-CFF.  The transcoding is done via the compiler with help from some font manager libraries listed in the flex-config.xml.  Depending on whether you need CFF or non-CFF, I think different libraries are used.  I've heard you may get slightly different results by messing around with the list of font managers, but I haven't proven it.
    Anyway, first thing I would try is a simple, AS-only test with whatever configuration is failing (CFF or non-CFF).  Then I would try the opposite configuration.  Getting Flex and TLF out of the equation helps narrow down the possibilities.  But it is probably some issue with the transcoding.  Are there other commonalities with the non-working fonts?  Are they all OTF or CFF fonts?
    -Alex

  • Unable to apply embedded font swf to text in text layout framework

    Hello,
    We have created a swf for a given font (for e.g., Calibri.swf) which contains all the styles (Regular, Italic, Bold, BoldItalic).
    We have created a xml which lists the name of the font and the corresponding swf file path. The names from the xml are loaded into a combo box in the application.
    When we try to apply the selected font to a text in the text layout framework, it does not apply the same. It sets the font to default "Times" font.
    Following is a snippet of code to apply the font to the text:
    private function selectFont(fontXML:XML):void {               
                    var path:String = fontXML.@source;
                    var myEvent:IEventDispatcher = styleManager.loadStyleDeclarations(FlexGlobals.topLevelApplication.url.substring(0,FlexGl obals.topLevelApplication.url.lastIndexOf("/"))+"/"+path);
                    myEvent.addEventListener(StyleEvent.COMPLETE, function(event:StyleEvent):void{
                        var editManager:EditManager = textFlow.interactionManager as EditManager;
                        var itextLayout:TextLayoutFormat = new TextLayoutFormat();
                        itextLayout.fontSize = 20;
                        var fontName:String = fontXML.@name;
                        Alert.show(fontName);
                        itextLayout.fontFamily = fontName;   
                        Alert.show( "itext = " + itextLayout.fontFamily);
                        editManager.applyFormat(itextLayout,itextLayout,itextLayout);
                        var flowLeafElement:FlowElement = textFlow.findLeaf(editManager.anchorPosition) as FlowElement;
                        editManager.changeStyleName(fontName,flowLeafElement);
    Can anyone please let us know what is missing in the implementation?
    Thanks in advance.
    Vikram

    My recommendation: unless you really care about ISWFContext implementations and the application domain issues, ignore Alex's post about embedded fonts.
    It is a nice discussion about the inner workings of the domain and security of how this works but it is imho broken and is an insane concept to require an ISWFContext to just use an embedded font. It also breaks runtime CSS loading that has fonts embedded in it because the Flex compiler (last I checked) was also busted – it doesn't include the function necessary to create within context the font embed so that it may be applied. You can't create an ISWFContext with a compiled CSS file.
    These issues were introduced in the last Flex SDK beta before FB4 was released in final form. There are multiple bugs logged against the issue of applying loaded font files to TLF text (in short, SWFContext is broken and you have to override GlobalSettings.resolveFontLookupFunction to return embedded or null, all the time).
    Here's some more details to get you started - with links to at least one of the SDK bugs that were filed:
    http://forums.adobe.com/message/2656152
    For example:
    import flashx.textLayout.elements.GlobalSettings;
    import flash.text.engine.FontLookup;
    GlobalSettings.resolveFontLookupFunction = function makeValid():String { return FontLookup.EMBEDDED_CFF };
    And you may need to do this after your font is loaded:
    yourTextBlock.textFlow.invalidateAllFormats();
    Disclaimer: I haven't seen the latest Flex SDK release to see if this was fixed. I have an AIR application with native process that builds embedded font SWF files for use and stub code for FB4 usage but haven't updated to the latest SDK yet to see if it's working properly.
    Anyhow, your best bet is to look at the Flash Builder forums. I think this is/was a Flex team issue, not TLF.

  • Dynamic text, system fonts, and special characters...

    This one is boggling my mind so if someone can help, please
    do
    I've got a dynamic text area pulling text from a MySQL
    database via AMFPHP. The text includes special characters such as
    accents, umlauts, etc (multi-language site platform). Most of them
    work fine, and ALL of them work fine when I'm on a Mac client.
    However, if I use a Windows client machine in either Firefox or
    IE6, there are a couple characters that for whatever reason just
    don't seem to show up -- instead I get the [] box character.
    The only characters I've found that seem to be affected like
    this are European quote characters like ’ “ and
    ” (hex characters 146, 147, 148). I'm using the familiar
    ampersand-pound-number-semicolon escape sequence for them. And like
    I said, they all display fine on Mac/Firefox and Mac/Safari. Why
    are all my other special characters (umlauts, accents, etc) working
    fine and just these things failing? It's also worth noting that
    they look fine if I dump them out to a PHP file and pull it up in a
    browser...
    Please, if anyone can help... I've been bashing my head
    against this for the better part of the day!!

    Hi,
    did you take a look at the "gateway.php' ? There you can
    define charsets. Maybe a western europe charset will
    help you out. Since french language is using a lot more
    accents and so.
    This is what you can find in the gateway.php of amfphp. Just
    have to set the right one ;)

  • FrameMaker 8 Special characters in MIF file using hexcodes

    Hey,
    I'm creating a MIF-file from another system, and using hexcodes to create my special characters (\x8c for example).
    When importing it to FrameMaker 8 I'm only ending up with a space where this character is supposed to be.
    Using the same MIF-file in FrameMaker 7, it comes up with the character å(aring) as I'm expecting it to do.
    What do I do to make FrameMaker 8 read the hexcodes correctly?
    Regards,
    Monica Svanlind

    Monica,
    FM8 is now unicode aware and you should be using the unicode values
    instead of hex. If you use a codepage specific font, then using hex
    values may still display the correct character. FM8 will no longer
    display characters from Registry mapped codepages (e.g. Arial CE) for
    WGL TT and OTF Pro fonts properly - you need to use the unicode value.

  • Finding special characters in a columns using SQL

    Hi,
    I have a column (Object_Name) which accepts character values. I want to find out such kind of records which has special charaters in my columns Object_Name. Please let me know, how do I write SQL statement for the same.
    Thanks for your time in advance.

    To find, for example, a comma in the OBJECT_NAME column try:
    SELECT OBJECT_NAME
      FROM MYTABLE
    WHERE INSTR(OBJECT_NAME,',')>0;To find multiple special characters, for example @ # + - _ , . : ; at same time try:
    SELECT OBJECT_NAME
      FROM MYTABLE
    WHERE INSTR(TRANSLATE(OBJECT_NAME,'@#+-_,.:;','@@@@@@@@@'),'@')>0;add a @ to the string '@@@@@@@@@' each time you add a character to the string '@#+-_,.:;'
    max

  • Special characters in XML built using the DOM object

    I am using the DOM object to build xml but I am having problems with special characters. I have a Element object that I create attributes in. Most special characters like the &, ", or ' are translated for me (amp; quot;, acute; put a & in front of those, if I do it here the browser will translate them into the logical character) but I am having a problem with the � character. The DOM object does not translate this. If I do it my self to(eacute; same here add a & in front) before adding the string to the attribute then the DOM object translates it to (amp;eacute; add a & in front of the amp; not in front of the eacute;). As you can see the DOM object translates the & instead of recognizing that it is a HTML character. Can anyone give me a hand?

    I am building this XML in a servlet so ,right, DOM does process XML (even though a valid HTML file can be loaded into a DOM object) but if you build XML using DOM then write the XML out using PrintWriter and Transformer objects this will cause the XML to print out in your browser. If you view source on this XML you will see that the DOM object has translated all special characters to there &xxxx; equivalent. For a example: when the string (I know "cool" java) gets loaded into a attribute using the DOM object then wrote back out it looks like (I know &xxx;cool&xxx; java) if you view the source in your browser. This is what it should do, but the DOM object is not change the � to the "&xxxxx;". This servlet is acting as a gateway between a Java API and a windows asp. The asp will call the servlet expecting to get XML back and load it directly into a DOM object. When the windows DOM object gets the xml that I am returning in this servlet is throws a exception "invalid character" because the � was not translated to &xxxx; like the other characters were. According to the book HTML 4 in 24 hours (and other references) the eacute; or #233; are how you say "�" in HTML or XML. How do you say it?

  • Load special characters in oracle by using informatica

    Hi All,  I'm trying to load data from flat file to oracle databse table using Informatica power center 9.1.0 and I have some special characters in source file. Data are loaded sucessfully without any errors but these special characters are loaded different way like 1) Planner – loaded as Planner ��������2) Háiréch  loaded as Hair��������ch  While same flatfile loaded into another flatfile,data loaded correctly including special characters.So,I am unable to understand problem with database or informatica.   SourceFlat File - comma ',' delimtedCode page is defined as UTF-8 encoding of Unicode Relational connectionI have tried by changing the code page while creating relational connection in Informatica to UTF-8, ISO 8859-1 Western European,  MS Windows Latin 1 etc.,didn't work. InformaticaIntegration Service and Repo code page is defined as UTF8Data movement code page of Integration server was set to UNICODE   TargetOracle databaseNLS_NCHAR_CHARACTERSET: AL16UTF16NLS_CHARACTERSET: AL32UTF8   ThanksSai

    Hi All,  I'm trying to load data from flat file to oracle databse table using Informatica power center 9.1.0 and I have some special characters in source file. Data are loaded sucessfully without any errors but these special characters are loaded different way like 1) Planner – loaded as Planner ��������2) Háiréch  loaded as Hair��������ch  While same flatfile loaded into another flatfile,data loaded correctly including special characters.So,I am unable to understand problem with database or informatica.   SourceFlat File - comma ',' delimtedCode page is defined as UTF-8 encoding of Unicode Relational connectionI have tried by changing the code page while creating relational connection in Informatica to UTF-8, ISO 8859-1 Western European,  MS Windows Latin 1 etc.,didn't work. InformaticaIntegration Service and Repo code page is defined as UTF8Data movement code page of Integration server was set to UNICODE   TargetOracle databaseNLS_NCHAR_CHARACTERSET: AL16UTF16NLS_CHARACTERSET: AL32UTF8   ThanksSai

  • Using Squiggly with Spark TextArea causes TLF formatting to disappear

    We are using a Spark TextArea component in our application to offer more enhanced text formatting options to our users. Yesterday we downloaded Squiggly since it's the only one available that seems to support the spark components. It is highlighting misspelled words correctly and does have a nice right-click context menu with suggestions, etc. However, when we select a word from the suggestion list and it replaces it in the text area, it seems to replace the entire contents of the textarea as plain text. Any formatting on the text such as bold, italics, font sizes, underlines, all immediately disappear once the misspelled word is replaced. We're using the SpellUI implementation. Below is some of the snippets of the code we're using to implement SpellUI:
    protected function createTextArea():void {
      _textArea = new TextArea();
      _textArea.editable = true;
      _textArea.enabled = true;
      _textArea.textFlow = TextConverter.importToFlow(XML(dataModel.value)[0], TextConverter.TEXT_LAYOUT_FORMAT);
      _textArea.textFlow.flowComposer.updateAllControllers();
      _textArea.addEventListener(FlexEvent.CREATION_COMPLETE, setupSpellCheck, false, 0, true);
    private function setupSpellCheck(event:Event=null):void {
      logger.debug("setupSpellCheck", "Setting up spell check system...");
      _textArea.removeEventListener(FlexEvent.CREATION_COMPLETE, setupSpellCheck);
      resourceManager.localeChain = [localeStr];
      enableSpellCheck();
      enableSpellCheckContextMenu();
    private function enableSpellCheck():void {
      SpellUI.enableSpelling(_textArea, localeStr);
    private function enableSpellCheckContextMenu():void {
      var contextMenu:Object = {add:resourceManager.getString('SquigglyContextMenu', 'add'),
                                             enable:resourceManager.getString('SquigglyContextMenu', 'enable'),
                                             disable:resourceManager.getString('SquigglyContextMenu', 'disable')};
      SpellUI.setSpellingMenuEntries(contextMenu);
    As you can see, we're constructing a new TextArea control and setting it's textFlow by importing an existing textflow XML that we have saved in our database. Once the TextArea has dispatched the FlexEvent.CREATION_COMPLETE, we are setting up the spell check system and everything works ok until you actually correct a misspelled word by selecting it from the right-click suggestions list. The text initially imported may have any number of styles applied to it as I mentioned above. Once the spelling replacement occurs, all the formatting is wiped out for the entire text area.
    Any thoughts?
    -Jason Kringen

    Just to give some more details, here's the TextFlow output from our TextArea before using the spell check word replacement:
    <TextFlow columnCount="inherit" columnGap="inherit" columnWidth="inherit" lineBreak="inherit" paddingBottom="inherit" paddingLeft="inherit" paddingRight="inherit" paddingTop="inherit" verticalAlign="inherit" whiteSpaceCollapse="preserve" xmlns="http://ns.adobe.com/textLayout/2008"><p direction="ltr" justificationRule="auto" justificationStyle="auto" leadingModel="auto" paragraphEndIndent="0" paragraphSpaceAfter="0" paragraphSpaceBefore="0" paragraphStartIndent="0" textAlign="start" textAlignLast="start" textIndent="0" textJustify="interWord"><span>Text goes in here. </span><span alignmentBaseline="useDominantBaseline" backgroundAlpha="1" backgroundColor="transparent" baselineShift="0" breakOpportunity="auto" cffHinting="horizontalStem" color="#000000" digitCase="default" digitWidth="default" dominantBaseline="auto" fontFamily="Arial" fontLookup="embeddedCFF" fontSize="28" fontStyle="normal" fontWeight="bold" kerning="auto" ligatureLevel="common" lineHeight="120%" lineThrough="false" locale="en" renderingMode="cff" textAlpha="1" textDecoration="none" textRotation="auto" trackingLeft="0" trackingRight="0" typographicCase="default">misspeled</span><span> jhkjd het </span></p></TextFlow>
    And here is the TextFlow output immediately after replacing a misspelled word:
    <TextFlow columnCount="inherit" columnGap="inherit" columnWidth="inherit" lineBreak="inherit" paddingBottom="inherit" paddingLeft="inherit" paddingRight="inherit" paddingTop="inherit" verticalAlign="inherit" whiteSpaceCollapse="preserve" xmlns="http://ns.adobe.com/textLayout/2008"><p><span>Text goes in here. misspeled jhkjd get </span></p></TextFlow>
    So it's obviously stripping out all of the TLF formatting and simply leaving the blank <p> and <span> tags without any of the formatting details.

  • Upgrade to Flex 4, Halo theme, embedded font doesn't work for Spark Label

    I'm upgrading an application to Flex 4 from Flex 3.5 using the Halo theme.  If I include a Spark Label in my application the Spark Label does not render the text using the font I defined in my CSS.  My MX Labels render fine.  Here is an example application that replicates my issue.  So,
    Compile and run using Spark theme.  Both Labels render the text with the correct font.
    Compile and run using Halo theme.  Only MX Label renders the text with the correct font.
    Is it not possible to do what I want?
    Thanks
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                      xmlns:s="library://ns.adobe.com/flex/spark"
                      xmlns:mx="library://ns.adobe.com/flex/mx"
                      minWidth="250" minHeight="250">
         <fx:Style>
              @namespace mx "library://ns.adobe.com/flex/mx";
              @namespace s "library://ns.adobe.com/flex/spark";
              @font-face
                   fontFamily: Verdana;
                   fontWeight: normal;
                   fontStyle: normal;
                   src: url("./style/fonts/verdana.ttf");
                   embedAsCFF: false;
              @font-face
                   fontFamily: VerdanaCFF;
                   fontWeight: normal;
                   fontStyle: normal;
                   src: url("./style/fonts/verdana.ttf");
                   embedAsCFF: true;
              mx|Label
                   font-family: Verdana;
              s|Label
                   font-family: VerdanaCFF;
         </fx:Style>
         <fx:Declarations>
              <!-- Place non-visual elements (e.g., services, value objects) here -->
         </fx:Declarations>
         <s:VGroup>
              <mx:Label text="My text" />
              <s:Label text="My text" />          
         </s:VGroup>
    </mx:Application>

    I think you might need to set the fontLookup:
            s|Label
                font-family: VerdanaCFF;
                fontLookup: "embeddedCFF";     

  • How to check special characters in java code using Java.util.regex package

    String guid="first_Name;Last_Name";
    Pattern p5 = Pattern.compile("\\p{Punct}");
    Matcher m5 =p5.matcher(guid);
    boolean test=m5.matches();
    I want to find out the weather any speacial characters are there in the String guid using regex.
    but above code is always returning false. pls suggest.

    Pattern.compile ("[^\\w]");The above will match any non [a-zA-Z0-9_] character.
    Or you could do
    Pattern.compile("[^\\s^\\w]");This should match anything that is not a valid charcter and is not whitespace.

  • Arabic vocalization diacritics are not rendered correctly using Adobe Arabic as Embedded Font

    Hi,
    Vocalization diacritics are rendered as independent characters.
    Vocalization diacritics should be rendered combined and merged with the characters preceding them like in the third line of the attached image.
    Have a look at the SWF:
    1) The first line is aTextLayoutComponent which uses Adobe Arabic as en Embeded Font.
    2) The second line is using the System Font Adobe Arabic.
    Does anyone have an idea ?
    I personally think, when you choose System Font, it uses System Text rendering Engine. But if you embeed font flash has problem with rendering the diacritics properly.

    Hello,
    this is my whole code:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/halo"
                   minWidth="1024" minHeight="768"
                   creationComplete="init()"
                   xmlns:controls="flashx.textLayout.controls.*">
        <s:layout >
            <s:VerticalLayout/>
        </s:layout>
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
            <s:HTTPService id="httpServiceObj" url="TopFirst.txt" result="handleResult(event)"
                           fault="handleFault(event)" 
                           resultFormat="text"/>
        </fx:Declarations>
        <fx:Style>
            @namespace s "library://ns.adobe.com/flex/spark";
            @namespace mx "library://ns.adobe.com/flex/halo";
              @font-face
                src:url("trado.ttf");
                fontFamily: ArabicFont;
                fontWeight: normal;
                font-style:normal;
                advancedAntiAliasing: true;
        </fx:Style>
        <fx:Script>
            <![CDATA[
                import mx.controls.Alert;
                import mx.rpc.events.FaultEvent;
                import mx.rpc.events.ResultEvent;
                private function init():void{
                    httpServiceObj.send();
                [Bindable]
                private var _str:String;
                private function handleResult(event:ResultEvent):void{
                    _str    =    event.result as String;       
                private function handleFault(event:FaultEvent):void{
                    Alert.show("fault is = " + event.fault.faultString);
            ]]>
        </fx:Script>
        <s:TextArea text="{_str}"  width="100%"
                    height="100%"
                    fontSize="50"
                    />
    </s:Application>
    As you can see from the code, I am not given any font to the TextArea , even  after giving the font which I have embeded ,out is the same.
    Where I am going wrong..

Maybe you are looking for

  • Laser printer

    Has anyone found a color laser multifunction printer that they're happy with? I need to find one that is compatible with both Mac and Windoze, and is under $500.

  • How can I remove and reinstall pages?

    I went into the applications folder and deleted pages, then emptied the trash can so it's no longer on my system. However, when I go into the app store and pull it up under past purchases, it just says "open" instead of download. I either need help f

  • Update using DB Tools execute query

    hi, thanks for showing me the way to insert values to a database. but i am finding some problem with update. as i already mentioned, according to the values given to the string controls on the front panel, the values should get updated. if records of

  • Exception occuring when the user select tasks tab in worklist

    Hi , I have an issue in which when a manager selects the tasks tab for executing the workitems , it is throwing java.lang.NullPointerException: null . can you please help me out in resolving the issue. Thanks, Satish

  • Windows movie maker doesnt play n directx 11

    Hi everyone!! I have installed the latest version of windows movie maker which is the windows move maker 2012.... i cannot run it i have directx 11 graphics card... how ca  i fix it?