ActionScript 3.0 :: Bold Italic Font Face Doesn't Show Up?

Oct 13, 2009

I am putting the finishing touches on an as3 project (developped in flex for code and flash cs4 to create the UI) and I am running into a mysterious font issue.
 
1) I am loading in a swf file with the font outlines (empty dynamic textfields with embedded characters on the stage.  One text field for each regular / bold / italic / bold italic font styles).
 
2) I then load the swf and then in order to make sure that all font faces are properly available I list them in the output window with the following function:

[Code]....

View 3 Replies


Similar Posts:


ActionScript 3.0 :: Embed Both - Bold And Italic Styles Of A Particular Font?

Nov 15, 2010

How to embed font so it would have both styles - bold and italic.

When creating new font from drop down menu there are only either bold or italic or other style, but how to embed font with all styles?

View 0 Replies

ActionScript 3.0 :: Bold And Italic Are Not Working For Normal Embed Font In Flex

Feb 2, 2012

I am using swf embed font[normal] in my flex application but if i apply bold or italic for the text,its looking normal only. let me know if you have any solution.

View 1 Replies

ActionScript 2.0 :: Bold, Italic And Bold/italic Won't Embed?

Jul 18, 2009

I've imported four fonts into the Library and used Linkage to enable Export for Actionscript. The fonts are the four versions of Trebuchet MS:

Trebuchet MS
Trebuchet MS Bold
Trebuchet MS Bold Italic
Trebuchet MS Italic

They are named like this in the Library and for example the 'Bold Italic' version has both 'bold' and 'italic' selected in its properties.

Then I drew a dynamic textfield and selected for it's font 'Trebuchet MS Bold Italic*' so that the embed font was used. I also embeded the glyphs for 'Basic Latin' and 'Latin 1'.

Then I used this code to fill it with text:

ActionScript Code:
my_txt.embedFonts = true;
my_txt.text = "This is a sample";

The text is placed, however, it is always in the Trebuchet MS regular font. Also when I click the bold and italic icons in the Property Bar, the font won't go bold/italic. The same for just bold and just italic. It only turns bold/italic when I delete all font symbols accept the Bold Italic one.

View 9 Replies

Actionscript 3 :: Programmatically Set "Faux" Bold And Italic Font Styles In Flex?

Feb 4, 2012

I have a client that I build a business card "builder" application for in Flex. All the text elements that users add to the stage are Flex spark TextArea. I have a list of fonts that we allow the user to set on the text areas and some of the fonts included do have Bold and Italic versions of the font. The others that do not I simply disable these options in the control panel so the user doesn't have the option to click bold or italic buttons.

Photoshop does something similar if you load a font that doesn't have Bold or Italic options they disable the dropdown that would allow you to select these options in the text pallet http://grab.by/bOTC

When bold and italic aren't an included font face then Photoshop as a couple of buttons for applying Faux Bold and Italic to the font. Basically they programmatically thicken up the font face or slat it to make it look italic.

I've tried just setting fontWeight and fontStyle on the fonts that don't have bold or italic included in the embedded fonts and the result usually is a "web safe" font shows instead of the selected font or nothing at all happens.

I am wondering if there is a programmatic way that anyone has found that will do this in Flash / Flex. Basically thicken the font face or tilt it slightly to look italic. My guess is this would be pretty difficult and not worth the time and effort to the client but would be a neat thing to figure out and have a solution for.

View 2 Replies

Actionscript 3.0 :: Embedding Fonts XML CSS Bold Italic?

Oct 23, 2008

I've been trying everything with this issue so thought I'd put it out there to see if anyone can offer a solution or even advise if this is possible or not.This is the scenario:

I dynamically create a textField. I load an external CSS file into a stylesheet. From an XML file I load HTML content into the textField via .htmlText I have added the font to the library and have made it available for Export for ActionScript The HTML has spans with classes eg:

<span class="boldText">Flash Flash Flash</span>

The CSS states:

.boldtext {
font-family:Anivers;
font-style:italic;

[code]....

The font I'm using does not have any other family members like bold or italic Here is the problem. Leaving embedFonts = false things work just fine. But obviously I need to embed this font so all can see it. As soon as i set embedFonts = true I no longer get bold or italic.Is this a case of because the font does not have a bold or italic the system it just rendering, or am I just missing something? For example the checkboxes in the font's properties where you can choose bold and italic. I tried these but no luck.

View 13 Replies

ActionScript 3.0 :: StaticText Class Bold / Italic

Sep 10, 2009

I can access the read only text property of a StaticText instance (added at design time) by using "for(i=0; i <this.numChildren; i++) .... etc".I can use this text, I can trace it, etc, and I know that you can't write to it (ie its read only). BUT can I some how test that text to see if it is bold/italic/regular?[code]The charCode is the same bold or not, sort of obvious after I think about it.

View 2 Replies

ActionScript 2.0 :: Can't Control The Bold And Italic From The Text?

Apr 15, 2005

i made my flash design loading text from a txt file. But the problem is that i can't control the bold and italic from the text.So what i need is kinda content management. The company where i make the design for want to have control of the contant. I already did a quick search about loading html in flash but i wasn't lucky to find anything usefull.

View 2 Replies

ActionScript 1/2 :: Embedding Bold+italic Fonts For HtmlText?

Feb 24, 2010

How can I embed my custom font and it's bold variant (and it's faux italic variant, because there is not real italic version) and get the b and i tags working in a htmlText field?I can use the htmlText field with system fonts (with b and i tags working) ... or I can use 1 of the embedded fonts for the whole text.but I can't seem to get flash to understand the bold and italic variants are also embedded.

createTextField("dynamic_txt", 2, 40, 170, 350, 350); dynamic_txt.embedFonts = true; var emphatic:TextFormat = new TextFormat(); emphatic.size = 40; emphatic.color = 0xFFFFFF; emphatic.font = "EurostileT"; dynamic_txt.html = true;[code]...

View 2 Replies

ActionScript 1/2 :: Bold And Italic Fonts In Dynamic Text Fields?

May 24, 2006

I have a dynamic text field with the text "IMAGES". The font is Arial, it has BOLD and ITALIC checked, and has basic Latin fonts embedded. Now, I use Actionscript to change the text:

textField.text = "IMAGES";

Suddenly the text disappears! Now, it seems to me that since BOLD and ITALIC are checked on the text field, changing the .text value should simply change the text itself, which should then be rendered in bold and italic, and since I have bold+italic Latin glyphs embedded, it should display properly. But what's clearly happening is that when I set the text using Actionscript, it is attempting to display the NORMAL font instead, and since it's not embedded, it won't display. I know this because if I create another proxy text field off the screen and embed the NORMAL Arial glyphs, the original text field's text will display just fine - as normal-weight text.

But why is this? Do I have to use a TextFormat object to set the text to Bold and Italic EVERY time I want to dynamicaly change the text? This seems silly. I simply want my text field to be bold and italic every time the text changes, and NO normal text!

View 1 Replies

ActionScript 3.0 :: Write An Editor, Which Only Outputs Bold (<b>) And Italic (<i>) Tags

Feb 7, 2009

i have a problem with the flash textFormat. I want to write an editor, which only outputs bold (<b>) and italic (<i>) tags and not the other information flash adds to an htmlText.

for example in this case the output trace (myTextField.htmlText) should be exactly the input.

ActionScript Code:
import flash.text.TextFormat;
myTextField.htmlText = "huhuh <b>asjdja</b> asdasd";
trace (myTextField.htmlText);

is there a cleaner solution than replace the other information (font-size etc)

View 0 Replies

ActionScript 3.0 :: Using A Mixture Of Bold/italic Embedded Fonts In One Textfield?

May 21, 2010

I have an HTML string that uses bold and italic tags which I need to apply to a TextField. I need the font to be embedded though and I can't seem to find a way to do this. From what I've read it seems that Flash needs to use the actual bold/italic versions of the font rather than just changing it with HTML? In which case I can't do it all in one textfield because you can't change font? The only solution I found was a suggestion to use the [Embed()] method rather than the method I am using (embedding the font in a library symbol) but I don't think you can do that either with Flash CS3?

View 5 Replies

ActionScript 2.0 :: Html Formatting XML / Issue With Bold And Italic Tags Only?

Jul 12, 2006

I'm loading an xml file into flash. I have formatted certain parts of the xml file with various html tags, however I run into problems with the <b>bold</b> and <i>italic</i> tags. Even though I have <a href> and <ul> tags working fine?

I have set my text field to html while also using the "myTextfield.htmlText = " as well as using the CDATA tag in the xml file. I also checked the macromedia livedocs, and it says that these tags are standard and are handled by the flash player...

View 14 Replies

ActionScript 3.0 :: Using A Character In XML File To Bold Or Color Or Italic Certain Text ?

Jan 27, 2012

I am using XML file to pass text into a SWF. How can I use styles, either inline or external, to make certain text in the middle of a sentence appear italic or colored or bold, etc. A character or somethinng that you can put right in the XML file.


Code:
<mainText>You have the email message with two domain names: character here hackistan.edu character here and >kevinsgym-uoh.co<. Below is a list of resources to discover more information. Match the web site with the type of information you would expect to find.</mainText>

View 1 Replies

ActionScript 3.0 :: Use The "Calibri" Font Bold/normal Styles - It Doesn't Seem To Embed Properly?

Dec 30, 2010

I want to use the "Calibri" font bold/normal styles.It doesn't seem to embed properly though.I have tried every different way to embed it but it just doesn't embed properly.Its blurry compared to static textfields,and the bold text shows up as not bold...has anyone been able to embed this font properly?

View 1 Replies

ActionScript 3.0 :: Embedding Font / Text Doesn't Show Up.

Sep 3, 2010

I tried a sample code I found online but the text doesn't show up. Is there something wrong with this code? [code]When I run this code, there is no text displayed. If I hover the mouse to the upper left corner, the cursor turns into an I beam, but there is no text. The whole page is just white.

View 9 Replies

Professional :: No Dynamic Bold Font If Regular Static Font Present On Stage (CS5)?

Apr 16, 2011

I have a strange issue where a dynamic text field will not show a bold version of a font (Gerstner BQ) if the regular version is on the stage in a static text field.Remove the static text field and the dynamic text field displays the bold font correctlyI have created a test FLA to reproduce this and by turning the layer with the static text field on and off (Publish settings -> Flash -> include hidden layers [unchecked]), the issue is quite clearhis issue is so big for me that I have had to abandon a project in CS5 and start again in CS4 just to work around this.

View 19 Replies

ActionScript 2.0 :: Font Face Won't Change

Oct 21, 2009

I'm trying to get my font to change when clicking a button.

The text field itself is inside a movie clip called draggabletext. The inside text field is called tfield, and is dynamic with a var: output2. It renders as HTML (but doesn't have to if you have a better solution). It gets its text from a different input field.

I have a "dropdown" menu with 2 buttons (instance names arial and georgia).

On the root I have this code:

Code:
onEnterFrame = function() {
draggabletext.output2 = "<font face="" +textface+ "" color=""+textcolor+"">" + inputBox.text + "</font>";

[Code]...

I have embedded the fonts. Still, I can not get the text to change between the font faces when I click the buttons.

View 7 Replies

Css :: Embedding Font In Flex Locally With A Installed Font Works, But With Url To Refer To A Ttf Font File Doesn't

Feb 7, 2011

I'm trying to embed a font in my project by using url("font.ttf") rather than local("Font Name"), but it doesn't seem to pick it up. The font in question is called "Gotham Bold". When i view the details of the font, the font weight is regular, however when i use local("Gotham Bold") in the css i have to specify fontWeight: bold or else it wont pick it up. But when I use url("folderGotham-Bold.ttf"), and specify fontWeight: bold, it says that font weight is not found for that TTF. If i remove the fontweight, there's no errors, but the font is not applied to the text.

View 2 Replies

Flash :: Loaded Font Doesn't Show Up When Parent Swf Creates TextField In Loaded Child Swf

Jun 14, 2011

Im working on a project that has a main swf file associated with the document class. It loads XML that provides the text content for the project, then it loads a swf that contains a font in its library, then it loads the first of several content module swfs. When the font swf has inited, I'm registering its library font with Font.registerFont(), and using it in a TextFormat object. After everything is done, I can add code to the document class to create a text field on the stage of the main swf and format it successfully with the TextFormat object, but when I try to do the same thing inside the loaded content module swf, the text doesn't show up there at all.

View 1 Replies

ActionScript 3.0 :: Loaded Font Doesn't Show Up / When Parent Swf Creates TextField In Loaded Child Swf

Jun 15, 2011

I'm working on a project that has a main swf file associated with the document class. It loads XML that provides the text content for the project, then it loads a swf that contains a font in its library, then it loads the first of several content module swfs. When the font swf has inited, I'm registering its library font with Font.registerFont(), and using it in a TextFormat object. After everything is done, I can add code to the document class to create a text field on the stage of the main swf and format it successfully with the TextFormat object, but when I try to do the same thing inside the loaded content module swf, the text doesn't show up there at all.

View 7 Replies

ActionScript 3.0 :: Flash PrintJob Ignores HTMLText With Font Face Declaration

Nov 21, 2011

I am trying to print a string with html formatting. Part of the formatting includes font face. I have found that my print job will not print any string that includes a font face declaration. I'm guessing because the font isn't embedded, but I'm not positive.

This works:
string = "<b>bold</b> not bold";

Doesn't work:
string = "<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Arial" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">this is my string</font></p></textformat>";

How can I get around this. I need the ability to print any font on a users computer.

View 1 Replies

Bold Font In Dynamic Text

Mar 17, 2009

i'm using a font called "AGBookBQ-Regular" in a dynamic text box, which loads a text file. i understand that to include the bold and italic options, i have placed another text box just out of view off the stage with these two options selected.italic works fine but the bold makes very little difference... it only stretches the font slightly.i've searched for the answer to make a much bolder font and it seems you can use a specific bold font as the bold font.i've tried this, but nothing happens. i think i'm interpreting it correctly, but if someone could please confirm this works and perhaps explain it a little clearer (using my specific font names... "AGBookBQ-Regular" and "AGBookBQ-Medium" as the bold font).

View 2 Replies

ActionScript 2.0 :: Bold Font In CDATA?

Mar 26, 2009

why this code in my xml

Code:

<![CDATA[<font color="#00000"><b>action</b>. </font>]]>

Is not making the dynamic flash content bold?If I use <u></u> it underlines it, but bold doesnt seem to work!

View 2 Replies

CS4: Make _Sans Font Bold?

Sep 30, 2009

Where's 'CS4' as a prefix to the post title? Anyway. I'm using _sans font for my flash work, because i want the font to display as the default _sans font on the device/platform. Why in CS4 (not checked earlier versions, but im sure CS3 didnt do this) is the (font) 'Style' drop down greyed out?

View 2 Replies

CS4 :: Make _sans Font Bold?

Nov 12, 2009

When creating mobile apps I thought the best practise was to use _sans font, so that the device uses its' native device font when the app runs (for dynamic text, anyhow...)? So, I use _sans font for my app.  But why in CS3 could I make _sans font bold, but in CS4 I can't? Am I being stupid here....is there something obvious I'm missing?  The 'style' box is greyed out in CS4.

View 1 Replies

IDE :: Make _sans Font Bold?

Dec 1, 2009

In CS3, I could make _sans font bold. For some reason, in CS4 I can't and I'm not sure why?I'd like to use _sans so that the device my app runs on will use its native sans-serif font.To reproduce:

Create text box

Change font to _sans

Try and make font bold

I'm creating a Flash Lite app, so just to ensure it wasn't to do with that (or the device I'm creating it for) I created a normal Flash AS3.0 document and the bahaviour is exactly the same.I've emailled Adobe but no response.

View 8 Replies

Flash 10 :: Good Italic Serif Font (like Georgia) That Renders Well In Flash At 10pt?

Jul 19, 2010

Just wondering if anyone knows of a good italic serif font (like Georgia) that renders well in Flash at 10pt?I'm struggling to get anything looking sharp and crisp even with style set to Readability.

View 1 Replies

Professional :: Bold Font In Flash Not Showing In SWF

Sep 7, 2010

I'm adapting an off the shelf mp3 player and would like to make some text bold - namely [URL] the text that shows the current artist/song at the top. This is dynamic text from an XML file. I've embedded the fonts [Verdana regular and bold - OpenType] in Flash CS5 but the bold won't display even though the special characters do display [Jónsi].

View 10 Replies

ActionScript 3.0 :: Keeping Bold Attribute For Embedded Font?

Dec 4, 2008

I've got a bunch of dynamic and input text boxes. I want the display font to be Arial-bold. I don't have a genuine Arial-bold font so what I really want is Arial with a bold attribute. I've tried all of the following but the result is always just plain Arial:

1. Put dummy text in box, specify Arial, click Bold attribute, click Embed and include numbers and punctuation - run time result: plain Arial

2. Import Arial to library, give it the name f-Arial Bold, click the bold attribute box, check linkage and export for AS3 in first frame, get warning about class name (not sure why), put dummy text in box, specify f-Arial Bold*, click Embed and include numbers and punctuation - run time result: plain Arial

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved