# CSS + Embedded fonts

**URL:** <https://forum.kirupa.com/t/css-embedded-fonts/271535>\
**Category:** flash\
**Created:** [September 24, 2008, 11:33am UTC](https://forum.kirupa.com/t/css-embedded-fonts/271535 "2008-09-24T11:33:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ethernal](https://avatars.discourse-cdn.com/v4/letter/e/e47c2d/32.png) [@ethernal](https://forum.kirupa.com/u/ethernal)\
**Post date:** [September 24, 2008, 11:33am UTC](https://forum.kirupa.com/t/css-embedded-fonts/271535/1 "2008-09-24T11:33:22Z")

</div>

Hi, I am having a problem with a embedded font.

I am loading text from a XML, and applying a CSS stylesheet to the textfield that renders it. The font I am trying to use is “standard 07\_53”. This is the code I have:

```auto
 
    public function mostrarNoticia($modelo:NoticiaModel):void {
    titulo_txt.text = $modelo.titulo;
    fecha_txt.text = $modelo.fecha;
 
    var style:StyleSheet = new StyleSheet();
    var p:Object = new Object();
    p.fontSize = 8;
    p.fontFamily = new StandardFont().fontName;
    style.setStyle("p", p);
    texto_txt.styleSheet = style;
    texto_txt.htmlText = $modelo.texto.replace("@imagen@", $modelo.imagen);
}

```

The problem is that new StandardFont().fontName doesn’t return \*\*\*“standard 07\_53”\*\*\*, it also adds to the size and format of the font, and it shows Times New Roman instead.

Any way of embedding the font properly?
