Yeah i understood that bit (doh).

Standard fonts have the glyphs all inside one package (bold and italic) however 
some font designers make variants of these sets. These variants are not tracked 
by the standard text formatting services (Bold keyword needs to correspond to a 
default set for bold - if someone calls it bold-condensed you are screwed).

As a result, these variants are accessed as if they are separate fonts 
(postfixed with the variant name).

[Bindable]
public var $mainFont:String = "Some Font Regular";

[Bindable]
public var $mainFontBold:String = "Some Other Font Bold";

In most cases, it is impossible to strictly adhere to one font and expect all 
glyphs to be available for all styles.

So to provide SUCH a facility, simply use one glyph set that is specific to 
bold and another for regular text.

If (obviously) the author didn't include the glyphs for the font - simply use a 
substitution (a different font).

All i was saying was that you can get around the missing glyph issue by using a 
different font and modifying the fontFamily property either in HTML (htmlText) 
of the text-box property or the style attribute...
                        
if ($fontFamily != null) $textBox.setStyle("fontFamily", $fontFamily);

Enjoy, regards and hope that clarifies..

Samuel

On Apr 3, 2010, at 11:24 PM, Mike Chang wrote:

> Oleg's right. Thanks all. 
> 
> 
> On Sat, Apr 3, 2010 at 2:06 PM, Oleg Sivokon <[email protected]> wrote:
>  
> 
> Samuel,
> 
> It was actually not me, who asked the question :)
> Besides, from what I understood from the question - the font doesn't have 
> bold face, so, you cannot embed bold characters from that font, because they 
> had never been designed by the font's author :)
> If this isn't the case, then probably my answer is worth nothing.
> 
> Best.
> 
> Oleg
> 
> 
> 




Disclaimer

_____________________________________

The information transmitted is intended only for the person or entity to which 
it is addressed

and may contain confidential and/or privileged material. Any review, 
retransmission, dissemination

or other use of, or taking of any action in reliance upon, this information by 
persons or entities

other than the intended recipient is prohibited. If you received this in error, 
please contact the

sender and delete the material from your computer. Thank you.

Reply via email to