Correct dimensions for a text with embedded font

Can someone please tell me how can I find the  width, height and lineHeight for a text  that is inside a RichEditableText component if I'm useing  embedded fonts as cff?
I have a font that has  big loops on letters like f,j,g.  I
tried to get the infos from the richEditableText and richEditableText.textFlow. I even tried to compute the height of the text line by line with textFlow.flowComposer.getLineAt(i).height. But none of this got me a value big enought to cover the loops too.

Might be an issue with the font.  Try checking each of the children in the RichEditableText.  Some of them should be TextLines.  See what they report.

Similar Messages

  • Textfield which accepts multilingual characters with embedded fonts

    Hi all,
    I have a textfield where I can paste text from different languages with device fonts. Now, I want to input multi-ligual text with embedded fonts.
    I have embedded set of fonts, where I can input only english alphabets but not other languages.
    Is there a way to input any language characters with embedded fonts?
    Thank you.

    Thanks for your reply.
    I have embedded font as follows,
    [Embed(source="myfont.ttf", fontName='myfont', mimeType='application/x-font',embedAsCFF="false")]
    With this, I was able to apply this font for english.
    I have tried to paste " मैं कौन हूँ? " on a textfield. But I have not shown मैं कौन हूँ? text.
    And setting text programmatically did not work at all as
    textField.text = "मैं कौन हूँ?";
    If I do this with device fonts, every thing work fine but not with embedded fonts.
    Is there any thing wrong with my code while embedding font?

  • Rotating text without embedding fonts - how?

    No doubt same or similar question was asked and most likely answered but I could not
    find anything that would match...
    I want to draw column headers of my ADG vertically. So, I need rotate column text 90 degree
    and adjust position.
    Is it true that it can be achieved with embedded font only? If it is true how can it be done for
    Unicode code, which includes ranges for Japanese, Chinese, etc characters. The size of
    swf is going to be huge. Several sites like this
    http://www.forestandthetrees.com/2009/06/29/rotating-text-without-embedding-fonts/
    claims that they have a solution for the problem without embedding fonts.
    Note: I am still using Flex 3.3 SDK with no TLF. By the way, do TLF libraries work with
    3.3 SDK.?
    Thanks in advance

    Draw your text onto a bitmap image (or take an ImageSnapshot of a Label), then rotate the image.

  • How to edit a text with same font in a image in photoshop 7

    how to edit a text with same font in a image in photoshop 7

    Good day!
    The question seems to provide insufficient information for a relevant answer.
    Do you have the font?
    Is the text a (Type) Layer of its own or part of the image?
    Could you please post a screenshot with the Layers Panel visible?
    Regards,
    Pfaffenbichler

  • Placed PDF (with embedded fonts) reports fonts not available!

    Hi,
    Can anyone tell me why Illustrator CS (I know it's old) should report Fonts missing when the PDF I have placed has definately got the fonts embedded.
    The PDF was made in InDesign CS4 using the default [High Quality Print] setting. If I look at the properties of the created PDF it lists all the fonts as being embedded subsets.
    I know I can get around this by outlining the text but I shouldn't have to.
    Thanks
    Simon Kemp

    So, Illustrator will always require the fonts present and will disregard any embedded fonts?
    That's pretty much it. Remember: Illustrator is not a PDF viewing program. It wants to let you edit the document. PDF is essentially a document exchange format and not really intended for editable content (beyond the extent Acrobat enables). Font designers want you to buy their products if you're going to be doing anything other than reading the text.
    The link-place-flatten trick is good to have in your bag of tricks, but I am not alone in recommending you do not blindly outline all type. Aside from making it nearly impossible for an output service provider to make a possibly necessary last-minute correction, you will not get the proper hinting with very small type. Moreover, if you're dealing with a large amount of text, you'll end up with huge files.

  • Problems with embedded font on spark RichText control

    « Hide
    I have an embedded font that appears correctly when used with Halo components, but when associated with the spark RichText component, it is not recognized.
    The embedded font is defined in css file, my css file
    @namespace s "library://ns.adobe.com/flex/spark";
    @namespace mx "library://ns.adobe.com/flex/halo";
    @font-face {
    src:url("assets/fonts.swf");
    fontFamily: "Helvetica Neue";
    @font-face {
    src:url("assets/fonts.swf");
    fontFamily:"Helvetica Neue";
    fontWeight: bold;
    global{
    color:#333333;
    fontFamily: "Helvetica Neue";
    fontSize:12px;
    The embedded font it used in the following manner:
    <mx:Label styleName="panelTitle" text="Hello There"  width="263" x="21" y="11"/>
    <s:Group width="410" x="38" y="52" height="50">
    <s:RichText styleName="panelTitle" text="Hello There" fontFamily="Helvetica Neue"  width="263" x="21" y="11"/>
    </s:Group>
    The Label shows the embedded font correctly while the RichText control does not. It does not matter if the fontFamily is specified explicitly on the control or not.
    I created a bug SDK-22137, but since I'd need to get this working soon any help would be appreciated.

    Just a friendly reminder. Many of the examples on that site are fairly old and havent been updated to use the latest APIs. For example, "cff" has recently been renamed to "embedAsCFF". In fact, here's a better example:
    <?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">
        <s:layout>
            <s:VerticalLayout paddingLeft="20" paddingTop="20" />
        </s:layout>
        <fx:Style>
            @namespace mx "library://ns.adobe.com/flex/halo";
            @namespace s "library://ns.adobe.com/flex/spark";
            /* DefineFont3 (embedAsCFF == false) */
            @font-face {
                src: url("assets/georgia.TTF");
                fontFamily: embGeorgia;
                fontWeight: normal;
                embedAsCFF: false;
            @font-face {
                src: url("assets/georgiab.TTF");
                fontFamily: embGeorgia;
                fontWeight: bold;
                embedAsCFF: false;
            /* DefineFont4 (embedAsCFF == true) */
            @font-face {
                src: url("assets/georgia.TTF");
                fontFamily: embGeorgiaCFF;
                fontWeight: normal;
                embedAsCFF: true;
            @font-face {
                src: url("assets/georgiab.TTF");
                fontFamily: embGeorgiaCFF;
                fontWeight: bold;
                embedAsCFF: true;
            mx|Label {
                fontFamily: embGeorgia;
            s|RichText {
                fontFamily: embGeorgiaCFF;
                fontLookup: embeddedCFF;
        </fx:Style>
        <mx:Label text="Halo Label" />
        <mx:Label text="Halo Label (bold)" fontWeight="bold" />
        <s:RichText text="Spark RichText" />
        <s:RichText text="Spark RichText (bold)" fontWeight="bold" />
    </s:Application>
    Also, depending on what you're trying to do, this may help you: http://blog.flexexamples.com/2009/06/14/using-a-cff-embedded-font-with-a-halo-label-contro l-in-flex-4/. Basically, you can set the textFieldClass style on certain Halo controls and have them use the mx.core.UITLFTextFieldClass (instead of the default mx.core.UITextFieldClass) so they can take advantage of the new CFF fonts.
    In fact, here's the same example as above, but with the single embedded font:
    <?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">
        <s:layout>
            <s:VerticalLayout paddingLeft="20" paddingTop="20" />
        </s:layout>
        <fx:Style>
            @namespace mx "library://ns.adobe.com/flex/halo";
            @namespace s "library://ns.adobe.com/flex/spark";
            /* DefineFont4 (embedAsCFF == true) */
            @font-face {
                src: url("assets/georgia.TTF");
                fontFamily: embGeorgiaCFF;
                fontWeight: normal;
                embedAsCFF: true;
            @font-face {
                src: url("assets/georgiab.TTF");
                fontFamily: embGeorgiaCFF;
                fontWeight: bold;
                embedAsCFF: true;
            mx|Label {
                fontFamily: embGeorgiaCFF;
                textFieldClass: ClassReference("mx.core.UITLFTextField");
            s|RichText {
                fontFamily: embGeorgiaCFF;
                fontLookup: embeddedCFF;
        </fx:Style>
        <mx:Label text="Halo Label" />
        <mx:Label text="Halo Label (bold)" fontWeight="bold" />
        <s:RichText text="Spark RichText" />
        <s:RichText text="Spark RichText (bold)" fontWeight="bold" />
    </s:Application>
    Peter

  • Why a pdf document with embedded fonts can be copied but is not searchable in pdf reader

    I am writing a pdf files with embedded subset fonts. As required, I am including the ToUnicode and CIDSet objects. To test, I created a simple PDF with two Hebrew characters. I can select the two characters and copy to the clipboard, and paste it properly into another application such as Word. But I am not able to search for a word containing these two characters. Adobe Reader (or Acrobat) displays the message that the word was not found. So in essence, I have created a PDF document which can be copied properly, but is not searchable. Any idea what I might be missing when creating the document?
    Additional information: 1. The file in question is a minimal file with just two characters. I have tested with many such files in many different languages including English. None of the files are searchable. 2. Curiously, if I search for the letter 'e', Adobe reader highlights an incorrect word, even if the letter 'e' does not exists in the file. 3. Adobe acrobat is also not able to search within this file, however when I save the file to another disk file, the saved file now is searchable. I confirmed that the major objects such as the font-file, ToUnicode object, CID object, and the font description objects are the same in the saved file. However, one of the font object is brought up closer to the top of the file. 4. FoxIt is able to search these files properly.
    5 0 obj
      <</Filter /FlateDecode /Length 115>>
      stream
            q 0.750000 0 0 0.750000 0.000000 792.000000 cm
            q q q 0.160000 0.000000 0.000000 0.160000 0.000000 0.000000 cm
            BT /F0 100.000000 Tf 0 g 750.000000 -690 Td[<02B0>] TJ 35.000000 0 Td[<02B9>] TJ ET Q
            Q
            Q
            Q
    endstream
    endobj
    10 0 obj
    <</FontName/AAAAAA+ArialUnicode/CIDSet 9 0 R /Ascent 905/CapHeight 905/Descent -212/FontFamily(Arial)/Flags 32/FontBBox [0 -212 1000 905]/ItalicAngle 0/StemV 0/FontFile2 7 0 R/Type/FontDescriptor>>
    endobj
    11 0 obj
    <</BaseFont/AAAAAA+ArialUnicode/CIDToGIDMap/Identity/CIDSystemInfo <</Ordering(Identity)/Registry(Adobe) /Supplement 0>> /FontDescriptor 10 0 R/Subtype/CIDFontType2/Type/Font>>
    endobj
    12 0 obj
    <</Subtype/Type0/BaseFont/AAAAAA+ArialUnicode/Encoding/Identity-H/DescendantFonts [11 0 R]/ToUnicode 8 0 R/Type/Font>>
    endobj
    8 0 obj
      <</Filter /FlateDecode /Length 252>>
      stream
            /CIDInit /ProcSet findresource begin
            12 dict begin
            begincmap
            /CIDSystemInfo
            << /Registry (Adobe)
            /Ordering (UCS) /Supplement 0 >> def
            /CMapName /Adobe-Identity-UCS def
            /CMapType 2 def
            1 begincodespacerange
            <0000> <FFFF>
            endcodespacerange
            3 beginbfchar
            <0000> <0000>
            <02B0> <05E0>
            <02B9> <05E9>
            endbfchar
            endcmap
            CMapName currentdict /CMap defineresource pop
            end
            end
    endstream
    endobj

    I figured the app might have that ability - considering you can add text, highlight, add a signature, annotate and draw - so my thought was why not delete a page, or rearrange for that matter?.. That should be an option, this way we don't have to export to one of the other apps to delete or rearrange..
    Thanks for the help, Bernd.
    BTW if anyone is looking - PDF Max can do all of the above and delete and rearrange. With PDF Splicer you can delete and rearrange as well, but it has no other features.
    And as for Steve Werner whose comment was deleted after it got to my inbox, it is much more than a Reader, as you can plainly see from the amount of tasks the Reader app can do above.

  • How can I create a PDF with embedded fonts (not a subset of the font) from Excel?

    I need to create PDF's from Excel spreadsheets. The PDF needs to have embedded fonts but every time I create one it only has a subset of the embedded font.  I have tried setting preferences in the Acrobat add in (unchecked the "Subset Embedded Fonts" option and also tried with the Subset Embedded Fonts checked but the percentage set to only 1% in an attempt to force full font to be embedded.)
    I also tried opening the resulting PDF with Acrobat Pro XI but could not figure out how to add the font in.
    A method to accomplish the results from either tool would be great.

    Anna;
    Unless you can add those fonts to your system via the Font book and then substitute them in iPhoto, you'll have to either user the available fonts or create your own pages, 8.5 x 11, in an image editor like Photoshop Elements and use them on pages that are one photo per page. Other's have done that with some success.
    If you has PS or PSE create an 8.5 x 11" canvas at 300 dpi. Then you can add your photos, add text (if PS can use the text), and create your own layout.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've written an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Reader V8 problem with embedded font

    Hello,
    I'm having problems opening in Reader V8 the PDF file located at http://www.itech.ca/otf-cff.pdf . The file opens correctly in previous versions of acrobat. AR 4 5 6 7. It complains about the embedded font. Can anyone help me identify the reason why the font cannot be extracted ? Is there anything wrong in the PDF file when describing the font, or it's the way I'm generating the embedded font ? Is there any tool I can use to help me debug this ? Any help or hint would be greatly appreciated.
    Thanks in advance.
    rabih

    Rabih,
    Please repost in the Reader forum. This forum is for pdf specification
    issues. Usually, the problems you are having are due to each successive
    version of Acrobat adhering to standards more strictly. A pdf with a
    problemsome font Acrobat or Reader might have tried to render the pdf
    and hope for the best. Now it may reject the pdf.
    Mike

  • Dynamic text and embedded font

    Hi,
    I'm new to Flash and AS3, and I'm having a problem when I do
    the following: I create an empty dynamic text field in the
    authoring environment, click "Embed...", and choose the character
    sets that I want (I get the same results when I embed the entire
    font). The first time I change the contents of the text field with
    the command:
    text_field.text = "string 1";
    I get good results--the text appears in the correct font.
    However, subsequent attempts to update the .text property fail with
    no error message, and the field becomes blank.
    If I remove the embedded font by clicking "Don't embed" in
    the embedding dialog, then every time I update the field's .text
    property, it displays correctly using a local machine font.
    I've also tried embedding the font in the swf by creating a
    dynamic text field in the authoring environment, into which I place
    no text, creating a second, functional text field in actionscript,
    formatting it, using the "embed = true" property, and repeatedly
    updating the .text property with the same bad results as described
    above.
    I haven't tried using the [embed] metatag to dynamically load
    the font.
    I've tested the swf in IE7 and Firefox on two machines with
    the same results. What am I doing wrong?
    Thanks,
    Dave

    Okay, here's more information. The font that I've been trying
    to embed is Bitstream Vera Sans Mono. If I embed a different font,
    like Bitstream Vera Sans, I have no problem. It seems to me that it
    must be that my Bitstream Vera Sans Mono is corrupted, my .fla and
    .swf files are corrupted, or there's a bug in flash...

  • Problems in CS3 and AS3 with embedded fonts

    Hi. I recently downloaded the trial version of CS3 to test it
    out. I'm an experience AS2 developper, and have 10 years of C, C++,
    C#, Java, PHP ... programming experience on BIG projects before
    starting flash.
    I have been trying to use an embedded font in AS3 with a
    dynamically created textfield. I've tried all the examples in
    O'Reilly's ActionScript 3.0 Cookbook. They suggest using the
    [Embed] meta tag, but quite honestly it does nothing in CS3. I had
    the Size Report option selected, and it shows clearly by the file
    size the font isn't present in the SWF.
    Then I tried doing it the way I did in Flash 8. Again there
    no luck. My TextField exists, but there is simple no font being
    rendered.. Here is my bit of code.
    In my library I have a symbol called arialBold. In the
    linkage settings, I have "Export for ActionScript" checked, and
    "Export in first frame" checked. The class is "arialBold" but I
    wonder if that's right? and the Base class is "flash.text.Font"
    I tried every variation I could think of. I must be doing
    something wrong. You can find my file here :
    http://www.newcommerce.ca/as3/fonttest.fla
    Thanks for your help! If you can fix this, i'll be very
    happy!

    this code works
    var tf:TextField = new TextField();
    var tfor:TextFormat = new TextFormat();
    tfor.font = new _TrebushetMS().fontName;
    tfor.italic = true;
    tf.width = 300;
    tf.height = 200;
    tf.embedFonts = true;
    tf.border = true;
    tf.defaultTextFormat = tfor ;
    tf.text = "this is a test";
    this.addChild(tf);
    This code does not work
    var tf:TextField = new TextField();
    var tfor:TextFormat = new TextFormat();
    tfor.font = new _TrebushetMS().fontName;
    tfor.italic = true;
    tf.width = 300;
    tf.height = 200;
    tf.embedFonts = true;
    tf.border = true;
    tf.setTextFormat(tfor) ;
    tf.text = "this is a test";
    this.addChild(tf);
    i don't know why

  • Correct dimensions for Power POint Slides

    What would you all recommend for dimensions for Power Point slides so that they fill up the screen
    with no border. My customer is cramming too much text on each slide and it is beyond title safe, going to near edge of TV screen upon viewing.
    I have sequences that are both 16 x9 (720 x 480) and 4 x3 .
    Thanks,
    Al

    I agree with that much text it is not looking good on the TV that I am testing it on. On computer it is better. I thought about the color layer below the slide but the design of the slide has 2 color boxes, (one horizontal, one vertical) on it and putting a layer below doesn't look good so far.
    I am probably going to have to edit each slide and shrink the font and increase the borders.
    I am talking to the admin who made them today.
    A bigger problem is that they have trouble playing the DVD's I make with iDVD in their PC environment. The DVD's either play jerkily or not at all compounded by the fact that the people have lost all the remotes to their DVD players and can't pick a chapter. So I am trying to come up with work around.
    Thanks for response,
    Al

  • Problem with embedding fonts in Illustrator CS5

    I have just installed Illustrator CS5, and have tested creating a PDF document based on one of my existing files, as well as a new file.
    When I open these PDF documents in Adobe Acrobat Pro 9, I am told that Acrobat cannot access one of the embedded fonts (Korinna BT).
    I have had no issues with embedding this font in Illustrator CS4, and (strangely), when I open these files in other PDF viewers (Preview and PDFPenPro), they report no issues.
    Has anyone else experienced this issue?
    I have removed and reinstalled the font in question, and tested/verified that the font is OK - but still not joy.
    Regards
    Jeremy

    The error message I get is:
    "Cannot extract the embedded font 'MVZTIW+KorinnaITCbyBT-Regular'. Some characters may not display or print correctly."
    When I check the fonts in the PDF in "Document Properties" in Adobe Acrobat the following is shown:
    "KorinnaITCbyBT-Regular
         Type: TrueType
         Encoding: Ansi
         Actual Font: Adobe Serif MM
         Actual Font Type: Type 1"
    It seems that Illustrator is adding some strange "code" ('MVZTIW') to the beginning of the font, which means the actual font can't be found and extracted.

  • PDF export - problem with embedded font

    Dear all,
    I refer to a problem which was already discussed [here|Export to PDF wrong font;. I was asked to start a new thread and provide further information. Here we are...
    The issue is nearly the same:
    - We have a solution which both has a WinForms and an .aspx UI.
    - We have a report, used in both solutions.
    - The WinForms solution uses the Crystal Viewer to preview and print and export and so on.
    - The web solution creates a PDF file and prompts to open or save. In this PDF, the font is substituted with Arial. This is actually the concrete problem.
    1) Version of CR
    on MY machine (MAYBE different on production environment, I have to check this):
    Crystal Reports 10 (10.0.0.53327)
    Crystal Reports Basic Runtime forVisual Studio 2008 (10.5.0.0)
    Crystal Reports runtime engine for .NET Framework 4 (64-bit) (13.0.0.99)
    Crystal Reports , version for Visual Studio 2010 (13.0.0.99)
    2) CR Service Packs installed
    Nope.
    3) web / win app?
    Both, see description above.
    4) Is this happening on dev or deployed system?
    On deployed system. It ONLY affects the web solution on the server, which is a Win7 64bit. My developement machine also is a Win7 64bit, it works on this device. On a colleagues machine (WinXP) it works, too.
    5) What is the actual font?
    The Font was exclusively developed for the customer by a designer, but it is fully embeddable (I already checked this).
    6) Link to a screen shot that shows the issue
    I do not know whether this really helps to NOT see a font replaced by Arial...
    I hope you can help me. If the description is a little confusing, please ask, I will try to explain better, promised. Thank you, have a nice weekend!
    Greetings,
    Jens

    Hi Don,
    thank you very much for your reply!
    The font is True Type, embedding allows preview/print.
    What exactly does "Then make sure the WEB Servers have access to the font." mean? It is installed on the machine. I'm not really familiar with that server config stuff, as it is usually not my job...
    Do we have to install the update (it is called support pack 2, right?) on the developement AND the deployment machine? Or only on the developement environment?
    Best regards,
    Jens

  • Help with embedding fonts in swf file

    Hi, I am haviing a problem with my fonts displaying in my swf file. I created the flash site using CS4 on a mac. I thought the fonts were embedded but when I tested the swf in safari and firefox the fonts disappeared are all scrunched up in 1/2" on top of each other in several lines. Its a mess. It is displaying in times or some other font when viewed in on a pc browser.
    What I did so far that did not work:
    Made fonts static with animation
    made fonts dynamic with animation
    How can I fix this?
    I am still a beginner using flash so the simpler the option the better.
    Thanks!!!

    there are quite a few ways you could mess this up but no one way that's typical.
    create a new fla.  click on the text tool, select static in the combobox and add a textfield to the stage.  animate it.  test it.  any problems?
    any other way (or ordering of steps) you use to create static text is prone to problems.

Maybe you are looking for

  • HP Pavilion dv2500 no sound card detected after reinstallation

    HP Pavilion entertainment PC (Laptop) dv2500 OS Windows 7 Ultimate AMD system, nvidea  I recently upgraded a friends computer from Windows Vista to, windows 7 Ultimate. The icon for sound in the task bar ( a speaker) has a red x marked on the speaker

  • WVC80N - AVI recorded files cannot be viewed in Quicktime or Windows Media Player

    I have tried on two seperate PCs and the AVI files will not load. I have inspected the AVI files to be ISO MPEG-4 Video V1 standard and therefore should be able to be played by Windows Media Player and Quicktime but they both complain they cannot be

  • Problem in automatic rate routing selection

    Dear all, I am using REM and according to that I have maintained REM profile in Material Master, rate routing, line hierarchy, production version, but the time of scheduling of planned order, system is saying " The automatic selection of routing is n

  • Prepare_dynamic_navigation to embed in another component

    Hi, I have two components A and B. A uses B as used component. Both A and B have  I  as used component. I is the interface component for visual components. Component VC implements interface component I. My requirement is to put component VC in a view

  • My photo prints are bad

    when i print on 8x10 it orints fine.when i print 4x6 color photo the colors and all mixed up washedout nad bad. what wrong?