# Embedding fonts and CSS

**URL:** <https://forum.kirupa.com/t/embedding-fonts-and-css/219352>\
**Category:** flash\
**Created:** [March 15, 2007, 9:12pm UTC](https://forum.kirupa.com/t/embedding-fonts-and-css/219352 "2007-03-15T21:12:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![callie17](https://avatars.discourse-cdn.com/v4/letter/c/e47774/32.png) [@callie17](https://forum.kirupa.com/u/callie17)\
**Post date:** [March 15, 2007, 9:12pm UTC](https://forum.kirupa.com/t/embedding-fonts-and-css/219352/1 "2007-03-15T21:12:58Z")

</div>

I’m having real problems getting my embedded fonts to display on publish using CSS. I’ve added new fonts to my library, exported for actionscript, set my textfield.embedFonts to true, linked my stylesheet, and no dice.

Works fine without the embeds, but goes blank with them.

CSS:

```auto

story, cast, trailers, photos, tickets, links, pressSec {
	font-family: DeckerText; <--Name of embedded font symbol...also tried Decker
	font-size: 14;
	text-align: justify;
	}
...

```

AS

```auto
		
var textContent	= textHolder.createTextField("textContent", getRealDepth(textHolder), 40, 90, textWidth-70, 1024); // Cant attach to container???
			textContent.multiline = true;
			textContent.wordWrap = true;
			textContent.html = true;
			textContent.condenseWhite	= true;
			textContent.autoSize = "left";
			textContent.styleSheet = docStyles;
			textContent.embedFonts = true;

```

I loaded my CSS in frame 2, so that’s fine. What am I missing here?
