Embedded font issues -- Flex not measuring properly

I started this out in one thread ( http://forums.adobe.com/thread/470702 ) and it has progressed into a new, bigger issue. I embedded fonts using the code below.  Flex is not measuring them properly or the font I'm using is vertically challenged.  I suspect the font I am embedding has different vertical spacing than the default font.  I have determined the fonts are embedding by rotating the containers.
Here's an example of what I'm getting:
The right side radio button is the raw display (height works out to 23), the left side radio button I forced the height to 15.  Both the radio buttons are set to exactly the same y coordinate.  You can see the right hand text is not centered on the radio button.  I don't want to go thru the hassle of adjusting every single component height to make the font look centered plus that's an ugly workaround.
I don't think there is anything wrong with my code nor do I think a font swf will help.  I sure would like to know what's going on but it is beyond my understanding.  Here's my thought.  I like the default font the compiler uses when I DON"T embed fonts, looks like this:
I figure if I could embed this font, everything would work properly.  I just don't where this font lives.  The docs indicate the default font is _serif but it looks more like _sans to me.  And I don't know the hierarchy for my platform.
So...  Does anyone know either how to fix this measurement issue or where I can find THE True Type font or swf or something that Flex uses as a default so I could embed it?
/* CSS file */
@font-face {
font-family: MainFont;
src: url("assets/fonts/verdana.TTF");
unicode-range: U+0020-U+007E;
advancedAntiAliasing: true;
@font-face {
font-family: MainFont;
src: url("assets/fonts/verdanab.TTF");
unicode-range: U+0020-U+007E;
advancedAntiAliasing: true;
fontWeight: bold;
@font-face {
font-family: MainFont;
src: url("assets/fonts/verdanai.TTF");
unicode-range: U+0020-U+007E;
advancedAntiAliasing: true;
fontStyle: italic;
@font-face {
font-family: MainFont;
src: url("assets/fonts/verdanaz.TTF");
unicode-range: U+0020-U+007E;
advancedAntiAliasing: true;
fontWeight: bold;
fontStyle: italic;
global {
font-family: MainFont;

First off, yes there was a correction to the left hand radio button.  I forced the height of the button to be different and that seemed to help center things
After a bit of beating my head against the way, I decided to run a simpler test.  I set up a case where I had default fonts side by side with embedded fonts.  Since my default.css file had Verdana I decided to use a Verdana embedded font.  I figured I could compare them directly and maybe play with advanced anti-aliasing at the same time.  I've attached the files (change the txt extension to mxml)
The result was a somewhat of a surprise.  I didn't realize that all text really wasn't centered on the component (eg radio button, checkbox) at my default size and below.  I do see the small pixel shift, especially in the Button.
So...  I have found the "real" font declaration in the defaults.css file, am seeing the small pixel shift with embedded fonts, that using advanced anti-aliasing  can help on smaller text, and realized I have to be very careful where I use font sizes smaller than default.  I'm guessing that the "perfect" default size on my system would be 12 since that appears what my Verdana.ttf font is based on.  My defaults.css file has the font size set at 10.  The inability to measure properly is exacerbated when the fonts are embedded.
Now the real question -- anyone have a clever fix?

Similar Messages

  • [svn:osmf:] 13142: Fixing embedded font issues.

    Revision: 13142
    Revision: 13142
    Author:   [email protected]
    Date:     2009-12-22 08:16:15 -0800 (Tue, 22 Dec 2009)
    Log Message:
    Fixing embedded font issues.
    Modified Paths:
        osmf/trunk/apps/samples/framework/WebPlayer/html-template/index.template.html
        osmf/trunk/apps/samples/framework/WebPlayer/src/WebPlayer.as
        osmf/trunk/libs/ChromeLibrary/src/org/osmf/chrome/controlbar/widgets/ScrubBar.as
        osmf/trunk/libs/ChromeLibrary/src/org/osmf/chrome/controlbar/widgets/URLInput.as
        osmf/trunk/libs/ChromeLibrary/src/org/osmf/chrome/fonts/Fonts.as

    I am not sure how to fix the problem using the FGL framework, but here is a way to get the right result
    In the CSS file under the @media only screen and (min-width: 769px) section, modify the following style rules
    #menu {
        clear: both;
        float: left;
        margin-left: 0;
        width: 20%;
        display: block;
        vertical-align:top;
    #content {
        clear: none;
        float: right;
        margin-right: 0%;
        width: 80%;
        display: block;
    Having said that, you will do well to scrap FGL and have a look at Bootstrap

  • How do I solve the embedded font issue that ibook proofer does not accept?

    I have several books I created in ID 6 and am now trying to prepare them to sell on iBookstore - and as others have noted ID creates a file for embedded fonts - I cannot find a way within ID to defeat this option when exporting to EPUB 3.0.
    Any help is greatly appreciated!

    In EPUB Exports Options/Advanced/CSS Options you could uncheck Include Embeddable Fonts.

  • Embedding Font Issue

    Need help with embedding fonts.  I have the correct fonts in Pagemaker, I can export pages into pdf from PM, when I look at the PDF on my local with the fonts, they are there.  I look at the PDF on another system or mobile and the PDF does not have the fonts.  I have looked into the PDF and can see that the fonts state they are embedded bu they are not showing up in the actual pages of the pdf.  Any suggestions?  I am using PM 7.0 with Adobe Acrobat Pro 6.0 and have installed Distrller 5.0.

    Could be a licensing issue.

  • (How) can I use Embeded Fonts in Flex 3.3

    If I understand correctly, I need to transcode/embed the fonts in Flex 4 / CS 4, but is there any way to then get those embeded fonts into a Flex 3.3 application?

    Support for DefineFont4 (the cff property) is new in Flex Gumbo. It is not available in Flex 3.X. That said – I do have a solution for you. Create a separate Flex Gumbo project and use the cff property to embed the font you need into that SWF. Then embed the font SWF that you just created in Gumbo into your Flex 3.3 application.
    Check out the “Building a Font SWF for use in any Flash Application” section in my DefineFont4 blog post:
    http://blogs.adobe.com/tlf/2008/11/embedded_font_subsetting_using.html
    Here is an article on embedding a SWF in Flex:
    http://blog.flexexamples.com/2007/10/25/embedding-fonts-from-a-flash-swf-file-into-a-flex- application/
    Hope this helps!

  • European Pi embedding font issue

    Hi:
    I am using a liscensed copy of the European P1 font in LiveCycle Designer 8.2.  Windows XP SP 3  Acrobat 9.4.1
    When I generate the Pdf as Adobe dynamic XML form (PDF) I recieve the followign warning in LC Designer and the fornt is not embedded in the resulting PDF.
    Font license for EuropeanPi-Three does not permit embedding.  Font will be referenced.
    Font license for EuropeanPi-Four does not permit embedding.  Font will be referenced.
    Font license for EuropeanPi-Two does not permit embedding.  Font will be referenced.
    Font license for EuropeanPi-One does not permit embedding.  Font will be referenced.
    When I convert a word document through Adobe PDF Maker the font is embedded fine.
    If I create a document through PDF printer the font is embedded fine.
    Even if I use Adobe Illustrator or InDesign the font is embedded in the PDF output.  (Acrobat 9/LC Designer installed as part of the suite but I have the same issue on a stand alone install of Acrobat 9/LCD 8.2)  It is only through LC Designer that I have a problem embedding the font.
    Any ideas or suggestions?
    Thank you,

    Hi David,
    I am sure you have the licence, it just depends on the type of the licence.
    From what I see there are three:
    Fonts that don't permit embedding.
    Fonts that permit embedding, but only for "Print and Preview", eg not editting.
    Fonts that permit embedding for editing.
    Looking at the Help file for LC Designer ES2, there appears to be a slight difference between static PDF forms and dynamic XML forms:
    Note: The manufacturer of the font can specify the level of embedding that is allowed
    Fonts can be subset in static PDF forms
    In static PDF forms, fonts can be subset for text and field captions. Subsetting reduces the size of the PDF file. To subset fonts into the form, the font you select must be set to the Print & Preview Embedding Allowed level.
    Note: The fonts used in the fillable area of fields cannot be subset on static PDF forms because the user input can contain any character from the font.
    Fonts are embedded in dynamic PDF forms
    In dynamic PDF forms, fonts are fully embedded or linked. Embedded fonts are never subset. When a form that has embedded fonts is opened, even if the fonts are already on the system, Adobe Reader uses the embedded fonts. To fonts into the form, the embedding settings in the fonts you select must allow embedding for edit
    The level of embedding that is allowed is set by the font provider and not any setting in LC Designer.
    I suspect that the Pi font has print and preview embedding. This would worked perfectly in programs like Word and InDesign when you are creating native PDFs.
    If you talk to your font supplier, you need to ask for a "embedding for edit" licence.
    Hope that helps,
    Niall

  • Embedded fonts in pdfs not printing correctly

    Since updating to 10.5, I've run into a really annoying problem: when printing pdfs, many embedded fonts will not print correctly. Korinna, for example, prints as something totally different. I've tried using both Preview and Adobe Reader, and no luck. Help!

    HI William,
    Go here for help for Font problems and management in OS X
    You may have a duplicate or corrupted font.
    Carolyn

  • Upgrade from Director 10.1 to 11.5 embedded font issues

    I just upgraded to 11.5 for Mac. When I opened an existing file I developed in 10.1, the embedded fonts went bizarre. I had Times embedded and it did some strange substitutions like the "i"s are in a totally different font as are the question marks. The whole font sets were embedded. No subsetting. Can someone enlighten me as to what is going on?

    One of the new features in Director 11.x is a new text engine that does Unicode.  Whether it is an improvement or not is up in the air.  Anyway, it has new problems.  It is quite common to have embedded font problems with projects updated from Director 10.  Generally, you can fix them by deleting the embedded font and re-embedding it in Director 11.  Just keep the same menber name and it should be fine.

  • Japanese font "MS PGothic" not showing properly in linux machine

    Hi,
    I am using this font "MS PGothic" in my swings application to display Japanese font,
    But in SOME of the linux machines, it is not displayed properly
    linux os : Red Hat linux Enterprise edition 5.0.
    Do I need to install some packages for MS PGothic font to get installed in red hat linux.
    please help.
    Regards,
    bt

    You can get the TTF file and put it in your project, so will not have to care about system configuration.
    Good luck

  • Using HTML text with an embedded font in Flex 4

    I have spent a day searching the interwebs and have not found a working example of how to use an embedded font with html formatting.
    Anybody know if it can even be done??

    Should be doable, but all fonts used in the html have to be embedded, and
    one of the fonts should be specified as the fontFamily for the component.

  • 2 way to retrieve a list of embedded fonts in Flex 4 - which one is better?

    Hi all,
    I am currently aware of 2 different methods to retrieve a list of currently available embedded fonts on the local system
    var embedededFonts : Array = Font.enumerateFonts(false)
    var appSystemManager : SystemManager = FlexGlobals.topLevelApplication.owner;           
    var embeddedFonts : Array = appSystemManager.embeddedFontList();
    What is best way to retrieve a list of embedded fonts out of those two approaches?

    "better" in what way... performance? reliability?

  • Embedding font issue in illustrator cc

    can't seem to tell illustrator that I have license for Blazed font.  Ontop of that I have Typekit but can't seem to use it.  Any help would be most appreciated.
    Steve

    And what exactly is the issue? You need to explain better. AI doersn't care for any licensing restrictions as long as a font is properly installed on the system. That would only be relevant for creating PDFs and the like. The rest is just a blank slate - you have not provided any system information or error messages, so nobody knows what's going on.
    Mylenium

  • Font Issue!, not just an a regular ole issue!

    Ok....I've started doing web design and development at a Application, Software, Website & Server, Hardware company. That's right we manage and house servers for local businesses, intergrate our IMS software for companies and customize for their needs, do hardware fixes, and implement websites that use our software (IMS... aka.... Intergrated Management System)....and trying to find some sort of fix with fonts
    PROBLEM: We are running Vista, Windows 7, and OSx6.4 (just me, the rest are ALL PCs) and having a hard time trying to figure out a PROPER WAY of managing our Fonts throughout all the different OS's. This is probably not gonna be an easy fix if any at all, but you can see where we are running into obvious issues. We are all using CS4, but cross-platform is where the issues are.
    Any suggestions on a way that would make it easier, than just serving up the fonts on a particular folder on our server to be installed onto a different machine. My first thought is the "PACKAGE" utility in InDesign, to collect fonts and images to save with the actual Native file in the development directory.
    Is there any sorda program that will do this for any CS program, and also cross-platform. Any suggestions would be greatly appreciated! And I know I probably left out pertinent stuff that would help in answering the question properly, so please ask if that is the case
    Thanks for your time
    Drew

    What you need to do is use fonts that are cross platform compatible. That leaves out Mac Type 1 PostScript and older Mac suitcase style TrueType fonts.
    You can use these without any type of conversion. They can be copied from one OS to the other and used as is:
    OpenType - fonts ending in .otf , .ttf and .ttc
    TrueType - fonts ending (also) in .ttf and .ttc
    Windows Type 1 PostScript - paired fonts ending in .pfm and .pfb
    For the latter, Win T1 PS fonts will only work on the Mac if you place them in a specific location. And then only with the Adobe CS2 apps or newer. To use Win T1 PS fonts on the Mac, put them in the /Library/Application Support/Adobe/Fonts/ folder. If a folder named Fonts does not exist in that location, just create it and you will be able to use those fonts in the Adobe apps.
    You can use Mac Type 1 PostScript fonts and legacy TrueType, but you'd have to convert them to one of the above formats first. OpenType is the best choice as it will support 16 bit fonts (more than 256 glyphs).

  • Embedded Font issue

    Purchased DINOffc.ttf with a license for editable embedding, but Acrobat doesn't recognize it as such. Why not?

    It 's from FontFont. I finally did resolve this. Originally I was trying to open a current form, change the fonts and then embed the new font and it wouldn't do it. Once I exported the original InDesign file to a PDF, converted it to a form, pasted the old form fields into the new document and then changed them. I was able to embed the new font as editable.

  • Flex 4 Embed fonts in flash swf VS embedding fonts in flex

    I have this dilema...what's the best way to embed fonts?
    In flash I can easily embed the fonts + the chars ranges that I need through the menus export the swf and then use it in flex.
    In flex I don't see an easy way of setting the character ranges. How can I get the values I need? I read the format is U+(beginning of range)-(end of range) but where do I take beginning and end of the range from ?
    Thanks in advance.

    Сode hinting in Flash Builder 4 code editor for global style, e.g.
    global {
       font-family : Arial;
    works for me.
    Also in @font-family style declarations, I can code hint for "font-family", "embed-as-cff" styles property too.
    Although, it is true you do not get code hints for values for those particular properties, I think that CSS editor could support it too, but it does not.

Maybe you are looking for

  • How do I select a thick paper to print from Indesign?

    How do I select a thick paper to print from Indesign? I have to go to the printer to select the thicker paper. I would like to select the paper from my computer in Indesign.  Other programs allow this.

  • No longer able to drag and drop to edit pdf

    I have adobe acrobat 11.0.06 and Mac OS 10.9.1.  I use to be able to add files to an existing pdf via the "Page Thumbnails"view. I would drag the files and drop them there and "bingo" the pages would appear where I dropped them and in the correct ord

  • IOS 5 now makes music slow to use

    Since upgrading to ios5 my music app on my iPad (first version)  is painfully slow to respond. I also notice my web browser closes for no reason. Why is this?

  • "Unable to sync" when uploading large files to Creative Cloud

    Hi, I recently tried to upload some large files (1.1 GB, 2 GB) to my Creative Cloud. After completing the upload after nine hours I got the error message "unable to sync". Any suggestions? Regards, pdm208

  • Intel Haswell GPU acceleration in CC?

    Has anyone tried Intel Haswell integrated graphics chips for GPU acceleration in Adobe Premiere Pro CC? If so: cigar? No cigar? (I realize Haswell is neither supported nor is anywhere in the same performance bracket with discrete desktop GPUs from AM