1081 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $500,000+ on Envato Market
  • Has been part of the Envato Community for over 6 years
  • Has referred 500+ members
+9 more
damojo says

Im trying to tell a library font to only use a specific set of special characters to cut down the published filesize.

Here is what I did:

1. Added font to library, create actionscript linkage.
2. Created font object and assigned to text format (embedFonts is true)
3. Created a dynamic text field on the stage and selected the library font as the font type.
4. Embedded characters into the textfield.

The font is displayed correctly and special characters work but not just the ones I specified. Flash seems to always embed all characters.

Anything that comes to mind? :)

I know that compile-time font embedding with flex is possible but this is not very convenient for activeden buyers :(

1677 posts Envato Elite Author
  • Has referred 10+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+6 more
Tean says

If you have dynamic textifield on the stage you just need to embed characters in the properties panel for a font to be embeded.

And you can externally embed just the characters you want with Flash CS4 :

http://www.gotoandlearn.com/ Runtime Font Loading

http://www.adobe.com/devnet/flash/articles/embed_metadata_04.html

1081 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $500,000+ on Envato Market
  • Has been part of the Envato Community for over 6 years
  • Has referred 500+ members
+9 more
damojo says
If you have dynamic textifield on the stage you just need to embed characters in the properties panel for a font to be embeded.

And you can externally embed just the characters you want with Flash CS4 :

http://www.gotoandlearn.com/ Runtime Font Loading

http://www.adobe.com/devnet/flash/articles/embed_metadata_04.html

Well, I know about the embed button :P Meh… cs4 :( Won’t upgrade until cs5 comes out.

Guess I’ll find another way then thanks!

1161 posts
  • Has referred 10+ members
  • Has sold $40,000+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Had an item featured in an Envato Bundle
+4 more
FlashTang says

cut down the published filesize
Create an external swf , put textifield (embeded font) in a MovieClip ,how many fonts you need … create how many clips , and then load external swf for using it’s library , or if font size is huge …”one font one swf” , just an idea ;)

8271 posts Community Moderator
  • Has referred 10+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Attended one of our Meetups around the world
+9 more
MSFX Moderator says

yeah runtime font loading / embedding is the way to go :)

1677 posts Envato Elite Author
  • Has referred 10+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+6 more
Tean says
If you have dynamic textifield on the stage you just need to embed characters in the properties panel for a font to be embeded.

And you can externally embed just the characters you want with Flash CS4 :

http://www.gotoandlearn.com/ Runtime Font Loading

http://www.adobe.com/devnet/flash/articles/embed_metadata_04.html

Well, I know about the embed button :P Meh… cs4 :( Won’t upgrade until cs5 comes out.

Guess I’ll find another way then thanks!

I know you know about the embed button, but why are you putting font in the library when you have a dynamic textfield on stage?

If you have a dynamic textfiled on stage you embed the font through the properties panel and just the characters you selected will be embeded.

As soon as you put a font in the library flash will embed the whole font.

1081 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $500,000+ on Envato Market
  • Has been part of the Envato Community for over 6 years
  • Has referred 500+ members
+9 more
damojo says
If you have dynamic textifield on the stage you just need to embed characters in the properties panel for a font to be embeded.

And you can externally embed just the characters you want with Flash CS4 :

http://www.gotoandlearn.com/ Runtime Font Loading

http://www.adobe.com/devnet/flash/articles/embed_metadata_04.html

Well, I know about the embed button :P Meh… cs4 :( Won’t upgrade until cs5 comes out.

Guess I’ll find another way then thanks!

I know you know about the embed button, but why are you putting font in the library when you have a dynamic textfield on stage?

If you have a dynamic textfiled on stage you embed the font through the properties panel and just the characters you selected will be embeded.

As soon as you put a font in the library flash will embed the whole font.

Im using a generated textfield and a library font… But I just noticed that Im simply stupid :)
Found a solution… thread can be closed thanks for your help!

1677 posts Envato Elite Author
  • Has referred 10+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+6 more
Tean says

(I thought from your first post that you created dynamic textifled manually on the stage)

offtopic:

just saw last month top sellers list, congrats on overtaking DS :D

1081 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $500,000+ on Envato Market
  • Has been part of the Envato Community for over 6 years
  • Has referred 500+ members
+9 more
damojo says
(I thought from your first post that you created dynamic textifled manually on the stage)

offtopic:

just saw last month top sellers list, congrats on overtaking DS :D

Thanks! Well, DS hasn’t uploaded anything big in a while. I guess he is also preparing for the transition to as3.

As2 is still going strong… but Im uploading my first as3 file today which took me 3 weeks to develop :D (its quite different than as2)

189 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 1+ members
  • Located in Australia
  • Has sold $10,000+ on Envato Market
+3 more
mbudm says

I always found it really odd that in CS3 Adobe restricted font symbols to just automatically adding the Latin 1 character set. With no option to select character sets like you can with stage textfields. I mean why bother developing the alternate font embedding approach at all if you’re gonna make it unusable for half the dev population that don’t reside in the Eurozone…?

I bet there was a meeting once that went on too long and the committee overruled the voices of reason. Ah how I don’t miss working in a big corporation.

by
by
by
by
by
by