Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6692599
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:53:10+00:00 2026-05-26T05:53:10+00:00

I’ve been stuck for a very, very long time on this issue, which has

  • 0

I’ve been stuck for a very, very long time on this issue, which has already been raised and discussed many times. The task is yet a simple one, and really shouldn’t take the insane amount of time it already has: to bold a few words in a textfield with an embedded font (other than Arial).

The b tag only seems to work when using a font in which Flash seems to recognize the bold weight natively (Arial, etc.) – but I use a font that comes in 4 weights: regular, medium, bold, and black. I need the black weight for bold words in the medium weight body text.

I did literally dozens of tests, all failing using “classic” text fields, embedding the font once for each weight and using htmlText: tried every setting possible in the embed dialog, with tags b, span, em – with TextFormat (bold, font) or StyleSheet (fontWeight, fontStyle, fontFamily)…

Conclusion: there is NO way to set 2 different embedded fonts in a single textField.

The problem is surely linked to the embedding of the fonts, confirmed with the following debug helper functions:

/**
 *  Debug helper: trace embedded fonts
 */
function trace_embedded_fonts():void
{
    var fonts:Array = Font.enumerateFonts();
    for ( var i:int = 0; i < fonts.length; i++ )
       trace( fonts[ i ].fontName + " - " + fonts[ i ].fontStyle + " - " + fonts[ i ].fontType );
}

/**
 *  Debug helper: Trace format
 */
function trace_classic_textfield_format( tf:TextField ):void
{
    trace( "trace_tlf_textfield_format( " + tf.name + " )" );
    trace( "  font = " + tf.getTextFormat().font );
}

outputting respectively Maven Pro - regular - embedded (just this single line even though I embedded 4 times the font, once per weight – and yes: I named them carefully, and I tried exporting for actionscript, in DF3 and in DF4, and also without exporting), and font = Maven Pro on all the textField instances on the scene, whichever style is applied on them (also tried both selecting the embedded font – with * at the end – and the system font).

In short, the font is weird, but I can’t do anything about it.

So my question relates to the new Text Layout Framework (TLFTextField): can it be achieved with it ?

The text is loaded from XML and contains simple tags like em, b, etc., but rewriting them to flow tags is not an option.

I tried the conversion available via the TextConverter class – like var tf:TextFlow = TextConverter.importToFlow(hyperText, TextConverter.TEXT_FIELD_HTML_FORMAT); – cf. http://help.adobe.com/en_US/as3/dev/WS14c3067b34b57c6d4a97343b122ab36a52f-7ffb.html#WS14c3067b34b57c6d4a97343b122ab36a52f-7ff9 – but I don’t understand how to style each tag and how to apply the TextFlow to a TLF Text Field already added manually on the Flash stage ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T05:53:10+00:00Added an answer on May 26, 2026 at 5:53 am

    For information, I gave up using TLFTextFields and worked around this issue by using another font (one for which Flash understands the bold) – the moral of the story is that this issue is currently a cruel limitation to TextFields in Flash.

    One more thing: bold text won’t work in textfields dynamically added on stage unless there already are TextFields (in each style you need to use) present on the stage from the start (I left 2 textfields with “test” in white on a white bg to hide them).

    Note for the future: make videos à la “Angry Video Game Nerd” for issues like these.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I want to count how many characters a certain string has in PHP, but
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
For some reason, after submitting a string like this Jack’s Spindle from a text
I am trying to understand how to use SyndicationItem to display feed which is
I used javascript for loading a picture on my website depending on which small
Basically, what I'm trying to create is a page of div tags, each has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.