# Embedding specific font characters

**URL:** https://forum.kirupa.com/t/embedding-specific-font-characters/265130
**Category:** flash
**Created:** [July 4, 2008, 10:59am UTC](https://forum.kirupa.com/t/embedding-specific-font-characters/265130 "2008-07-04T10:59:30Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![daidai](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/daidai/32/3087_2.png) [@daidai](https://forum.kirupa.com/u/daidai)
#### Post date: [July 4, 2008, 10:59am UTC](https://forum.kirupa.com/t/embedding-specific-font-characters/265130/1 "2008-07-04T10:59:30Z")

</div>

I use this method: [http://www.adobe.com/devnet/flash/quickstart/embedding\_fonts/#section1](http://www.adobe.com/devnet/flash/quickstart/embedding_fonts/#section1) to import fonts. However there are lots of characters i wont be using, which is inefficient, but i am yet to find a way to only embed/import certain charcters using Actionscript alone…anyone know how to do it?

---

<div class="post-metadata">

### Author: ![randomagain](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@randomagain](https://forum.kirupa.com/u/randomagain)
#### Post date: [July 4, 2008, 11:27am UTC](https://forum.kirupa.com/t/embedding-specific-font-characters/265130/2 "2008-07-04T11:27:54Z")

</div>

for the sake of making my self an \*\*\*…

no there is no way of getting specific characters only

---

<div class="post-metadata">

### Author: ![Iamthejuggler](https://avatars.discourse-cdn.com/v4/letter/i/ecc23a/32.png) [@Iamthejuggler](https://forum.kirupa.com/u/Iamthejuggler)
#### Post date: [July 4, 2008, 11:41am UTC](https://forum.kirupa.com/t/embedding-specific-font-characters/265130/3 "2008-07-04T11:41:06Z")

</div>

You can in flex, but not flash i don’t think.

---

<div class="post-metadata">

### Author: ![sekasi](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@sekasi](https://forum.kirupa.com/u/sekasi)
#### Post date: [July 4, 2008, 12:50pm UTC](https://forum.kirupa.com/t/embedding-specific-font-characters/265130/4 "2008-07-04T12:50:59Z")

</div>

No, you can’t do that if you import the font to the library, which is why importing fonts to the library is more or less impossible atm in Flash.

Dynamic text fields up up and away…

---

<div class="post-metadata">

### Author: ![daidai](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/daidai/32/3087_2.png) [@daidai](https://forum.kirupa.com/u/daidai)
#### Post date: [July 4, 2008, 1:47pm UTC](https://forum.kirupa.com/t/embedding-specific-font-characters/265130/5 "2008-07-04T13:47:19Z")

</div>

what do you mean its impossible sekasi? i thought that was what i was doing?  
and are dynamic text fields better? if so, how?

---

<div class="post-metadata">

### Author: ![sekasi](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@sekasi](https://forum.kirupa.com/u/sekasi)
#### Post date: [July 4, 2008, 2:16pm UTC](https://forum.kirupa.com/t/embedding-specific-font-characters/265130/6 "2008-07-04T14:16:04Z")

</div>

You are importing the whole font, all characters. For people like me that speak a bunch of different languages and have those sets enabled, it means importing ‘verdana’ into my flash library adds 65.000 characters and like 70KB.

Not fun.

---

<div class="post-metadata">

### Author: ![daidai](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/daidai/32/3087_2.png) [@daidai](https://forum.kirupa.com/u/daidai)
#### Post date: [July 4, 2008, 4:49pm UTC](https://forum.kirupa.com/t/embedding-specific-font-characters/265130/7 "2008-07-04T16:49:07Z")

</div>

yeh ouch  
but how do dynamic text fields help?

---

<div class="post-metadata">

### Author: ![sekasi](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@sekasi](https://forum.kirupa.com/u/sekasi)
#### Post date: [July 4, 2008, 5:01pm UTC](https://forum.kirupa.com/t/embedding-specific-font-characters/265130/8 "2008-07-04T17:01:48Z")

</div>

Well, if you place a dynamic text field on the stage and select the characters you want to embed, make it a movieclip and export it as a sprite class you can use it as a textfield. Linkage with something like TextSprite and identifier name field on the textfield.

new TextSprite();  
addChild it  
TextSprite.field.text = “Moo”;

This is how I do it when I can avoid embedding the whole font… sometimes it’s impossible but most of the time you can get around it like this.

---

<div class="post-metadata">

### Author: ![Iamthejuggler](https://avatars.discourse-cdn.com/v4/letter/i/ecc23a/32.png) [@Iamthejuggler](https://forum.kirupa.com/u/Iamthejuggler)
#### Post date: [July 4, 2008, 6:03pm UTC](https://forum.kirupa.com/t/embedding-specific-font-characters/265130/9 "2008-07-04T18:03:18Z")

</div>

sucks if you use flashdevelop of course!

---

<div class="post-metadata">

### Author: ![sekasi](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@sekasi](https://forum.kirupa.com/u/sekasi)
#### Post date: [July 4, 2008, 6:18pm UTC](https://forum.kirupa.com/t/embedding-specific-font-characters/265130/10 "2008-07-04T18:18:47Z")

</div>

Doesn’t suck more than having a Flash SWF file saying ‘hello world’ weigh in at 100kb.
