Skip to main content
Known Participant
September 22, 2010
Question

Non embedded characters also show up in textarea

  • September 22, 2010
  • 1 reply
  • 1350 views

Hi - In our custom made fonts, we dont have characters like ®, present. (confirmed it by seeing the font in windows character map). But our text area allows copy pasting such characters into the textarea. We use TLF. Am not sure what font these characters get rendered in, but am pretty confident these are not present in my font.

This is how I generate my font swf.Pls guide me on what wrong am I doing or why are these fonts showing up in TLF? Let me know if you need more details.

package
{
     import flash.display.Sprite;
     import flash.system.Security;
     import flash.text.Font;
    
     public class testFont extends Sprite
     {
         Security.allowDomain("*");
         [Embed(source="/fonts/testFont.ttf", mimeType="application/x-font", fontName="testFont",
             unicodeRange="U+0020-U+007F,U+00A0-U+00A3,U+00A8-U+00AB,U+00AE,U+00B4 ,U+00B8,U+00BB,U+00BF-U+00CF,U+00D1-U+00D6,U+00D8-U+00DC,U+00DF-U+00EF ,U+00F1-U+00F6,U+00F8-U+00FC,U+00FF,U+0131,U+0152-U+0153,U+0178,U+02C6 -U+02C7,U+02DA,U+02DC-U+02DD,U+2013-U+2014,U+2018-U+201A,U+201C-U+201E ,U+2022,U+2026,U+2030,U+2039-U+203A,U+20AC,U+2122,U+FB01,U+FB02", embedAsCFF="true")]
         public static var font:Class;       
     }
}

This topic has been closed for replies.

1 reply

September 22, 2010

If there is a glyph that isn't found in the applied font, Flash Player will use a fallback font to display that glyph.

Do you not want these characters to be rendered? Can you strip out the unwanted characters after a paste?

MageshRAuthor
Known Participant
September 22, 2010

I dont want those characters to be rendered. Apart from stripping, is there any other way to do it? Because we have only embedded restricted set of characters to make sure the font swf size is less. So with this being the case, we want the users to be able to use only the embedded character set, and not render the rest of them.

Adobe Employee
September 23, 2010

There is no way to turn off the font fallback in the Player.

I'm a little curious about why you'd want to - are you trying to match some other generated output?

- robin