Air 2.6 and textField with embedded fonts weirdness on iOS

Hi to all of you.
Im just in the process of trying adobe air to create a gmae on iPhone 4 and i did manage to package corrrectly and intall and make some tests on optimisation with gpu mode on. During those tests, i try exporting a movieClip into a .swc and used it in FlashDevelop. Loaded the thing no problem...That movieclip contains a dynamioc textfiled wich i plan to use to show infos...
Now i add 10  mc (dots) moving from top to bottom in one loop and i use the textfield to show some kind of score points, so i embed numbers in it with a custom font.
now when i click a mc, i add 100 the the score and show the total in the textfield...but at 3500 points, the fps drop to 15 fps, not 3400 nor 3600...
I did many tests, waiting longer before reaching 3500, using one dot mc instead of 10...
The thing is memory in air player doesnt go up...stays pretty much at 2.6 mb - 30 fps but at 3500 gets to 2.6 mb 15fps...will go back to 30 at let say 4200 then back to 15fps at 5000 and so on...
I did not implement any actions at 3500 points...
So i implement a back button wich get the "game view" mc out of the way and stops all process in it to return to the main view ...fps is back at 30 fps steady.
But as soon as i put the "game view" mc on the display list (even without restarting enterframe process that move the dots) it drops to 15 fps...
So this point to the game view mc itself...then i put the embedFonts property to false on the score texfield...BAM! steady 30 fps with 40 mc animated in one loop...no more slowdowns can get to 20000 points and not a single perceptible lag (but of cours i loose my custom fonts in the textfield, showing arial instead)...
Any pointers to the problem? Or advices with textfields, fonts and iOS ?
I use retina resolution and pretty much all is bitmap...
I reuse my instances, use one loop, least possible eventListeners, etc.
Thanks for any help you can provide and thanks to adobe, this is nice to be able to test concept on touch screen. Keep up the good work !

Hi, so it is better to place all my elements with the code and not export a mc with a lot of element in it already placed?
As for the int value, i tought of it since it may be possible that my textfield received a value like 3500.0000000000000000000000000000000000001 and since my texfield is not autosize, i didnt see that...
Ill give it a try
Thaks

Similar Messages

  • 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

  • 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?

  • 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.

  • 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.

  • 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.

  • Problems with Embedded Font MS PGothic

    Hello,
    After editing a document in Japanese, some characters will not show up. Normally i would attribute this to a missing font pack, but after reinstalling the Japanese font pack on the computer, we strill get the error message:
    "Cannot extract the embedded font 'RNUQGV+MSPGothic-WinCharSetFFFF-H'"
      Some characters may not display or print correctly.
    We create the file with MS Word, and in word we have no problems. It is only after using PDF-Server to create the files does this become a problem. Other Japanese fonts do no seem to have this issue.
    Any help would be greatly appreciated.
    thanks in advance
    SB

    Hello,
    After editing a document in Japanese, some characters will not show up. Normally i would attribute this to a missing font pack, but after reinstalling the Japanese font pack on the computer, we strill get the error message:
    "Cannot extract the embedded font 'RNUQGV+MSPGothic-WinCharSetFFFF-H'"
      Some characters may not display or print correctly.
    We create the file with MS Word, and in word we have no problems. It is only after using PDF-Server to create the files does this become a problem. Other Japanese fonts do no seem to have this issue.
    Any help would be greatly appreciated.
    thanks in advance
    SB

  • 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.

  • Export to PDF error with embedded font

    Hello,
    i have added a Barcode font to a report and it is failing to export to PDF now saying it that the "font is not allowed to be embedded in document".  i have tried with two different Barcode fonts A39W and C39W and both fail.
    I have looked at forums which suggested downloading patches and updating the registry key ForceLargerFonts to 1, however this has not worked in either V9, V10 or V11.
    Can anyone help??
    Many thanks,
    Hugh

    Hi there,
    I'm experiencing the same problem, except with the
    Frutiger 45 Light font. When I try to export the report from Crystal Preview to PDF I get the error,
    ++++++++++
    Failed to export the report.
    Frutiger 45 Light - Font is not allowed to be embedded in document.
    +++++++++++
    I'm using CR Developer, Full, version 11.0.0.1282
    I've checked in Windows XP and can see the font (a ttf) present with the other fonts installed on my PC in the Fonts folder accessed via the Control Panel in Windows. I can right-click on the font Frutiger 45 Light and see the Properties page for the Font. For all the Groups/Users I can see all the Permissions enabled except for Special Permissions.
    I dont know what you mean by getting the security changed from the supplier of the font to allow embedding into the PDF?
    My colleague was able to perform the same export from Crystal to PDF on his laptop, but it was an older laptop. So there must be a difference between the way our laptops are configured that is causing the problem. The version of CR is the same on both laptops the only obvious difference we can see is that the older laptop has Adobe version 6 installed and the new laptop has Adobe version 7, both machines have Distiller installed. He's now got an upgraded laptop and is getting the same error as I am.
    Any help here would be much appreciated.
    Regards
    Robert.
    Edited by: robert stannard on Dec 1, 2008 2:50 PM

  • 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

  • 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

  • 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.

  • Using duplicateMovie( ) on movieClips with embedded fonts

    If I have a SWF with an embedded font, say all of Times New
    Roman, and I use duplicateMovie( ) to make another copy of it at
    runtime, is the Font Data duplicated as well, or is Flash smart
    enough to just keep one copy of the font data ??
    Thanks!

    Anyone have any ideas on this? --

  • Problem with embedded fonts

    Downloading pdf files from the web.
    Cannot extract the embedded font - does not display properly, does not print. Also sometimes get out of memory

    The wording extract is a question. Are you trying to copy the information? That may not be possible and may also be done on purpose by your bank or other company so that you can not copy the information. With Reader there is not much you can do. Either is displays correctly or not. The only option you have is to find the font, download it, and install it. Unfortunately, it may be difficult to find the correct font as many fonts have the same names, but are not compatible.
    So apparently these PDFs are being sent to you by these companies. Do they appear correct when viewing them in Reader? If so, you can probably print them by printing as a graphic.

Maybe you are looking for

  • SD Document Flow is not been Updated

    Hi, I am using MB_CREATE_GOODS_MOVEMENT and MB_POST_GOODS_MOVEMENT to create Goods Movement. These FMs create the Material Document, but they don't update the Delivery flow. Manuaaly goods issue is done through VL02N and it updates the document flow.

  • Repeating frame with no rows returned messing up display

    I have a repeating frame nested within a frame among other items. When there are no rows returned for the repeating frame query, the report is shifting all the objects below the repeating frame upward in the page. How do I get the space held by the r

  • Row-level security(VPD) problem

    Hi, ADF BC, Jdeveloper 11.1.1.3.0 We want to implement Row-level security in ADF by VPD, and do following: 1, create VPD policy according to the following sample http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/10g/r2/prod/security/vpd/vp

  • [Solved]Failed to start Load Kernel Modules

    When I boot up Arch it says that it Failed to start Load Kernel Modules and when I get into my Desktop, the screen is tearing. Using the latest kernel with i3wm my systemctl status systemd-modules-load ● systemd-modules-load.service - Load Kernel Mod

  • Script to Analyze multiple schemas at same time

    Hi Guys, I'm looking for a script by which I can analyze (estimate 25%) multiple schemas (In Oracle 9i Database) at same time. I know we can use dbms_utility but do not know, how to use for multiple schemas (around 60 schemas). I appreciate your coop