Re: [flexcoders] Embedding fonts with a font that doesn't have bold
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 olegsivo...@gmail.com 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.
[flexcoders] Embedding fonts with a font that doesn't have bold
Hi, I'm trying to embed a font into Flex, but the font doesn't have bold style, so anywhere the application bolds the text it shows as Times New Roman. Any workaround? I have another font-name I'd like to use for bold. Thanks, Mike
Re: [flexcoders] Embedding fonts with a font that doesn't have bold
You can try using TextRenderer to mimic bold, but, unfortunately, the settings applied through TextRenderer are application-wide... Anyway, see if this may help: http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/text/TextRenderer.html#setAdvancedAntiAliasingTable() Best Oleg
Re: [flexcoders] Embedding fonts with a font that doesn't have bold
Oleg, you need to embed two fonts into you flex movie (one bold, the other not). then you can set the usage of one font or another through the style property fontFamily. im not sure if in html of the textbox text property that you can use the font directive to set the family. i know you can do this... FONT COLOR='#ff' size='16'Some text/FONT But im not sure this works... FONT COLOR='#ff' SIZE='16' FAMILY='FONTBOLDNAME'Some text/FONT Replacing FONTBOLDNAME with the name of the bold font. Hope that helps, Samuel On Apr 3, 2010, at 9:45 PM, Oleg Sivokon wrote: You can try using TextRenderer to mimic bold, but, unfortunately, the settings applied through TextRenderer are application-wide... Anyway, see if this may help: http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/text/TextRenderer.html#setAdvancedAntiAliasingTable() 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.
Re: [flexcoders] Embedding fonts with a font that doesn't have bold
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
Re: [flexcoders] Embedding fonts with a font that doesn't have bold
Oleg's right. Thanks all. On Sat, Apr 3, 2010 at 2:06 PM, Oleg Sivokon olegsivo...@gmail.com 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