# Embed and share fonts + use external css

**URL:** <https://forum.kirupa.com/t/embed-and-share-fonts-use-external-css/283596>\
**Category:** Uncategorized\
**Created:** [March 8, 2009, 11:37pm UTC](https://forum.kirupa.com/t/embed-and-share-fonts-use-external-css/283596 "2009-03-08T23:37:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![magarik](https://avatars.discourse-cdn.com/v4/letter/m/df788c/32.png) [@magarik](https://forum.kirupa.com/u/magarik)\
**Post date:** [March 8, 2009, 11:37pm UTC](https://forum.kirupa.com/t/embed-and-share-fonts-use-external-css/283596/1 "2009-03-08T23:37:15Z")

</div>

hello kind people

in a project of mine, for the sake of dynamism and aiming at smaller file size, i am trying to make a shared font library that all other swfs can use, and at the same time control the externally loaded texts with an external css file.

i have run into several different problems and difficulties…

1. i cant get the textfield to regard \<p\>,\<br/\> tags unless i set the textformat of a textfield after i have set it’s htmlText (why?). that wouldnt be a problem, but i cant use css and textformat at the same time,  
and if i just set the css instead of the textFormat, the tags are ignored.

2. i have looked and looked and haven’t found any guide or post on how to reference a runtime embedded font in an external css (which i have to do if i drop textFormat).

would be very grateful for any help on the matter,  
michael
