# No kerning on embedded fonts

**URL:** <https://forum.kirupa.com/t/no-kerning-on-embedded-fonts/313771>\
**Category:** flash\
**Created:** [September 9, 2010, 9:37am UTC](https://forum.kirupa.com/t/no-kerning-on-embedded-fonts/313771 "2010-09-09T09:37:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![eskalation\_dk](https://avatars.discourse-cdn.com/v4/letter/e/aca169/32.png) [@eskalation\_dk](https://forum.kirupa.com/u/eskalation_dk)\
**Post date:** [September 9, 2010, 9:37am UTC](https://forum.kirupa.com/t/no-kerning-on-embedded-fonts/313771/1 "2010-09-09T09:37:56Z")

</div>

Hi, im working on a site, and i am currently working on improving the fonts i import.

On a mac when i embed fonts using this code:

```auto

package fonts {
    import flash.text.Font;
    
    public class FlamaCondensed extends Font {    
        //private variables
        [Embed(source="fonts/Flama-Book.otf", fontFamily="Flama-Book", unicodeRange="U+0020-U+002F, U+0030-U+0039, U+003A-U+0040, U+0041-U+005A, U+005B-U+0060, U+0061-U+007A, U+007B-U+007E")]
        private var _flamaBookClass:Class;
        
        [Embed(source="fonts/Flama-Bold.otf", fontFamily="Flama-Bold", unicodeRange="U+0020-U+002F, U+0030-U+0039, U+003A-U+0040, U+0041-U+005A, U+005B-U+0060, U+0061-U+007A, U+007B-U+007E")]
        private var _flamaBoldClass:Class;
        
        public static const BOLD:String = "Flama-Bold";
        public static const BOOK:String = "Flama-Book";
        
        //constructor
        public function FlamaCondensed() {
            super();
            
            Font.registerFont(_flamaBoldClass);
            Font.registerFont(_flamaBookClass);
        }
    }
}

```

it works just fine but the issue is that kerning is not working. For all i know, the reason why i can’t use kerning on embedded fonts is that i am on a mac. Is it true that kerning works if the project is compiled on a PC? Is it only the font swf that has to be compiled on a PC or is it the entire swf?

I also tried the new TLF text, when i embed fonts using TLF, it works, but i read a grant skinner article on it, his views on TLF is that it is way too processor intensive, and since i just need basic text boxes, i have no need for all the extra features.

So, back to the question. Does kerning work if i compile my project on a pc instead of a mac?

(i use Flash Builder 4 if this affects anything)
