Embedding .ttf font in Spark TextInput "prompt"?

This is what i have:
Main.mxml:
<fx:Style source="Main.css"/>
    <s:TextInput x="72" y="95" focusColor="#CECB02" prompt="E-mail: "
             skinClass="components.TextInputSkin"/>
TextInputSkin.mxml:
<s:RichText id="promptDisplay" includeIn="disabledWithPrompt,normalWithPrompt" x="10" y="7"
        color="#666666" fontFamily="Acens" fontSize="15" trackingRight="1"
        color.normalWithPrompt="#333333"/>
    <s:RichEditableText id="textDisplay" d:userLabel="Text Display" x="10" y="7" width="230"
        fontFamily="Acens" fontSize="15" heightInLines="1"
        width.normal="282" color.normal="#999999"
        tabStops.normal="S0 S50 S100 S150 S200" trackingRight.normal="1"/>
Main.css
@font-face
    fontFamily: Acens;
    src: url("C:\WINDOWS\Fonts\Acens.ttf");
    embedAsCFF: true;
So, the "promptDisplay" in a computer(online) that does not have "Acens.ttf" installed shows the predefined one, but the inputed text is showed correctly with the embeded font!! Any explanation/solution for that!?
Thanks ;-)

Thanks for the reply
It's predefined in "italic" and this font doesn't have it.
But if it's like you are saying, why do i see it in my computer (even if the file it's in a server) with the font i choose and in "italic"!?
Thanks again ;-)
EDIT:
Ok.. so i change the prompt fontStyle to "normal" and it works in every computer. ;-)
But it's strange that in the local computer it does the transformation to italic when i want!! :S
Thanks again ;-) problem "solved"

Similar Messages

  • Style Font in Spark TextInput Control

    Hello!
    How can I do as the title indicates please?
    Can I do it without using a custom skin because I want to be able to change fontColor and fontStyle programatically.
    Thanks!

    You can acheive it very easily with spark textinput too. Pls check below and let me know if you have any issue.
    <?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/mx" minWidth="955" minHeight="600">
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <fx:Script>
            <![CDATA[
                import mx.collections.ArrayCollection;
                [Bindable]
                private var acFontSizes : ArrayCollection = new ArrayCollection([
                    {fontSize : '12'},
                    {fontSize : '16'},
                    {fontSize : '20'},
                    {fontSize : '24'},
                    {fontSize : '28'},
                    {fontSize : '32'},
                    {fontSize : '36'},
                    {fontSize : '40'},
                    {fontSize : '44'}
            ]]>
        </fx:Script>
        <mx:VBox>
                <s:TextInput id="txtInput" width="150" height="50" text="Your Text" fontSize="{comboFontSize.selectedItem.fontSize}" color="{colorCombo.selectedColor}"/>
                <mx:HBox>
                    <s:Label text="Choose Color"/>
                    <mx:ColorPicker id="colorCombo"/>
                </mx:HBox>
                <mx:HBox>
                    <s:Label text="Choose Font Size"/>
                    <s:ComboBox id="comboFontSize" dataProvider="{acFontSizes}" labelField="fontSize" selectedIndex="0"/>
                </mx:HBox>
        </mx:VBox>
    </s:Application>
    with Regards,
    Shardul singh Bartwal

  • Embedded TTF font not working

    Hi everybody.
    In the first place, thank you. In the other hand, sorry for all my possible English mistakes.
    I have made several ePubs (validated in epubcheck and FlightCrew) with embedded fonts and all of them have always worked fine in ADE 1.7.2.
    However, the same ePubs in ADE 1.8. preview are failing. I don`t know why, but the text with the embedded font is not being displayed at all. 
    What has been changed that I'm missing it?

    This problem has been solved in the new preview version.
    Thanks!

  • Spark textinput does not display unicode properly

    I need to type in some special charactors using unicode input method.
    (install microsoft pinyin, and use secondary inputs-> unicode input, and type "E826" into the textinput box)
    in spark textinput, the charactor is showing as a sqare; while mx textinput displays the charactor correctly.
    does anybody know solution for this issue? or is it a known bug in flex?  thanks!

    I did not set font for neither s:textinput nor mx:textinput.  "Arial" should be used by default.
    I am wondering how mx:textinput can work. is there any alternative font set for it by default?
    I am not sure which font contains these special charactors.
    thanks!

  • Embedded italic font using faux italic

    I'm experiencing an issue while trying to create an embedded italic font using DefineFont 4. My problem is the font I'm targetting doesn't include an italic variation. Is there a way to create an italic (or bold for that matter) font using faux italic?
    Something like:
    Embed(source='../font_src/myFont.ttf', fontName='_MyFont', cff='true', fontStyle='fauxItalic')] 
    public static var _font:Class;
    Thanks in advance for any help you can provide.

    Disclaimer: I am just guessing on all of this since I have never used that font and I am still on Mac OS 10.5.8.
    Are you really on Mac OS 10.6.6? I think I read here that there were some font issues that were fixed with 10.6.7 or an update that came after it. Try downloading the updater and see what that does. Next I would try the font in Pages if you have it. If you don't, try it in TextEdit and see if it works there.
    If neither of these work, try to delete the Keynote Preferences to see if there was something there that was messing with the font. You can find it in the folder Macintosh HD>Users>your username>Library>Preferences and the file is called com.apple.iWork.Keynote.plist.
    Message was edited by: Kelly Coull to add the last paragraph

  • Adobe Acrobat XI - Preflight tool - error List of CIDs missing in CIDSet of embedded CID font

    Hello,
    I am generating a PDF documents with use of  Apache FOP where fonts are pasted to the document. I am getting an error "List of CIDs missing in CIDSet of embedded CID font"  and I am curious. Since the cid is not found in the provided font how acrobat is able to find the correct character?  I also run analyse which checks if all text in the file use embedded fonts and the result was fine.
    Could you explain this behaviour? 
    What kind of problems may result from missing the cids?
    Thank you for response.

    So it is (how Bill@VT said) problem of generating the result pdf document.   Does a font have to meet some requirements?  Because I can see the characters in a font viewer but after embedding I see the error.
    Also I would like to ask for correction and if I get righ how the correct character is found.
    We work with TTF fonts.
    1. For embedded fonts
    pdf file contains table  with glyf ID and glyf representation
    pdf file contains cmap which maps  Character code (unicode) and glyfID
    during rendering a file finding correct glyf is clear since we have character code
    2. CID fonts
    pdf file contains table  with glyf ID and glyf representation
    pdf file contains CID table wich maps  CID and glyfID ( CIDToGIDMap)
    pdf file contains table which maps character code (Identity-H, Unicode) to CID
    during rendering we have character code and we get CID
    based on CID is looked up character metrics
    based on CID is found glyf representation
    Is here something what I am missing or I forgot to point out?

  • Why don't some of my .ttf fonts appear in the font menu?

    Hello,
    I have a number of .ttf fonts installed on my system (located in Win7/Windows/Fonts folder) which do not appear in Flash or other Adobe applications such as InDesign. I did try putting them in the Fonts folder of these programs instead of the default Windows location but that didn't work! The fonts are available in the font menu in Microsoft Word 2010. The fonts all have a dot before the file name, see below. So could that be the problem? I am using some of them to type Vietnamese characters. Can anyone help?

    That did it, thanks.  Now they still don't.fully load but they do have links at the bottom to get the rest of the message.

  • How to install .ttf fonts in Solaris 10 x86 10/08 ?

    Hi,
    I have installed Solaris 10 x86 10/08 on my Pentium-II machine. It is working fine. I am using Java Desktop Session 3 (JDS3).
    I have to install a few true type fonts (.ttf) to the machine and make it accessible in the gnome-terminal. I have the font files, that is .ttf files, in my system, but they are not installed.
    Could you please give me the procedure to achieve this? Should I install any patches for this?
    Regards,
    Sreeram

    Hello Lubos Kocman,
    Thanks for your reply. I followed your suggestion and put the .ttf fonts in the /usr/X11/lib/X11/fonts/TrueType directory and rebooted the system.
    [Actually, you had mentioned to put them in /usr/X11/lib/X11/fonts/TTF directory. But I did not find the TTF directory. Instead I found TrueType directory and so I felt it appropriate to place them here.]
    But still I am unable to access and choose those fonts from my gnome-terminal's font list. Have I missed something? The same result was obtained when I placed the fonts in the ~/.fonts directory also. Please guide me if I am doing something wrong.
    How do we ensure that the system has recognised the fonts which have been installed newly? Any commands to confirm this? Are there any log files pertaining to fonts, where we can know whether the fonts were recognised by the system, and if not recognised, the reason for the same?
    Also, I would like to paste the contents of /etc/release of my system:
    Solaris 10 10/08 s10x_u6wos_07b X86
    Copyright 2008 Sun Microsystems, Inc. All Rights Reserved.
    Use is subject to license terms.
    Assembled 27 October 2008
    Should I install any patches to this version of Solaris 10 to get the .ttf fonts installed. As mentioned earlier, I am using Java Desktop System, Release 3 desktop.
    Kindly guide me in installing/accessing the .ttf fonts.
    Regards,
    Sreeram

  • Why does embedding Adobe fonts in EPUB cause all text to display as oblique?

    I have been having this problem for a while now to various degrees, and I stopped using InDesign to build and export EPUB files for a long time because of it. Lately I have decided to try reintroducing InDesign into my EPUB workflow. However, I have found that whenever I try to export an EPUB 2 file from InDesign CC 2014.1 while embedding Adobe fonts, all the text in the EPUB displays as oblique when I open the resulting file in Sigil or Calibre. Removing and then re-adding the fonts with no obfuscation does not correct the issue. Not embedding the fonts during export -- or removing them from the EPUB entirely -- eliminates the display problem, but obviously I can't expect people to have these fonts installed on their computers.
    I do believe most Adobe font licenses allow for embedding, so I don't think this is a security issue. For the sake of this discussion the issue I am having is with Arno Pro OTF (Regular, Italic, Bold).
    I can't find anything about this on the web. Can anyone help me with this issue, or has anyone else experienced this at least?
    Thanks!
    Allen

    Here's another piece of information to add to the puzzle. The first screenshot is from Calibre on an PC with Windows 8.1 (using Google Chrome as default search engine). The second is from Calibre on a Mac with Yosemite 10.10.1 (using Safari 8.0.2 as default search engine). Both with the same ePub file created on CC2014 on the Mac using Arno Pro for the Latin text, Adobe Song for Chinese, and Deja Vu Sans for the Hexagram

  • How to set selected text color in Spark TextInput

    I'm trying to make Spark TextInputs and MXFTETextInputs look like Halo/MX TextInputs as much as possible, since I have a mix of both Spark and MX TextInputs in my application. I know I can set the
    selection background color to black using focusedTextSelectionColor. How can I set the selected text color to white so it matches the MX white-on-black look?

    This works, if you set the enabled property directly on the s:TextInput:
    <?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/mx">
        <s:layout>
            <s:VerticalLayout horizontalAlign="center" verticalAlign="middle" />
        </s:layout>
        <s:controlBarContent>
            <s:CheckBox id="ch" label="enabled" selected="true" />
        </s:controlBarContent>
        <fx:Style>
            @namespace s "library://ns.adobe.com/flex/spark";
            @namespace mx "library://ns.adobe.com/flex/mx";
            s|TextInput:disabled {
                color: red;
        </fx:Style>
        <s:Group>
            <s:TextInput id="ti" text="The quick brown fox jumps over the lazy dog" enabled="{ch.selected}" />
        </s:Group>
    </s:Application>
    It can get a bit trickier when you're setting the enabled property on a parent container, since (I believe) that the child control's enabled properties are still set to true and just the container is disabled. One possible workaround would be to bind the child TextInput control's enabled property to the container's enabled property. That way the s:TextInput should still go to it's disabled state and you can customize the disabled state's styles to have darker text, or whatever else you want.
    <s:Group id="gr" enabled="{ch.selected}">
        <s:TextInput id="ti" text="The quick brown fox jumps over the lazy dog" enabled="{gr.enabled}" />
    </s:Group>
    Peter

  • Is ID exported PDF considered non-editable? (In the case of view&print embedding permission fonts)

    Hiya!
    I am a graphic designer and I use InDesign 5.5.
    I have a question about font embedding when using the InDesign's export as a PDF in "print" format feature.
    Many fonts allow embedding into digital documents only for the purpose of viewing and printing.
    In addition to this the font EULA's mention that the embedded font may not be used to edit the document.
    Is it possible to create a non-editable PDF with embedded fonts?
    Is choosing PDF export option "print" the key here, or embedding the fonts as a subset?
    Isn't it still possible to edit PDF in Acrobat with touch up text tool? Or use some third party editing program?
    OR Is a PDF file - with fonts embedded as a subset -  non-editable as such, or at least considered to be non-editable enough?
    Or is it just that the file doesn't really have to be non-editable, but it must not be edited...
    How do I ensure that? Do I even need to ensure that?
    Whole thing seems so controversial.
    Hope someone can shed some light into this!!!
    -Ahlax-

    Ahlax,
    There are several separate concepts here.
    First, PDF is really a final form file format. It wasn't designed as an editable format for layout such as InDesign's .indd format ane Word's .doc and .docx formats. Although PDF files may be tagged with contextual metadata, typical content of PDF files contains no context in terms of words, sentences, paragraphs, columns, etc. It is simply graphical objects including text fragments, vector artwork, and raster images at a particular place on a page with specified graphical attributes (color, transparency, etc.). As such producing a full PDF file editor first requires definition of what it actually means to edit such a file given the characteristics of PDF files.
    That having been said, Acrobat and various third party plugins to Acrobat as well as third party applications provide some degree of editability for PDF files, recognizing that such edits are definitely not at the abstractual level that you get with InDesign. You can “touch-up” text, but doing a re-layout is effectively impossible. In most cases, it is better (in terms of time, effort, and resultant quality) to go back to the source document, make the changes there, and then regenerate the PDF.
    Fonts are a totally separate issue. Adobe products will not embed any font into a PDF file unless the font allows for at least preview and print embedding. For PDF forms, Acrobat requires a font to allow editability embedding. However for text touch-up and other edits, Acrobat never uses the embedded font. Such edits are only allowed if the user has the same font actually installed on their system.
    In terms of forcing a PDF file to be totally non-editable, that is done by applying security to the file when you export the PDF file from InDesign (the Security tab) or in Acrobat Pro after PDF creation (go to the Security tab under Document Properties (Ctrl-D) to set such security).
              - Dov

  • When I send an email from Apple mail, it send inbedded links, not embedded, my font shows as plain text and signature sends as attachment??

    When I send an email from Apple mail, it send inbedded links, not embedded, my font shows as plain text and signature sends as attachment??

    inbedded is not a word.

  • Embedding Adobe fonts in a folio: any issues?

    Adobe's font licensing terms/faq don't seem to address embedding Adobe fonts in a DPS folio.
    I'm assuming that folio-embedding terms will be the same as PDFs -- that is, fonts that are okay for print and preview embedding in a PDF are okay for folios, too.
    Is there an official policy for folio embedding? Anyone have this issue come up already?
    Thanks!

    There's actually two issues here that need attention. If you're just outputting to default DPS folios then the pages become for all intents and purposes images so there's no real font-related issues. The more difficult area is if you're embedding your own html files that use Adobe fonts. I'd imagine things get more coplicated here.

  • Apex fop add ttf fonts

    Hello, Im solving problem with PDF printing in Apex 4.1.1 and fop 0.93 running on oc4j . There is problem with some characters displayed as “#” in output pdf. This usually means the selected font doesn't have a glyph for the character.
    I have studied apache fop reference where is written that I can add custom fonts. But I cant realize how to modify apex_fop.jsp to add ttf fonts.
    Can anyone help?

    Hi
    Some times ago I created fop module with polish characters. It was hard work.
    1. I used free true type fonts with special characters
    2. I created metric files based on this fonts
    3. Connected to config files
    4. Rebuilded some jsp page
    5. Changed apex reports print templates
    You can read it on my blog (only polish version ): http://apex.dbe.pl/search?q=fop there is files to download with readme.
    Probably you can't use it with APEX Listener 2
    Regards

  • Help a novice! Embedding Custom Font in CS5

    Hi!
    Can someone help me understand how to embed a font in Dreamweaver CS5?
    A quick google search reveals instructions for embedding custom fonts in older versions of Dreamweaver but not recent ones... Is this because its somehow automated in CS5? I'm not really sure what to do! Thanks for any help!

    Can someone help me understand how to embed a font in Dreamweaver CS5
    You don't embed fonts into Dreamweaver.  You embed fonts into your web pages with CSS.
    You will need to find a suitable font. Not all commercial fonts can be embedded without violating copyrights.  Read the fine print in your license very carefully.
    @Font-Face Guide
    http://sixrevisions.com/css/font-face-guide/
    You will need several different file types to support the various browsers and mobile devices
    @font-face font generator
    http://www.fontsquirrel.com/fontface/generator
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

Maybe you are looking for