Hello,
Have you tried to place a text field off screen/stage and embed the font
family (each style needs to be embeded in it's own text field - bold, italic
etc) that you are trying to use. I remember there being some buggy-ness when
trying to embed in AS2 and that was one of the work arounds that I had to
use.
hth.
B.
On Fri, Sep 5, 2008 at 10:05 AM, allandt bik-elliott (thefieldcomic.com) <
[EMAIL PROTECTED]> wrote:
> Hi guys
>
> I'm in AS2 and trying to create a textfield, embed fonts in and apply a
> stylesheet - if i use embedfonts it doesn't render but if i omit it,
> everything renders fine (but the fonts aren't embedded so won't render
> properly elsewhere)
>
> i can't see what's going wrong - could you take a look please?
>
> private function setupCopy():Void
> {
> _tfMoreText = _mcPanelViewer.createTextField("_tfMoreText",
> _mcPanelViewer.getNextHighestDepth(), _nTypeStartX, _nTypeStartY,
> _nPanelTotalWidth, 30);
> //_tfMoreText.embedFonts = true; // making the text disappear
> _tfMoreText.html = true;
> _tfMoreText.styleSheet = _cssStyles;
> _tfMoreText.selectable = true;
> _tfMoreText.border = true;
> _tfMoreText.borderColor = 0x999999;
> _tfMoreText.htmlText = _sMoreText;
>
> trace(_tfMoreText.htmlText); // traces '<p class="bodyText"><span
> class="white">My text</span></p>'
> }
>
> fonts are fun
>
> thanks guys
> a
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders