Mailing List
Home
Forum Home
Flash Pro
Subjects
Firework Effect
setInterval bug identified and fixed
setInterval bug identified and fixed
ScrollPane component doesn 't auto update
Help: MX 2004 How to script a print button to print the entire sli
Event Dispatcher between classes
memory management removeMovieClip /
MX2004 Dataset itemClassName
Order of events per frame
XML to Object help
Textfield prototype question
Flash and QuickTime VR
Reading and displaying RSS feeds in Flash MX
Flash MX 2004 Sucks
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash Interface with 10mb xml file
Web Service Results
Listener Object 's best practice
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
StyleSheets and embedFonts

StyleSheets and embedFonts

2004-03-10       - By Jason Hickner

 Back
Reply:     1     2     3     4     5  

Yeah, I just tested it again, just to be sure. It's key to make sure a
css style that specifies the embedded font is being applied to your
text, otherwise it will not show up.

so, for instance, if you have this in your css file:

.body {
   font-family:textfont;
   font-size:8px;
}

and you do

my_text.htmlText  = "testing...";

your textfield will be blank. however, this will work just fine:

my_text.htmlText = "<span class='body'>testing...</span>";

- Jason



John Eriksson wrote:

> Are you sure this works? Cause I couldn't get it to work... the  
> textfield is completetly blank, though
> I know the text is there. If I set embedFonts=true, it just doesn't  
> work.
> Of course it will work on my machine(if I set embedFonts=false) since
> I  have that font, but it won't
> display on those who do not have it, and even on my machine it
> doesn't  use Flashs antialiasing,
> but instead the OS default... Since I'm on OS X it does get
> antialiased  but it's obvious that it isn't
> Flashs built-in anti-aliasing, since this is much nicer :-), but
> isn't  what I want since it, as stated above,
> won't work on other peoples machines.
>
> /John
>
>
> 2004-03-11 kl. 00.01 skrev Jason Hickner:
>
>> I've gotten this to work before. What I did was to link the font for  
>> actionscript in the library, and then include the font-family tag in  
>> the stylesheet, referencing the link id.
>>
>> so, font linked in the library as "textfont"
>>
>> then, the stylesheet:
>>
>> font-family:textfont;
>>
>> - Jason
>>
>> John Eriksson wrote:
>>
>>> My client wants Flashs "antialiasing everything"-magic, but also  
>>> wants to
>>> use styleSheets for all text, which is fetched from xml.
>>>
>>> I'm not absolutely sure, but it seems as if Flash won't display ANY  
>>> text
>>> in the textField if I set .embedFonts to true AND using a
>>> styleSheet  at
>>> the same time... I want the styleSheet to use the embedded fonts,
>>> is  that
>>> possible? The styleSheet works properly, but the font seem to be a  
>>> device-font,
>>> even though I've included that same font in the .swf - both through
>>> a  dynamic
>>> text field and through the new Font Symbol in library... Anyone
>>> tried  this?
>>>
>>>
>>> Regards,
>>> John
>>>
>>>
>>> =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
>>> -
>>> Supported by Fig Leaf Software
>>> =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
>>> -
>>> Be sure to check the archives and the wiki:
>>> http://chattyfig.figleaf.com/
>>> =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
>>> -
>>> http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:106586
>>> =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
>>> -
>>> To unsubscribe send a blank e-mail to: Normal Mode:  
>>> flashcoders-unsubscribe@(protected)
>>> Digest Mode: flashcoders-digest-unsubscrive@(protected)
>>>
>>
>>
>> =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
>> Supported by Fig Leaf Software
>> =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
>> Be sure to check the archives and the wiki:
>> http://chattyfig.figleaf.com/
>> =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
>> http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:106588
>> =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
>> To unsubscribe send a blank e-mail to: Normal Mode:  
>> flashcoders-unsubscribe@(protected)
>> Digest Mode: flashcoders-digest-unsubscrive@(protected)
>>
>>
>
>
> =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
> Supported by Fig Leaf Software
> =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
> Be sure to check the archives and the wiki:
> http://chattyfig.figleaf.com/
> =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
> http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:106590
> =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
> To unsubscribe send a blank e-mail to: Normal Mode:
> flashcoders-unsubscribe@(protected)
> Digest Mode: flashcoders-digest-unsubscrive@(protected)
>


=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Supported by Fig Leaf Software
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Be sure to check the archives and the wiki:
http://chattyfig.figleaf.com/
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:106594
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)




Earn $52 per hosting referral at Lunarpages.