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


Similar Posts:


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 :: Dynamic Textfield Without Embedding Fonts?

Jun 13, 2011

is there any way to smoothen or make a dynamic textfield look better without embedding fonts? I've tried writing the textfield into a bitmap but haven't been successful with that yet, is there any other better approach?

View 1 Replies

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

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

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

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

CS5 :: Can't Make A Textfield To Bold In It

Jun 24, 2011

I've got an FLA which was originally created using CS3, and i've got a dynamic textfield in it that uses font "Gadget".If i open the FLA in CS3, it gives me option to toggle the BOLD option, and when i compile it, the font appears to be bold in the compiled swf.

When I open the same FLA in CS5 (version 11.0.2.489),

---> I don't get any option to make the font bold on the same textfield,

---> and when i compile it, the text remain the same, it does not show as bold.

View 5 Replies

ActionScript 2.0 :: Making Text Bold In Textfield?

Jan 29, 2010

I want to make an imported text from a textfile be bold.ow do I do it?This is what it looks like now:

this.createTextField("my_txt", 10, 10, 10, 80, 100);
my_txt.setNewTextFormat(new TextFormat("Arial",12,0xCC6600));
boldFormat = new TextFormat();

[code].....

View 2 Replies

Actionscript 3 :: Flash CS5: Combining Bold And Regular Text In A Textfield?

Sep 20, 2010

I am trying to combine bold and regular text in a textfield but how do I embed an font family and not just a single style of a font?See example of how I embedded a font, you can only choose one style: "regular", "bold", "italic" or "bold italic" at once:However, when you try to embed the text (via the IDE settings or actionscript) how do you set the font to be the entire family?

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

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

AS2 ::Making A Dynamic Text Box Bold?

Aug 24, 2010

lets say theres a dynamic textbox with the name 'txt1'

i typed the code:
txt1.bold = true;

but it doesnt work, the text is still not bold,

View 1 Replies

Professional :: Bold In Dynamic Text

Nov 1, 2010

I have a dynamic text on my stage called text_txt I want to write the html code <b><u>test</b></u> so here is my code

[Code]...

View 15 Replies

ActionScript 3.0 :: Text Becoming Bold When Set To Dynamic?

Jun 26, 2009

I have a text field in Flash (CS4, using AS3), the font is set to Helvetica Neue, and it looks fine as a static text field, but looks bold when it is set to dynamic. What causes this? Is there anyway around this problem (other than setting the field to static)? Is there a way to control tracking with TextFormat in AS3? You can control leading with the object, but I can't seem to find a way to put more space between letters.

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

ActionScript 3.0 :: Bold A Dynamic Text Box Is Not Working?

Apr 26, 2009

i neeed to create a text box with bold letter. my coding is as follows.
 
but it always shows bold, even i gave tf1.bold = false.

[Code]....

Note: where options[0][0] is an array has all the properties bold = true/false, color = 0x----.

View 1 Replies

ActionScript 3.0 :: Dynamic Text - First Letter Bold?

Sep 9, 2009

I have a dynamic text field with a very simple external text loader.this text field just contains t list of people...

Code:
function textLoadComplete(event:Event):void
{
clientList.text = textLoader.data;

[code]....

But now a want the first letter of every line in bold or 2 point sizes bigger.I know I can only embed one text style - and bold would be an additional style, right?But it's only a simple list of words - no links - no other extras.

View 2 Replies

ActionScript 2.0 :: Bold And Color In Dynamic Text?

Dec 28, 2009

I have a tooltip pop up when you rollover a movieclip, and the content in the tooltip is dynamic text. Right now I'm limited to only one color, and one font. Is there a way to put in to make part of the text bold and in color? I've tried just putting in the <b> tag, but that doesn't work.

tooltip._visible = false;
var tipInt;
b1.onRollOver = function() {

[Code].....

View 4 Replies

ActionScript 3.0 :: How To Make Dynamic Text Bold

Sep 20, 2010

I basically can't figure out how to make dynamic text Bold.I have a String that holds text which is passed to it from an XML file's attributes. (It is my understanding that you can't use CDATA <b> in an XML file's attributes. If I'm wrong, please show me how) I have a TextField which I want to display this string in BOLD text. I tried the following and it doesn't work.[code]

View 2 Replies

ActionScript 3.0 :: Random Bold Or Alpha On Dynamic Text - AS3

Apr 30, 2010

I have a grid of animated dynamic text boxes that are being pushed in from an array. This works great. I was wondering if it possible to have those randomly bolded? If that is not possible, than could their alpha's be random but not any lower than 50%. I know AS3 does 0-1 but how would you force it to not be lower than a certain number?

PHP Code:

import fl.transitions.Tween;import fl.transitions.easing.*;import fl.transitions.TweenEvent;var myArray:Array=["Person1","Per2","theLongerPerson3","Person4","p5","p6","People1","Peep2","theLong

[Code]......

View 1 Replies

Actionscript 3 - Flash Dynamic TextFiled Font On BOLD

Jan 5, 2010

am using AS3 and i have one dynamic text filed. The properties

-Fontname "verdana"
-size "14"
-style "Bold"

it is shown the correct font in BOLD if there is no value.It will not show the correct font properties am not getting the bold style :(

View 4 Replies

Flash :: Dynamic Text Lost Its Bold Styling?

Jun 16, 2011

In the Flash IDE, I have made a dynamic text field bold. When the Flash is compiled and run, the bold styling disappears. How do I retain the bold styling?

Top: IDE

Bottom: SWF

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

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 :: Dynamic Text Disappears When Clicking Bold Button?

Jun 28, 2009

I have dynamic text inside a movieclip, that I can make it rotate.

the dynamic text properties are : anti-alias for anmations and I emdedded all characters.

When I click on the bold button the the text disappears.

bold_btn.addEventListener(MouseEvent.Click, on_bold);
function on_bold(e:MouseEvent):void
{

[Code].....

View 3 Replies

IDE :: Dynamic Bold Text Seems To Render While Omitting Character Spaces

Oct 19, 2009

Just to give you a little background, I am using CS4 and AS3, publishing to FP9. I am embedding fonts dynamically at runtime and there seems to be an issue with my dynamic 'html' text field when I have <b> tags within the CDATA.

In some cases, Flash seems to be rendering the bold text too close to the preceding character. Sometimes, even overlapping the preceding character. For the most part, this appears to be happening when the bold text appears at the end of the line before the text is wrapped.

I will note that, any text in the xml file wrapped in <b></b> tags is actually appearing bold, so I don't think it has anything to do with font embedding. In case it does, here is how I am embedding the font groups:

// Semi Bold
[Embed(source="/fonts/Anvers/AnversSemiBold.otf", fontName="AnversSemiBold", fontWeight="normal", fontStyle="regular", advancedAntiAliasing="true", mimeType="application/x-font")]
public static const ANVERS_SEMI_BOLD:Class;

View 1 Replies

Actionscript 3 :: Textfield With Arial Regular And Arial Bold Does Not Work Together In Flashcs5?

Aug 17, 2011

I have two dynamic classic TextFields in a MovieClip, one with Arial Regular embedded and the other with Arial Bold, but the second TextField is not showing the bold text. It shows regular text. Here is how I am doing it:I change the text of two fields using c.txt1.text="changed text90";mc.txt2.text="changed text90";

View 3 Replies

ActionScript 2.0 :: Helvetica A Screen Font?

Nov 14, 2006

The graphic designer has ordained that Helvetica be used for a Flash project.

However, using embedded Helvetica in dynamic text fields yields less than desirable results.

Basically, some edges of the text appear blurry (despite setting the antialias to Advanced).

Just wanted to know whether the Helvetica font was meant to be a screen font or strictly a print font.

View 1 Replies







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