ActionScript 3.0 :: Embedding Fonts But Text Getting Bold

Oct 18, 2010

When Embedding fonts in as3 the text getting bold is there any way to rectify it.

View 2 Replies


Similar Posts:


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 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

IDE :: How To Get Text Render Fonts In Bold Or Italics

May 7, 2009

I've seen this a few times and I've tried all the "fixes" but I'm still missing something here. I have "[CDATA[" tags and render as HTML turned on. My AS has HTML "true" and childNodes. However I still can't get my text to render fonts in either BOLD or italic. [URL].

View 1 Replies

ActionScript 3.0 :: Bold And Regular Text With Embedded Fonts CS4

May 12, 2009

Anybody know the trick to getting both bold and regular text in a dynamic text field? I can do it with system fonts no problem (using htmlText), but the client wants copy to be Futura Medium and Futura Bold. I'm pretty sure this isn't the first time anyone's had to do this.

View 1 Replies

ActionScript 2.0 :: Bold Dynamic Text W/ Device Fonts?

Nov 3, 2009

I have an xml-based mp3 player which loads the track titles into dynamic text fields from an external .xml file and I can't get the text to bold. I have "use device fonts" checked. If I select the text field in Flash and change the color or size those attributes will change in the published version, but... when I click the B button, it won't render the text bold in the published version.Do I have to add additional font formatting in the actual ActionScript? Here's the AS for the player. I only want to bold the track title which (I think) is about half-way down -- track_title.text = track_list[current];[code]

View 5 Replies

IDE :: Embedding Bold Font In Separate Text Field Not Working

Sep 15, 2010

Using:
-Adobe Flash IDE (CS3)
-AS3

First off let me say I did try creating an extra text field off of the main stage set to Bold, and it's Verdana so I'm not exactly "selecting" a second font file all together to be embedded. Instead I am just setting the textfield property Bold to ON.

SO FAR I am not sure what I am doing wrong, but it does not want to go Bold. Aside from using Flex, which I know nothing about.

View 1 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

Embedding Fonts In Dynamic Text Fields?

May 5, 2009

I am having trouble embedding a font in my Flash file. I have the font in my library. I have the text field selected to that font with the * next to it. In my actions I have: vid_title_txt.embedFonts = true;
 
If I set it to false instead, it shows a different font. But if it is set to true, nothing shows.

View 5 Replies

ActionScript 2.0 :: Embedding Fonts And Loading Text In Using Xml?

Sep 17, 2009

I am embedding fonts and loading text in using xml, brill that all works brilliantly.However, when it is being converted to other languages, mainly german, & characters are coming in weird.I am embedding the fonts using the following,

View 0 Replies

ActionScript 3.0 :: Embedding Fonts // Using Css To Style Text?

Jul 5, 2011

how to use some kind of embed fonts feature while using css? or anti-alias the text that is styled using css?i have tried to set:

titlefield.embedFonts = true;
titlefield.stylesheet = sheet;

but it does not work. if i comment out the embedFonts the css works fine but the text is very aliased. and because as3 does not support the embed font property within css i am in a bit of a predicament!

View 1 Replies

ActionScript 2.0 :: Embedding Fonts In Dynamic Text Fields?

Mar 5, 2010

I`m making a matching game that uses dynamic text fields, but cant embed the fonts, I`ve tried everything I could think of, even adding a text box with the embed fonts, or loading them from an external file, nothings absolutely happens, I`m completely clueless, can you help me?This is my code, is in as2, can`t change it to as3 cause the whole game stop s working,

function aleatorio(min, max)
{
var _loc2 = true;

[code]....

View 1 Replies

Embedding Multiple Fonts Fore One Text Field?

May 29, 2009

I am making a Flash movie where a user can change the font of a text field(AS3), and due to the embedded fonts functionality even fonts that ar not on the users computer can be selected.The problem is that I can embed only one font per text field. This should be no issue because they are embedded in the example text and are included in the library. But this does not work!It does not matter whether I use the font name or the name of the font in the library with trailing '*', it simply shows _serifThis problem drives me cray because it disables the main feature of the application.

View 3 Replies

ActionScript 1/2 :: Embedding Fonts In Dynamic Text Fields

Mar 5, 2010

I`m making a matching game that uses dynamic text fields, but cant embed the fonts, I`ve tried everything I could think of, even adding a text box with the embed fonts, or loading them from an external file, nothings absolutely happens? This is my code, is in as2, can`t change it to as3 cause the whole game stop s working

[Code]...

View 1 Replies

ActionScript 3.0 :: Dynamic Text On Scrollpane Without Embedding Fonts?

Aug 4, 2010

I've been trying to change text in a textfield on a scrollpane dynamically without embedding fonts. However, the text doesn't show up at all. I tried using device fonts but still nothing.

View 1 Replies

ActionScript 3.0 :: Embedding Fonts Into Project And Displaying Text

Nov 1, 2010

I have been trying to embed a font into a project I am working and its just not happening. I am having 2 problems first I am trying to embed a font that I do not have installed on my machine (Helvetica Neue Bold), I do have a copy of the otf file though. As far as I know what I have tried should work however when I run the swf I only get Times New Roman. From the enumerated fonts I can see the font has embedded but it just wont show. Secondly if I replace the Helvetia font with one I do have on my machine (Arial for example) the text displays with the correct font but if I then set embedFonts = true the text disappears.

Code:
package{
import flash.display.Sprite;
import flash.text.Font;
import flash.text.TextField;
import flash.text.TextFieldAutoSize;
[Code] .....

View 4 Replies

ActionScript 3.0 :: HtmlText - Text Shows Up Bold Instead Of Just The Few Lines Assigned The Bold Tag To

May 4, 2011

I have a dynamic text box for 3 lines of text. I styled part of the text to be bold and part of it to be regular. When i click on the button to display the text it looks right the first time but if i click on it a second time then all of the text shows up bold instead of just the few lines i assigned the bold tag to.

View 18 Replies

Use Bold / Italics For Embedded Fonts?

Nov 4, 2010

I have a shared fonts.swf file containing a variety of fonts that my main swf uses. I have a movieclip within the fonts.swf file which is exported for runtime sharing. In my main swf i have the fonts.swf imported for runtime via a movieclip. This all works fine and allows me to use the fonts within the fonts.swf file in my main swf. All of my text fields are dynamic and created/updated via AS. I use the following method to style my text boxes(additional code removed for succinctness, this is just so you can see the overall methodology)[code]...

View 3 Replies

IDE :: Embedding Helvetica Bold Into Dynamic Textfield?

Nov 12, 2009

I have a single dynamic textfield containing NON-HTML text meant to be displayed in a single typeface: Helvetica Neue - 75 Bold. When I author on a Windows installation, the font displays as Helvetica Roman. When I author on the Mac, the font displays correctly as the boldface version.

how to embed multiple weights of a typeface so you can use HTML markup to, say, mix bold, italic and roman text in the same textfield. This is about manually embedding a single font, Helvetica neue 75 Bold into a dynamic textfield using the Flash IDE and it not working on Windows.

View 14 Replies

ActionScript 3.0 :: Embedding Helvetica Bold (continued)?

Dec 4, 2009

Problem: although I'm embedding Helvetica Neue 75 Bold, flash displays Helvetica 55 Roman. note that it's not Helvetica Neue 55 Roman, but Helvetica 55 Roman. So a completely different Font family that I don't even happen to have installed.

I'm assigning text to a dynamic textfield using myField.text = "My text that I added dynamically.". Once this is done, if you examine the myField.htmlText property you will notice that Flash has added a bunch of crap:

<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Helvetica 55 Roman" SIZE="20" COLOR="#000000" LETTERSPACING="0" KERNING="0">My text that I added dynamically.</FONT></P></TEXTFORMAT>

Notice in particular the <FONT FACE...> tag which is what I believe is causing the problem - it's hard-coding the Helvetica 55 Roman font in there. Where the heck is that even coming from? And more to the point, how to get rid of it?Before you suggest a RegExp, I tried that and it doesn't work. I can strip out the <FONT> tag, but when you then re-apply the new string and trace out the .htmlText property again, that <FONT> tag is back!

Code:
var txt = String(txtQuestion.htmlText).replace(/<FONT[^>]+>(.+)</FONT>/, "$1");
txtQuestion.htmlText = txt;
trace(txtQuestion.htmlText);

Also, note that this ONLY occurs for multiline text fields. As soon as you switch to single line, everything is perfect (except that it's not multiline!!)

View 5 Replies

Flash Fonts - Text Fields' Fonts Replace To Default Fonts.some Text Gone Down

Feb 25, 2010

my web site has a lots of text field. it is xml based site.it is locally run perfectly but after i upload it to my server it's text fields' fonts replace to default fonts.some text gone down.so its confused to me.i used Myridpro font.now it is replace to default font .can u tell what is the solution for that..? [URL]

View 1 Replies

ActionScript 2.0 :: Get Embedded Fonts Bold In Flash CS5

Nov 18, 2010

I try to do a site for a community against child abuse, I've got external text files and have choosen render as html. I choose Verdana regular font and embed some swedish characters. When I then write something in the text file it works OK, and so with the <i>, <u> and <li> tags but when I write <b> tags nothing happends at all. Then I tryed to embed the bold font and everything went bold, why is it so? How do I make the bold tag work?

View 1 Replies

ActionScript 3 :: Embedding Bold Font - TextLayout Fields / Format

Oct 19, 2011

I am having trouble embedding a font as bold using FB4. I am using TextLayout fields and TextLayoutFormat to do this and my code is as follows:

package {
import flash.display.Sprite;
import flash.text.AntiAliasType;
import flash.text.Font;
import flash.text.TextField;
[Code] .....

The font just displays as normal and the 'fontWeight' property is ignored.

View 1 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

Flash :: AS Window Fonts - Flash Embedding Fonts But Never For The Program Itself

Mar 29, 2009

I've recently had to format my computer and now having a problem with the flash actionscript window: the actionscript text looks like bold, or in a different font. The problem is that when I search for something like "flash" and "fonts", no matter which other words I use, always comes a lot of things about fonts for flash files, or for flash embedding fonts, but never for the program itself. Wich font is missing in my system that flash CS3 needs?

View 1 Replies

Embedding Fonts In Swf File?

Nov 24, 2009

my fonts displaying in my swf file. I created the flash site using CS4 on a mac. I thought the fonts were embedded but when I tested the swf in safari and firefox the fonts disappeared are all scrunched up in 1/2" on top of each other in several lines. Its a mess. It is displaying in times or some other font when viewed in on a pc browser.
 
What I did so far that did not work:
 
Made fonts static with animation
made fonts dynamic with animation

View 5 Replies

ActionScript 1/2 :: Embedding Fonts With Cs5?

Sep 15, 2010

I am having trouble embedding fonts with cs5. When i publish the text disappears.The text is dynamically loaded and when published appears blank. I'm using Actionscript 2 I need help with the scripting. I've selected the dynamic text box and gone to Type> font embedding and created a new font. Then exported it for actionscripting.What script do i have to put in the first frame so that it uses the font?

View 3 Replies

ActionScript 2.0 :: Embedding Fonts And CSS?

Mar 15, 2007

I'm having real problems getting my embedded fonts to display on publish using CSS.I've added new fonts to my library, exported for actionscript, set my textfield.embedFonts to true, linked my stylesheet, and no dice.Works fine without the embeds, but goes blank with them.

Code:
story, cast, trailers, photos, tickets, links, pressSec {
font-family: DeckerText; <--Name of embedded font symbol...also tried Decker
font-size: 14;[code]....

View 2 Replies

ActionScript 3.0 :: Embedding Fonts To Combo Box?

Nov 27, 2009

I have a combo box under a mask and I've done some research and discovered that I need to embed the fonts in to it in order for the text to show. I don't want to embed my own fonts, I just want to use the basic default font and get this working, yet I can't seem to find any tutorials that tell you how to do this, they all seem to be about setting the font colour, size and type.

View 12 Replies

ActionScript 1/2 :: Non-system Fonts Embedding

May 15, 2009

i'm building a website, with non-system fonts.. Do i have to do something for other computers to see the same font? or thats just the case if i use imput text?

View 1 Replies







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