# HTML Font tag problem

**URL:** https://forum.kirupa.com/t/html-font-tag-problem/48445
**Category:** Uncategorized
**Created:** [April 13, 2004, 5:06pm UTC](https://forum.kirupa.com/t/html-font-tag-problem/48445 "2004-04-13T17:06:45Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![CoDe\_ReD](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/code_red/32/336_2.png) [@CoDe\_ReD](https://forum.kirupa.com/u/CoDe_ReD)
#### Post date: [April 13, 2004, 5:06pm UTC](https://forum.kirupa.com/t/html-font-tag-problem/48445/1 "2004-04-13T17:06:45Z")

</div>

Hi there,

Small problem: I’ve loaded text into a textbox dynamically but I want to change the font for some of the pieces. So I used the font tag in my external .txt file.

The text doesn’t show up… ☹ What do i need to do to make it show up?

The code I use to load the .txt file:  
[AS]  
loadText = new LoadVars();  
loadText.load("./txt/pc.txt");  
loadText.onLoad = function(success) {  
if (success) {  
// trace(success);  
pc.html = true;  
pc.htmlText = this.pcspecs.split("\r").join("");  
}  
};  
[/AS]

I’ve got a textbox with instance name “pc”. I’ve set the font of the textbox to courier new. My external .txt file looks like this:

```auto

pcspecs=<font face="arial"><b>Processor:</b></font> AMD Athlon XP 2800+ (Cooler Master Aero 7+ cooler)

```

Only the “AMD Athlon XP 2800+ (Cooler Master Aero 7+ cooler)” text shows up. Even when I only try to apply a simple \<b\> tag the text doesn’t show up. I dunno what I’m doing wrong…

Thnx in adv. Code R.
