dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Problem with font anti-aliasing

  1. #1
    Senior Member braxius's Avatar
    Join Date
    Jul 2005
    Location
    Lithuania
    Posts
    126

    Problem with font anti-aliasing

    I embed fonts for dynamic text field and use anti alias for animation, cos i need to use alpha fade transition. I then enable html tags and form a string variable like this:
    Code:
    var Eil:String="";
    Eil+="<b>Patalpa: </b>"+this.saka.attributes.patalpa+"<br/>";
    Eil+="<b>Plotas: </b>"+this.saka.attributes.plotas+"<br/>";
    Eil+="<b>Kaina: </b>"+this.saka.attributes.kaina+"<br/>";
    this._parent._parent.Info_mc.Info_txt.htmlText=Eil;
    It works just fine, but there is a problem:
    If bold button is enabled on the text field it only shows bold part of the string variable (text between <b></b> tags)
    If bold button is disabled it only shows this.saka.attributes.***** part of the line variable.
    I need to show both parts of the line

    I tryed to embed font into library and then use that one, but it failed.
    Im working on flash 8

    Please help me thanx

  2. #2
    Junior Member
    Join Date
    Jun 2004
    Location
    Toledo/Spain
    Posts
    19
    Hide a text field on first frame and embed the bold version of your font. Put it somewhere where it won't be seen. In the other text field embed the font with normal weight. This way the bold font is available to your dynamic text field, too. It's not a very nice solution, but I haven't come across any other yet.

    vc

  3. #3
    Senior Member braxius's Avatar
    Join Date
    Jul 2005
    Location
    Lithuania
    Posts
    126
    Another solution is to embed all fonts into lybrary with every version thats going to be used

  4. #4
    Flashkit historian Frets's Avatar
    Join Date
    Oct 2000
    Location
    flashkit
    Posts
    8,797
    Unfortunately one can't have it both ways.

    Either the font is device so it picks up htmlText attributes or it is embeded and does not.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center