# setStyle - bitmap font

**URL:** https://forum.kirupa.com/t/setstyle-bitmap-font/199846
**Category:** flash
**Created:** [September 6, 2006, 5:09pm UTC](https://forum.kirupa.com/t/setstyle-bitmap-font/199846 "2006-09-06T17:09:35Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![livestyle](https://avatars.discourse-cdn.com/v4/letter/l/48db29/32.png) [@livestyle](https://forum.kirupa.com/u/livestyle)
#### Post date: [September 6, 2006, 5:09pm UTC](https://forum.kirupa.com/t/setstyle-bitmap-font/199846/1 "2006-09-06T17:09:35Z")

</div>

Hi,  
The bitmap font doesn’t show up to me. Others common fonts do. Can anyone help me, where Is the mistake?  
Thank you.

[COLOR=DarkSlateBlue] dynamic class MenuItem extends MovieClip  
{  
var createTextField, Caption, _parent, Node, getBounds;  
function MenuItem() {  
super();  
this.Caption = this.createTextField(“Caption”, 1, 0, 0, 100, 20);  
this.Caption.autoSize = “left”;  
this.Caption.html = true;  
var Register\_3_ = new TextField.StyleSheet();  
Register\_3\_.setStyle(“body”, {color:"#FFFFFF", fontSize:“8px”, fontFamily:“standard 07\_57”});  
Register\_3\_.setStyle(“a”, {color:"#FFFFFF", fontSize:“8px”, fontFamily:“standard 07\_57”});  
Register\_3\_.setStyle(“a:hover”, {color:"#DEEF8F", fontSize:“8px”, fontFamily:“standard 07\_57”});  
this.Caption.selectable = false;  
this.Caption.styleSheet = Register\_3\_;  
this.Caption.embedFonts = true;

```
}
function onLoad() {
}
function selectThis() {
	if (this.selected){
		return undefined;
	}
	this._parent.SelectedWork.selected = false;
	this._parent.SelectedWork.Caption.textColor = 16777215;
	this._parent.SelectedWork = this;
	this.selected = true;
	this.Caption.textColor = 14610319;
	this._parent._parent._parent.Content.LoadContent(t his.Node);
}
function onMouseDown() {
	var Register_2_ = this.getBounds(_level0);
	Register_2_.xMax = (Register_2_.xMin + this.Caption.textWidth) + 3;
	Register_2_.yMax = (Register_2_.yMin + this.Caption.textHeight) + 3;

```

if (((\_level0._xmouse \>= Register\_2_.xMin && \_level0._xmouse \<= Register\_2_.xMax) && \_level0._ymouse \>= Register\_2_.yMin) && (\_level0._ymouse \<= Register\_2_.yMax)){  
this.selectThis();  
}  
}  
var selected = false;  
}[/COLOR]
