Shared Fonts
Hey i have a doubt about the shared fonts method!!!! If i load a text file in a flash movie and the user does not have my specified font it will default to some other font right!!!!! but if create a shared font and load the font from there will this solve it??? thanks in advance
FlashKit > Flash Help > Flash MX
Posted on: 08-25-2002, 01:20 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Shared Fonts SOS
Hello
Can anybody point me in the direction of a current (flash 8), comprehensive tutorial on using shared fonts. All I seem to be able to find are things related to mx, and they atre patchy at best.
I'm dying here, please help me out.
Shared Fonts :/
t may be an old issue for most of you, but since its my first heavily optmized movie, its the first time I´m facing this concept of shared font, however I´ve got stuck with this and I really need some help!
Here´s how I´m doing it:
I created a fonts.swf shared library with 3 font symbols, all exported for runtime sharing and the url set to "files/library/fonts.swf"
My project has many "forms" (each form is a external swf) swf that are loaded at runtime. For each of these fla´s, I´ve imported these font symbols in their library, and set the import url to "files/library/fonts.swf".
*all* swf run in the context of Main.swf as all the subforms are loaded into it (which has the files/library/fonts.swf visibility)
In the main.swf which has the main preloader, I then load the fonts.swf shared library into an empy movie clip in the stage, when the fonts.swf is all loaded, I proceed with the loading of the ApplicationForm.swf file.
However, even though the fonts.swf is loaded into the player and all the swf´s that use the font symbols seem to have been setup correctly, I can´t get it to work, couldn´t use the fonts in the swfs... I´ve searched around for this question and it seems that it is indeed an old issue, but I really would like to keep this workflow unless it´s just too wrong to work!
Thanks in advance,
Marcelo.
Shared Fonts
I have several websites that use a trigger to trigger the load of
shared fonts before going on to load the main menu. The problem is
that flash does not wait like it should for the shared fonts to load
before going onto the main menu. Has this been fixed in flash cs3? I
tried searching the adobe site without success and I have not purchased
the update yet.
in main fla frame one is a loadclip trigger and preloader. trigger
has the embeded fonts from the shared library. in main fla frame 10 is
loadclip main menu. flash should finish loading trigger and shared
library before going on to frame 10 and it doesn't.
thanks,
charlie-imac
My Shared Fonts Look Like Ass
ive made a shared fonts file, because i will have several flash movies all using the same fonts. everything seems to work in the sense that the correct fonts from my external "fonts.swf" file appear on Publish... but the letterspacing is pretty terrible.
i tried changing the font that displays in flash before you publish to no avail. can this be fixed? if the spacing is going to be this crappy i will just have to drop the whole shared fonts idea and let the files be a bit bigger. its not acceptable looking.
anybody else ever have this problem?
Fonts And Shared Library
i would like to share fonts ...
but i don t know how to build a shared library ..
how do you do this ?
Adventures With Shared Fonts
I am trying to change the fonts in some files from embedded fonts to library fonts.
Anway - as I have not done a shared font library before, I make a font library and test it by creating a new file, I drag a font icon into the new library, and the linkage works correctly.
Then I drag the font icon into the library of the file where I wish to change the embeded text to linked text. I select the text I want to change to linked text - I publish it, but now the text does not show up. I go back and make this text 'embedded' again, make a new layer and type something onto the stage using the linked font. I publish again and now neither the 'embedded' OR the linked text is visable (these both use the same font, 'basset')
So I trashed the font icon in the library - and now both of the above mentioned text layers are visable when I republish the file.
Also, the name I gave the linked text which I trashed, (which is " -title-basset") mysteriously remains in the drop down text menus, but now it looks like this: "
( -title-basset* ) System Default Font"
Even though I renamed the basset font, does it still, for some reason confilct with the embedded basset font? Also, why,after trashing the font icon, is it labled in the text menus as a 'system default font', and what does that mean?
Thank you!
Shared Fonts & Preloaders
I have a site with lots of seperate swfs which share the same fonts, so I thought I'd use a font library.
Only problem, the fonts take a long time to load - so I thought the best solution would be to load the fonts into my opening splash page - which has a preloader on it, and get it all over with there.
However, I can't figure out how to get the font library to cooperate with the preloader.
I did various searches trying to figure out why this isn't working - I came up with what seems like a possible fix in a file Old Newbie has posted to a lot of people who have problems preloading various shared assets: (http://odin.prohosting.com/~oldnew/...ing/preload.htm).
I can't seem to get this to work with the shared fonts, though...
Is there a way to get the shared fonts to work with Old Newbie's sound solution, or another way someone could suggest?
Shared Fonts, Only Some Chars
i have a swf file which reads in an xml file and then attaches n instances of a button, this button is a movieClip in the library and with a dynamic textfield. this textfield is filled depending on the xml that is read in. this xml file also contains function names and params.
the textField uses a shared font ( Century Gothic Bold ) that i have just simply dragged into the lib of my swf.
i then create an empty movieClip and load the swf that contains the shared font, into that and check:
code:
if( fontClip.getBytesLoaded( ) >= fontClip.getBytesTotal( ) && fontClip.getBytesLoaded( ) != 0 )
in an onEnterFrame loop, when this is true (ie the font lib is loaded), i call my loadXML function, which does the above.
this attaches the movieClips and fills the textFields.
THE PROBLEM:
the problem is that when the textFields are populated, they only display certain characters ( numbers 0-9, a,p,e,g,s ). these chars are displayed consistently, and back to back.
what i mean is that if i have the "Chapter 1", in the xml file, it displays as "ape 1" and not " ap e 1", this is the same for Chapter 2 ... Chapter n.
Once i rollover the these movieclips ( onRollOver( ) gotoAndStop(2 ) ) the text appears correctly.
i know the reason for this is that the font is not fully loaded, because if i use getTimer in a loop and give it 5 seconds before i call loadXML() instead of checking if the fontLib is loaded, it works fine.
Obviously i can not use this method as this would mean someone over a T1 connection would have to wait 5 secs just to view a menu.
Any help or suggestions would be appreciated.
cheers
d
Shared Embedded Fonts
Hi all,
I am facing problems when I try to change embedded fonts dynamically for a text field. Say, if there are 3 types of embedded fonts shared in a separate file and I have access to them, by having them linked, by setting its "import for runtime sharing" option in the destination movie.
This works OK if they are applied to text already displayed on stage. Supposing I try to change the font ( embedded ) at runtime to another font type for a text field, it does not work.. I need to have this implemented as I cannot have all the 3 types of fonts embedded in every movie that I use..
Please help..( I am using MX 2004 Prof. updated 7.2 )
Thanks,
RamFlash
Components And Shared Fonts
decided to use an accordion in a recent project and can't get shared
fonts to show up in the accordion headers. I have the shared fonts
successfully showing in dynamic text fields, but nada in the
component. The only way I could originally get the fonts to embed in
the accordion at all was to set the styles globally like this...
_global.styles.Accordion.setStyle("embedFonts", true);
_global.styles.Accordion.setStyle("fontFamily", "Conduit ITC Bold");
...and set the font to export in the same movie as the accordion. But
if I try to plug in the shared font ID like this...
_global.styles.Accordion.setStyle("embedFonts", true);
_global.styles.Accordion.setStyle("fontFamily", "conduit_bold_imported*");
I get nothing. Found something on the live docs about
createTextField's issues with run-time shared fonts:
http://livedocs.macromedia.com/flash.../00001492.html
/*
mspres said on Mar 17, 2005 at 5:52 PM :
When using run-time shared fonts, if the assetUser swf contains a
dynamic textfield on the stage at the time of or anytime prior to
calling createTextField, the newly created textfield will not render
text of the same typeface as that specified by the linkage identifier
in the design-time textfield. This is because the design-time
textfield's format object's shared font overwrites the specified
linkage identifier, with the actual font name. For example:
Your design-time static text field uses a shared font "body_p". As
soon as this textfield is rendered, "body_p" is no longer accessible
via code. However, the font is still accessible by code if instead you
use the original font name instead of the identifier when formatting
your code created textfield.
*/
tried it out and found it to be true for dynamically created
textfields, tried the same treatment on the accordion but still nada!
I found this post which describes a similar problem:
http://www.flashkit.com/board/showthread.php?t=573631
in which oldnewbie mentions editing the Flabel component... not sure if this would also work for the accordion, and if so, how do I get to it in the library?
Shared Fonts Via Assets.swf
I have 3 swf's in total, "font-library.swf" , "assets.swf" and "templates.swf".
font-library.swf contains 3 fonts, defined as shared library items.
assets.swf contains the assets, including linkage to the font-library items (I dragged these into the library window, and set the url)
templates.swf loads assets.swf into a targetMC, where it deploys the assets on the stage, as below:
buildLandingPage = function() {
this = page.landingPage;
with(this) {
this.attachMovie("bg", "bg", 0);
this.attachMovie("anim", "anim", 1);
this.attachMovie("txtDecor", "txtDecor",2);
this.txtDecor._x=171;
this.txtDecor._y=199;
this.createTextField("fieldHdLogical",3,0,137,352, 27);
with(this.fieldHdLogical) {
selectable = true;
embedFonts = false;
html = false;
autoSize = true;
multiline = false;
wordWrap = true;
border = false;
text="logical header text";
}
var t = new TextFormat();
t.color= 0xFFFFFF;
t.align= "center";
t.font = "Snell";
t.size = 11;
this.fieldHdLogical.setTextFormat(t);
}
My problem is I cannot display the text using my shared fonts. I have tried putting a textfield on the stage in the assets movie, as well as in the templates movie, then selecting the linked font from the fontlist (with the asterisk*), but nothing seems to work.
If anyone is up on the black art of shared fonts, please help!
Shared Fonts Via Aseets.swf
I have 3 swf's in total, "font-library.swf" , "assets.swf" and "templates.swf".
font-library.swf contains 3 fonts, defined as shared library items.
assets.swf contains the assets, including linkage to the font-library items (I dragged these into the library window, and set the url)
templates.swf loads assets.swf into a targetMC, where it deploys the assets on the stage, as below:
ActionScript Code:
buildLandingPage = function() {
this = page.landingPage;
with(this) {
this.attachMovie("bg", "bg", 0);
this.attachMovie("anim", "anim", 1);
this.attachMovie("txtDecor", "txtDecor",2);
this.txtDecor._x=171;
this.txtDecor._y=199;
this.createTextField("fieldHdLogical",3,0,137,352,27);
with(this.fieldHdLogical) {
selectable = true;
embedFonts = false;
html = false;
autoSize = true;
multiline = false;
wordWrap = true;
border = false;
text="logical header text";
}
var t = new TextFormat();
t.color= 0xFFFFFF;
t.align= "center";
t.font = "Snell";
t.size = 11;
this.fieldHdLogical.setTextFormat(t);
}
My problem is I cannot display the text using my shared fonts. I have tried putting a textfield on the stage in the assets movie, as well as in the templates movie, then selecting the linked font from the fontlist (with the asterisk*), but nothing seems to work.
If anyone is up on the black art of shared fonts, please help!
thanks
Tom
Shared Fonts Character Set
Hi all,
I've got a big problem with font handling in flash. I'm currently developing a international multilingual site.
I'm using shared fonts to be able to load different font-files for different languages.
My problem is how to create font files with different character sets?
If I create a font symbol in the library and assign a Class to the symbol and check Export for ActionScript it works fine for Latin1 ( I think it's Latin1 ).
I can see in the size report that the correct characters are exported.
Now let's say I wanted to export a file with Thai characters. If I add a dynamic textfield on stage, set font to my font-symbol in the library and embed Thai characters and export I still get Latin1 characters.
If I then uncheck Export for ActionScript end export I get the correct characters. The problem is that if I dont have any Class tied to the font I cant access it in my FontManager class. My FontManager loads and registers the fonts available to the app. I then query the FontManager for the "bold" font or "regular" etc etc.
For this to work need a reference to the class to be able to get the properties of the font, fontName, fontStyle and fontType. I also have to register the font class with Font.registerFont( Class );
I've even tried to change system language om my computer without luck.
Any ideas anyone?
Edited: 03/28/2008 at 06:32:13 AM by motti_me_flask
Using Fonts In Shared Libraries Help
Hi there! Was wondering if anyone can help me.
I was wanting to use a font in a shared library. I know how to create the font symbols in a shared library. but i dont know how to properly use them. whenever i keep trying it doesn't work. Was hoping someone could tell me how to use them so that i can see where i'm going wrong.
Can anyone help??????????
Fonts In A Shared Library
I have standard 07_53 in a seperate file I'm using to store shared assets. When I import the pixel font into another file and use it in a dynamic html text box it always looks blurry. Besides the obvious "is the mc/text box on whole pixels, aliasing turned off, etc." I've also selected Bit-map text when adding the font to the library.
Any one know of something I could be missing/not doing? thanks.
Linking Shared Fonts
Is there a way to Link shared font with actionscript on Runtime. So I could load them on demand from a selection of multiply fonts?
SD
Flash Shared Fonts MAC/PC
Guys...I'm working on a large project with a team of developers and we're using a shared library to keep our file sizes down. As of now the SL which only contains the Fonts Verdana, DIN Mittleschrift Std, and TradeGothic, have been published from a MAC.
When I open up the Fla on my PC, I am promted to map the fonts that are named different on the MAC. That's pretty standard. From there everything seems fine. What i do next is publish the document and WOW all my embeded fonts go crazy.
First off, the fonts look like the correct font however they display all the wrong charcters. So on my PC i opened the SL.fla and republished the swf. This time when i published my movie the fonts displayed the correct charcters. I know this is long winded but does anyone out there know the solution for useing SFL between a MAC and PC so that we can continue using a single file to share fonts from?
Dynamic Shared Fonts
I am generating a text box with as and populating it with a particular font based on a variable.
My question is ... is it possible to load a shared font instead of embeding all the fonts directly in the movie. Also I am publishing to the 7 player.
heres my code as well:
ActionScript Code:
var my_fmt:TextFormat = new TextFormat();
my_fmt.font = type; /* this is the LinkageID not the symbol name. */
my_fmt.size = size1;
my_fmt.bold = true;
this.createTextField("new_txt", 2, 75, A, 350, 60);
new_txt.html = true;
new_txt.htmlText = color1
new_txt.setNewTextFormat(my_fmt);
new_txt.autoSize = true;
new_txt.embedFonts = true;
new_txt.text = store_name;
Using Shared Fonts With ActionScript
I haven't really dabbled with shared assets before, but basically what I want to achieve is this:
I have a main interface movie, into which I load a variety of different swfs. Some of those swfs have text fields, into which I will load XML data. Now, back in my main interface, I have a neat little function which formats the xml data into html, complete with font changes. The problem is that I would have to embed all necessary fonts into each swf.
How can I make the fonts embedded in the main movie available to loaded swfs?
Any help would be GREATLY appreciated.
Tom
Shared Fonts, Only Some Chars
i have a swf file which reads in an xml file and then attaches n instances of a button, this button is a movieClip in the library and with a dynamic textfield. this textfield is filled depending on the xml that is read in. this xml file also contains function names and params.
the textField uses a shared font ( Century Gothic Bold ) that i have just simply dragged into the lib of my swf.
i then create an empty movieClip and load the swf that contains the shared font, into that and check:
code:
if( fontClip.getBytesLoaded( ) >= fontClip.getBytesTotal( ) && fontClip.getBytesLoaded( ) != 0 )
in an onEnterFrame loop, when this is true (ie the font lib is loaded), i call my loadXML function, which does the above.
this attaches the movieClips and fills the textFields.
THE PROBLEM:
the problem is that when the textFields are populated, they only display certain characters ( numbers 0-9, a,p,e,g,s ). these chars are displayed consistently, and back to back.
what i mean is that if i have the "Chapter 1", in the xml file, it displays as "ape 1" and not " ap e 1", this is the same for Chapter 2 ... Chapter n.
Once i rollover the these movieclips ( onRollOver( ) gotoAndStop(2 ) ) the text appears correctly.
i know the reason for this is that the font is not fully loaded, because if i use getTimer in a loop and give it 5 seconds before i call loadXML() instead of checking if the fontLib is loaded, it works fine.
Obviously i can not use this method as this would mean someone over a T1 connection would have to wait 5 secs just to view a menu.
Any help or suggestions would be appreciated.
cheers
d
Connecting Shared Library Fonts
hi,
have created an input textfield with the createTextField command in a LIB.swf.
i use the mc with the textfield in it as a "shared library object" in "main movie".
everthing works fine except the fact that the font is embeded in the "main movie". i want the font just to be connected to the shared library.
no font symbol is visible in "main movie".
can anybody help?
Slap In The Face, Shared Lib + Fonts
Ok i finally figured out how to use shared libraries and fonts but I felt like i've been slaped in the face.
When adding a font to the lib (or just flash for that matter) you can only have one type of font, ie(Normal, Bold, Italic, Bold-Italic).
So when you change a text Field to that font that is in your local library or in a shared library it will only retain that type and will not show Bold, Italic or Bold-Italic characters.
The only way i know how to get the features i want would be to create a font for each and every Font+ Type. So
Font1
Font1Bold
Font1Italic
Font1BoldItalic
But then the Format.Bold will not work. When bolding Text i'll actually have to change the font of the text rather than just making it Bold.
This seems like running up hill to me. Anyone know of a good solution to this?
-Dice
Css'd Textfields With Multiple Shared Fonts
I'm currently working on a project, where we've created swfs for each font we need embedding, and import them for runtime sharing. This works fine to actually embed the fonts, but by styling the textfield with external css, it doesn't seem possible to have more than one font in each textfield.
In the following xml snippet, you can see that different words for the line, have different styles. £1500, is blue, Interest free is black, and overdraft is green. But these also need to be Different fonts ie. NewsGothicBT Bold, NewsGothic BT Roman, and NewsGothicBT Demi, respectively.
Code:
<span class='overdraftAmount'>£1,500 </span><span class='overdraftInterest'>interest-free</span><br><span class='overdraft'>overdraft</span>
Does anyone know if it is possible to achieve this?
With the fonts embedded as I outlined previously, surely they should be available for the css to implement?
Is there a better way of doing this perhaps?
Thanks in advance for your time.
Shared Fonts Loading Problem
I keep reading about shared fonts and making a preloader for them and such...
I did that and my movie loaded the shared library twice: once for the preloader and again for the main swf.
Apparently, loading the main swf alone loads the shared fonts, HOWEVER it won't show a preloader even if I instruct the classes to load after 2 frame on my preloader scene. It always loads the fonts first (I can see it watching the activity window in Safari browser).
Any advice appreciated as this is the bottleneck in my project and it's making me crazy!
Embedded Fonts As Shared Libraries?
I searched the archives and could not find this particular issue addressed and was hoping someone has tried this and has it working.
Is it possible to embed a font on the main timeline of a movie (either in the library or on the stage via a dummy textfield) and have external movies that are loaded in access those fonts via a shared library?
I have tried a few different approaches but nothing has worked so far. I have 180 different pages I am developing for a client and it seems ludicrous to have to have a font embedded in each .swf. The files before the font are only 4kb and afterward 38-50kb.
Any help suggestions would much appreciated.
broD
Css/shared Fonts Preloading Problems
i now have my flash file reading in an embedded font, using a style sheet, and also using external text.
it all works fine locally on my machine, but when online on a slow connection stops displaying the text.
i've tried preloading the embedded font (as its in a separate swf) but without any luck. i'm not really sure how i can preload the .swf (the shared font), .css and the .txt files???
any help would be extremely good
Components And Shared Fonts Question
i have a dynamic text field which i want to be able to change the font using shared/embedded fonts with a combo box
i have everything set up but when i select a font using the combo box flash cant seem find the font even though i set the font up for run time sharing and assigned it a linkage name
Css/shared Fonts Preloading Problems
i now have my flash file reading in an embedded font, using a style sheet, and also using external text.
it all works fine locally on my machine, but when online on a slow connection stops displaying the text.
i've tried preloading the embedded font (as its in a separate swf) but without any luck. i'm not really sure how i can preload the .swf (the shared font), .css and the .txt files???
any help would be extremely good
Dynamic TextFields And Shared Fonts
I read at the Macromedia website that there's really an issue regarding the shared fonts in Dynamic Textfields. If you tried it like me , you won't be able to render your text with the shared font.
Now, I've this website that's built all in Flash and every section is a different flash movie. My question is, what good techniques can I use to stop loading over the same font in every different flash movie?? This is really adding to the final size of the movies and it all summed up in the different movies, its taking me some extra 100-200k!!! That's a LOT!
Is It Possible To Load A Movie That Has Shared Fonts?
I have a problem with loading a movie on a file that has a shared font. The text doesn't display at all. The font's are embedded.
The parent uses the same shared font and it show up fine. Is it a loading problem?
I'll post a small example of loading a movie at
http://websiteprogrammin.com/myshared_libraries.zip
Thanks
Pat
ideas@websiteprogrammin.com
http://websiteprogrammin.com/wsp/index.h...
[AS2] Using Shared Libraries For Dynamic Fonts
Ok here is the problem i have made a custom comb box and the user selects the font they want to use (its like an admin panel) and then a dyanmic text box below will display the string "The cat jumped over the lazy dog" in the font selected. You can view what i have got so far here:
http://www.nineminds.com/php/store/f...n%20panel.html
I am using shared fonts in the above swf after following the tutorial at:
http://www.macromedia.com/support/fl...haredfonts.htm
However i cant figure out how to get it to work when the font type isnt determined at the start (defined in the textbox at the beginning)
TY in advance
Mark
Embeded Fonts And Shared/linked Libraries
I have movie A that has 5 embeded fonts.
Works great within itself.
The font symbols in the library have all the export options on and the linked URL to itself.
I have movie B that I copied the embeded font symbols from movie A's library into.
The copied symbols have the import link option on and the URL to movie A.
However, movie B's fonts do not show up.
Any suggestions? Using the Macromedia help, I followed all the instructions. (Flash MX)
Thanks!
Liam
Embeded Fonts And Shared/linked Libraries
I have movie A that has 5 embeded fonts.
Works great within itself.
The font symbols in the library have all the export options on and the linked URL to itself.
I have movie B that I copied the embeded font symbols from movie A's library into.
The copied symbols have the import link option on and the URL to movie A.
However, movie B's fonts do not show up.
Any suggestions? Using the Macromedia help, I followed all the instructions. (Flash MX)
Thanks!
Liam
Embeded Fonts And Shared/linked Libraries
I have movie A that has 5 embeded fonts.
Works great within itself.
The font symbols in the library have all the export options on and the linked URL to itself.
I have movie B that I copied the embeded font symbols from movie A's library into.
The copied symbols have the import link option on and the URL to movie A.
However, movie B's fonts do not show up.
Any suggestions? Using the Macromedia help, I followed all the instructions. (Flash MX)
Thanks!
Liam
Css/shared Fonts Preloading Problems Mx04
i now have my flash file reading in an embedded font, using a style sheet, and also using external text.
it all works fine locally on my machine, but when online on a slow connection stops displaying the text.
i've tried preloading the embedded font (as its in a separate swf) but without any luck. i'm not really sure how i can preload the .swf (the shared font), .css and the .txt files???
any help would be extremely good
Dynamic Text, Masks, And Shared Fonts
I'm having a problem with using dynamic text fields with layer masks.
Basically I'm try to have a gradiant on a dynamic text string. So the text is my mask, and the gradiant is my base layer.
I realize that I have to embed the font. When I embed the font, it works. However, I want to seperate the font into an external font library so that I can use the font in multiple swf's. As soon as I externalize the embedded font into a shared font library, the layer mask stops working.
Question: Can I use layer masks on dynamic text fields while using a shared font library? If so... how? Thanks a bunch.
-Mike
Use Shared Library Fonts...items Disapear
I have a shared library. When I bring those fonts into another library, the movie no longer works. Now the shared library is triggered in a master file, and you do get an "can't find fonts" error message, but I wouldn't see why at least the TextInput boxes would no longer exist. It doesn't show when the master file is published either.
I inserted the shared library and the contact fla. Now if you just test the movie clip. It works, but once you add the shared library fonts it no longer works. Do you know whats wrong? The fonts are Libel Suit and Arial.
contact page YOU NEED TO ADD THE SHARED LIBRARY FONTS TO THIS LIBRARY TO SEE THE "BEFORE" and "AFTER".
Shared Library
http://www.1001freefonts.com/fonts/lfonts2.htm for d/l of Libel font if necessary
-Thanks
Problem With Shared Fonts + Dynamic Textfield
hello all,
I'm having this problem with shared fonts: when I try to change the text in the dynamic textfield which uses a font with import linkage from a different file, the textfield's text suddenly goes blank.
I'v attached a set of fla files (flash8) which I think it would be easier for you to understand the problem. There are two files: fonts.swf and font_test.swf.
The fonts.swf has Arial embeded with just Upper and Lower cases. font_text.swf has a font symbol named 'Arial', which is a font symbol with import linkage from fonts.swf, and a mc which is used as a button. When running, fonts_test.swf shows a input textfield and a button. First, try changing the text after selecting the textfield and then pressing the 'change text' button: everything seems to work fine. After that, try running the swf again, and this time, without manipulating the input text, just click on the 'change text' button. The textfield suddenly goes blank, and it is not selectable nor typable.
Please let me know if this problem has a solution to it. Thank you.
MX Shared Fonts & Dynamic Text Problem
Hi,
I have a project for which the user can edit/type text and choose a font from a set of my choice (about 50 fonts), not those device fonts installed on his computer.
To limit the size of the main SWF and avoid unnecessary download, I thought I could use shared fonts with each font in a separate file.
I tried following the instructions in http://www.macromedia.com/support/fl...haredfonts.htm
But it doesn't work. Indeed it instructs to check the "Export for ActionScript" whereas, I guess it should read "Export for runtime sharing". I found this by myself ;-)
I then searched the web and found these instructions
http://www.waxpraxis.org/archives/000062.html
Are these instructions correct ?
Do I really have to do all that workaround to "simply" use shared fonts in dynamic & edit text ?
Anyway, that won't solve my pb since it instruct to preload all sharing fonts before one can actually think of maybe using them ;-) That would mean downloading hundreds of KB, too much for the average user with a regular 56Kbit modem.
Has MM fixed their numerous bugs related to this issue in the meantime ?
Or am I wasting my time with Flash MX and should I go with Adobe SVG, which perfectly manages shared fonts ? ;-) ;-) ;-)
Please help.
Jean-christophe
IPA Unicode Text In Flash Through Shared Fonts
hi
Can any one tell how to access IPA unicode text from xml file .
I use shared object concept in flash cs3 but still i can acess text of "02A4" this hexadecimal values you can read view IPA text from http://www.phon.ucl.ac.uk/home/wells/ipa-unicode.htm site. I use Charis SIL font but in flash when text is static its work ok but when the text font is used from shared fonts not able to see text and still embeded fonts not work. Can any one have kowlege Plz help
thanks
vivek
Shared Library Embed Fonts NOT WORKING
Hi there!
I wanted to separate my embedded fonts to save filesize, so i've put them into sharedLib.SWF, and then preloaded sharedLib.SWF into flash using another SWF so that i could use these fonts further in multiple FLAs, without consuming additional bandwidth. I followed one tutorial, and checked out many different ones, to see if this issue occured to somebody else too. I had no luck finding the solution. Furthermore, i want to embed these fonts into AS-created textfields using AS.
ISSUE:
To embed preloaded fonts (there are 4 of them), i used this code:
Code:
var nNum:Number = 0;
// test of TF textFormatting:
for(var i:Number=0; i<2; i++){
for(var j:Number=0; j<2; j++){
this.createTextField("tf"+nNum, this.getNextHighestDepth(), 250, nNum*100+100, 200, 100);
var tf:TextField = this["tf"+nNum];
tf.autoSize = "center";
tf.selectable = false;
tf.text = "bliek";
tf.embedFonts = true;
//tf.wordWrap = false;
tf.border = true;
// create txtFormat for text
var my_fmt:TextFormat = new TextFormat();
// setTextFormat title according to nNum:
switch(nNum){
case 0: // 0
my_fmt.font = "eTahoma"; // should be unified
my_fmt.bold = false;
my_fmt.italic = false;
break;
case 1:
my_fmt.font = "eTahomaBold";
my_fmt.bold = true;
my_fmt.italic = false;
break;
case 2:
my_fmt.font = "eTahomaBoldOblique";
my_fmt.bold = true;
my_fmt.italic = true;
break;
case 3:
my_fmt.font = "eTahomaOblique";
my_fmt.bold = false;
my_fmt.italic = true;
break;
default: trace("Can't setTextFormat for TF nNum = "+nNum);
}
my_fmt.color = 0xffffff;
my_fmt.size = 20;
my_fmt.align = "center";
tf.setTextFormat(my_fmt);
nNum ++; // 0,1,2,3
}
}
Problem is, those fonts DO NOT get embedded, at all, leaving the textFields(TF) blank. Anybody, please enlighten me why is that so.
A LITTLE TRICK:
I tried to create 1 TF manually, and placed it on the Stage, setting its display text to one of the embedded texts (Tahoma*). This actually worked! And one more strange thing happened.. Three of those TFs created using actionsctript, which were before blank, were NOW also filled with correct embedded text, EXCEPT one textfield which used Tahoma text non-bold, non-italic [!?]. Now how does this happen, and why the exception, i wonder..
Please, have a look at this FLA, there you can find ALL the files needed to test it yourself.
Thank You, thank you very much.
Shared Fonts And Usage In Child Movies
Hi All,
Have not been successful in make shared fonts work across swf's .
Setup is like this
main.swf -> contains font symbol in library (made export to runtime sharing with identifier as say "fontSym"), contains a window on stage and its contentPath set to child.swf, contains a loadLib symbol in library with its export to runtime sharing set.
child.swf -> contains just a label component (using prototype of setText method , i have done embedFonts to true and fontFamily to "fontSym"
I am not able to see the label pick the font symbol in child.swf loaded in the window of main.swf .Label component placed in main.swf shows the font picked up.
Any help is appreciated.
-swami
AS-generated Text Fields And Shared Fonts
Im having problems getting shared fonts to work with AS-generated text fields. Is it even possible?
here's the code...
ActionScript Code:
var format = new TextFormat();
format.font="sharedFontName";
this.createTextField("txt",0,0,0,200,40);
txt.embedFonts=true;
txt.text="Test Text";
txt.setTextFormat(format);
Anything wrong with this picture? Thanks!
Shared Library Fonts In Dynamic Text Fields
Has the issue with the Flash 5 player been resolved? That issue being:
Can't use shared fonts (from a shared library) in Dynamic text fields.
The Macromedia site said that you can't. I was just wondering if that has changed.
Thanks!
About Fonts In Shared Library, Masking Texts And Embedding...?
hello all u good people!
i'm learning how to use shared libraries. i've placed two fonts there. in their linkage properties i have checked export for actscrpt, runtime sharing&first frame boxes and correctly stated the path to the fonts.swf. i'm a flash mx 2004 user.
so now i have this movie with tweened text masks in it. i know that in order for the text to be seen under mask it has to be embedded. so how come it only works woth one of my shared library fonts? the well-behaving font seems to be in clausals, marked as system font(..?). the other font's id name is in my list also, with a * after the id name, but without clausals. still, it won't show under the mask.
what am i doing wrong? can't i have more than one font in a shared library? or is it something else? do i still have to embed all characters separately in every dynamic text box field, even when there's no mask?
asks mar
|