[FONT=Comic Sans MS]Ok, I have to embed 53 fonts that are used in a publishing program i am working on. These are not all unknown fonts, some may actually be on the users computer, however they will only be using a few at a time. So here is my problem.[/FONT]
[FONT=Comic Sans MS][/FONT]
[FONT=Comic Sans MS]I’ve build a fontLibrary for linking to in which i added dummy text area’s which i embedded fonts to. well, needless to say, when i got to about 10 fonts, i was already at 300k and it was objvious that all 53 and i would be looking at a 2mg+ file. This would sort of be a large file to link to wouldn’t it?[/FONT]
[FONT=Comic Sans MS][/FONT]
[FONT=Comic Sans MS](i found that making a font object in the library and setting up linkage didn’t work as shown in the flash book… maybe that’s my answer, and i need to make that work?)[/FONT]
[FONT=Comic Sans MS][/FONT]
[FONT=Comic Sans MS]Next I tried creating seperate files for each font (which is ideal for me anyway, as i would only like to load them as they are needed.) and if i use _root.loadMovie i could use the font in that movie… but as i am sure anyone can guess, that also screws up the entire movie, as it takes over anything else on _root. [/FONT]
[FONT=Comic Sans MS][/FONT]
[FONT=Comic Sans MS]i tried putting the newly loaded font into a wrapper:[/FONT]
[FONT=Comic Sans MS]
[/FONT]
[FONT=Comic Sans MS]var fontLibrary = _root.createEmptyMovieClip("fontLibrary",_root.getNextHighestDepth());[/FONT]
[FONT=Comic Sans MS]var newFont = fontLigrary.createEmptyMovieClip("someWeirdFont",fontLibrary.getNextHighestDepth[FONT=Comic Sans MS][/FONT][FONT=Comic Sans MS][/FONT]());[/FONT]
[FONT=Comic Sans MS]newFont.loadVariables("someweirdfont.swf","get");[/FONT]
well that didn’t work of coarse, since any textfield that isn’t build in that same level will not find the font… but then, any textfield built on that lever would be screwy…
so i am stuck… if i import them in my library, i seem to have to put a copy on the stage, i can’t seem to use attachMovie. if i do this then they will ALL load in the first frame, which means my little 100k program will be a 2meg program. :\ i don’t know what to do. any thoughts?
[and yes, i AM using comic sans]
[FONT=Comic Sans MS][/FONT]
[FONT=Comic Sans MS][/FONT]
[FONT=Comic Sans MS][/FONT]
[FONT=Comic Sans MS][/FONT]