﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- saved from url=(0014)about:internet -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta name="book" content="ActionScript&nbsp;3.0&nbsp;Language&nbsp;and&nbsp;Components&nbsp;Reference"><link rel="stylesheet" href="../../style.css" type="text/css" media="screen"><link rel="stylesheet" href="../../print.css" type="text/css" media="print"><link rel="stylesheet" href="../../override.css" type="text/css"><meta name="keywords" content="Font,flash.text.Font,ADVANCED,BOLD,BOLD_ITALIC,CENTER,CENTER,CRT,DARK_COLOR,DEFAULT,DEVICE,DYNAMIC,EMBEDDED,EMBEDDED_CFF,INPUT,ITALIC,JUSTIFY,LCD,LEFT,LEFT,LIGHT_COLOR,NONE,NONE,NORMAL,PIXEL,REGULAR,RIGHT,RIGHT,SUBPIXEL,align,alwaysShowSelection,antiAliasType,ascent,ascent,autoSize,backgroundColor,background,blockIndent,bold,borderColor,border,bottomScrollV,bullet,caretIndex,charCount,color,condenseWhite,defaultTextFormat,descent,descent,displayAsPassword,displayMode,embedFonts,fontName,fontSize,fontStyle,font,fontType,gridFitType,height,height,htmlText,indent,insideCutoff,italic,kerning,leading,leading,leftMargin,length,letterSpacing,maxChars,maxLevel,maxScrollH,maxScrollV,mouseWheelEnabled,multiline,numLines,outsideCutoff,restrict,rightMargin,scrollH,scrollV,selectable,selectionBeginIndex,selectionEndIndex,sharpness,size,styleNames,styleSheet,tabStops,target,text,textColor,textFieldHeight,textFieldWidth,textHeight,text,textWidth,thickness,type,underline,url,useRichTextClipboard,width,width,wordWrap,x,appendText,clear,enumerateFonts,findText,getCharBoundaries,getCharIndexAtPoint,getFirstCharInParagraph,getImageReference,getLineIndexAtPoint,getLineIndexOfChar,getLineLength,getLineMetrics,getLineOffset,getLineText,getParagraphLength,getSelected,getSelectedText,getStyle,getTextFormat,getText,getTextRunInfo,hasGlyphs,hitTestTextNearPos,isFontCompatible,parseCSS,registerFont,replaceSelectedText,replaceText,setAdvancedAntiAliasingTable,setSelectColor,setSelected,setSelection,setStyle,setTextFormat,transform"><title>flash.text.Font (ActionScript 3.0)</title></head><body><script language="javascript" type="text/javascript" src="../../asdoc.js"></script><script language="javascript" type="text/javascript" src="../../help.js"></script><script language="javascript" type="text/javascript" src="../../cookies.js"></script><script language="javascript" type="text/javascript">  
            <!--  
			    
				asdocTitle = 'Font - ActionScript 3.0 Language and Components Reference';

				var baseRef = '../../';

				window.onload = configPage;
			      
			    -->  
            </script>
<script language="javascript" type="text/javascript"><!--
function submitValue(){
var searchStr=document.getElementById('search-livedocs').value;
window.location="../../search.html"+"###"+searchStr;
}
--></script><script type="text/javascript">
		scrollToNameAnchor();
	</script><table class="titleTable" cellpadding="0" cellspacing="0" id="titleTable" style="display:none"><tr><td class="titleTableTitle" align="left">ActionScript 3.0 Language and Components Reference</td><td class="titleTableSearch" align="center"><form class="searchForm" method="get" action="../../search.html" onsubmit="submitValue();"><input class="hidden" name="loc" value="" type="hidden"><input class="hidden" name="termPrefix" value="" type="hidden"><input class="hidden" name="term" value="" type="hidden"><input class="hidden" name="area" value="" type="hidden"><input id="search-livedocs" name="search_text" value="" title="" type="text"> <input type="button" name="action" value="Search" onclick="submitValue()"></form></td><td class="titleTableTopNav" align="right"><a href="../../../../Flash/10.0_Welcome/index.html">Home</a>&nbsp;|&nbsp;<a href="../../package-summary.html" onclick="loadClassListFrame('../../all-classes.html')">All Packages</a>&nbsp;|&nbsp;<a href="../../class-summary.html" onclick="loadClassListFrame('../../all-classes.html')">All Classes</a>&nbsp;|&nbsp;<a href="../../language-elements.html">Language Elements</a>&nbsp;| <a href="../../all-index-Symbols.html" onclick="loadClassListFrame('../../index-list.html')">Index</a>&nbsp;|&nbsp;<a href="../../appendixes.html">Appendixes</a>&nbsp;|&nbsp;<a href="../../conventions.html">Conventions</a>&nbsp;|&nbsp;<a id="framesLink1" href="../../index.html?flash/text/Font.html&amp;flash/text/class-list.html">Frames</a><a id="noFramesLink1" style="display:none" href="" onclick="parent.location=document.location"> No Frames </a></td><td class="titleTableLogo" align="right" rowspan="3"><img src="../../images/logo.jpg" class="logoImage" alt=" Adobe Logo " title=" Adobe Logo "></td></tr><tr class="titleTableRow2"><td class="titleTableSubTitle" id="subTitle" align="left">Font</td><td class="titleTableSubNav" id="subNav" align="right" colspan="2"><a href="#propertySummary">Properties</a>&nbsp;| <a href="#methodSummary">Methods</a>&nbsp;| <a href="#eventSummary">Events</a>&nbsp;| <a href="#styleSummary">Styles</a>&nbsp;| <a href="#effectSummary">Effects</a>&nbsp;| <a href="#constantSummary">Constants</a>&nbsp;| <a href="#includeExamplesSummary">Examples</a></td></tr><tr class="titleTableRow3"><td colspan="3">&nbsp;</td></tr></table><script language="javascript" type="text/javascript" xml:space="preserve">
                
                    
                

				<!--

				
				    
				

					if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Font"); titleBar_setSubNav(false,true,false	,false,false,false,true,false,false	,false,false,false,false,false);}

				    
				        
				    
				-->
                
                    
                
			</script><div class="MainContent"><table class="classHeaderTable" cellpadding="0" cellspacing="0"><tr><td class="classHeaderTableLabel">Package</td><td><a href="package-detail.html" onclick="javascript:loadClassListFrame('class-list.html')">flash.text</a></td></tr><tr><td class="classHeaderTableLabel">Class</td><td class="classSignature">public  class  Font</td></tr><tr><td class="classHeaderTableLabel">Inheritance</td><td class="inheritanceList">Font  <img src="../../images/inherit-arrow.gif" title="Inheritance" alt="Inheritance" class="inheritArrow"> <a href="../../Object.html">Object</a></td></tr></table><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p></p>The Font class is used to manage embedded fonts in SWF files. Embedded fonts
 are represented as a subclass of the Font class. The Font class is currently useful only to 
 find out information about embedded fonts; you cannot alter a font by
 using this class.
 
 You cannot use the Font class to load external fonts, or to create an instance 
 of a Font object by itself. Use the Font class as an abstract base class.<p></p><br/><hr></div><a name="propertySummary"></a><div class="summarySection"><div class="summaryTableTitle">Public Properties</div><div class="showHideLinks"><div id="hideInheritedProperty" class="hideInheritedProperty"><a class="showHideLink" href="#propertySummary" onclick="javascript:setInheritedVisible(false,'Property');"><img class="showHideLinkImage" src="../../images/expanded.gif"> Hide Inherited Public Properties</a></div><div id="showInheritedProperty" class="showInheritedProperty"><a class="showHideLink" href="#propertySummary" onclick="javascript:setInheritedVisible(true,'Property');"><img class="showHideLinkImage" src="../../images/collapsed.gif"> Show Inherited Public Properties</a></div></div><table cellspacing="0" cellpadding="3" class="summaryTable " id="summaryTableProperty"><tr><th>&nbsp;</th><th colspan="2">Property</th><th>Defined By</th></tr><tr class="hideInheritedProperty"><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><a href="../../Object.html#constructor" class="signatureLink">constructor</a> : <a href="../../Object.html">Object</a><div class="summaryTableDescription">A reference to the class object or constructor function for a given object instance.</div></td><td class="summaryTableOwnerCol"><a href="../../Object.html">Object</a></td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#fontName" class="signatureLink">fontName</a> : <a href="../../String.html">String</a><div class="summaryTableDescription">[read-only] The name of an embedded font.</div></td><td class="summaryTableOwnerCol">Font</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#fontStyle" class="signatureLink">fontStyle</a> : <a href="../../String.html">String</a><div class="summaryTableDescription">[read-only] The style of the font.</div></td><td class="summaryTableOwnerCol">Font</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#fontType" class="signatureLink">fontType</a> : <a href="../../String.html">String</a><div class="summaryTableDescription">[read-only] The type of the font.</div></td><td class="summaryTableOwnerCol">Font</td></tr><tr class="hideInheritedProperty"><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><a href="../../Object.html#prototype" class="signatureLink">prototype</a> : <a href="../../Object.html">Object</a><div class="summaryTableDescription">[static] A reference to the prototype object of a class or function object.</div></td><td class="summaryTableOwnerCol"><a href="../../Object.html">Object</a></td></tr></table></div><a name="methodSummary"></a><div class="summarySection"><div class="summaryTableTitle">Public Methods </div><div class="showHideLinks"><div id="hideInheritedMethod" class="hideInheritedMethod"><a class="showHideLink" href="#methodSummary" onclick="javascript:setInheritedVisible(false,'Method');"><img class="showHideLinkImage" src="../../images/expanded.gif"> Hide Inherited Public Methods</a></div><div id="showInheritedMethod" class="showInheritedMethod"><a class="showHideLink" href="#methodSummary" onclick="javascript:setInheritedVisible(true,'Method');"><img class="showHideLinkImage" src="../../images/collapsed.gif"> Show Inherited Public Methods</a></div></div><table cellspacing="0" cellpadding="3" class="summaryTable " id="summaryTableMethod"><tr><th>&nbsp;</th><th colspan="2">Method</th><th>Defined By</th></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#enumerateFonts()" class="signatureLink">enumerateFonts</a>(enumerateDeviceFonts:<a href="../../Boolean.html">Boolean</a> = false):<a href="../../Array.html">Array</a></div><div class="summaryTableDescription">[static] Specifies whether to provide a list of the currently available embedded fonts.</div></td><td class="summaryTableOwnerCol">Font</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#hasGlyphs()" class="signatureLink">hasGlyphs</a>(str:<a href="../../String.html">String</a>):<a href="../../Boolean.html">Boolean</a></div><div class="summaryTableDescription">Specifies whether a provided string can be displayed using the currently assigned font.</div></td><td class="summaryTableOwnerCol">Font</td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../Object.html#hasOwnProperty()" class="signatureLink">hasOwnProperty</a>(name:<a href="../../String.html">String</a>):<a href="../../Boolean.html">Boolean</a></div><div class="summaryTableDescription">Indicates whether an object has a specified property defined.</div></td><td class="summaryTableOwnerCol"><a href="../../Object.html">Object</a></td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../Object.html#isPrototypeOf()" class="signatureLink">isPrototypeOf</a>(theClass:<a href="../../Object.html">Object</a>):<a href="../../Boolean.html">Boolean</a></div><div class="summaryTableDescription">Indicates whether an instance of the Object class is in the prototype chain of the object specified 
  as the parameter.</div></td><td class="summaryTableOwnerCol"><a href="../../Object.html">Object</a></td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../Object.html#propertyIsEnumerable()" class="signatureLink">propertyIsEnumerable</a>(name:<a href="../../String.html">String</a>):<a href="../../Boolean.html">Boolean</a></div><div class="summaryTableDescription">Indicates whether the specified property exists and is enumerable.</div></td><td class="summaryTableOwnerCol"><a href="../../Object.html">Object</a></td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#registerFont()" class="signatureLink">registerFont</a>(font:<a href="../../Class.html">Class</a>):<a href="../../specialTypes.html#void">void</a></div><div class="summaryTableDescription">[static] Registers a font class in the global font list.</div></td><td class="summaryTableOwnerCol">Font</td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../Object.html#setPropertyIsEnumerable()" class="signatureLink">setPropertyIsEnumerable</a>(name:<a href="../../String.html">String</a>, isEnum:<a href="../../Boolean.html">Boolean</a> = true):<a href="../../specialTypes.html#void">void</a></div><div class="summaryTableDescription">Sets the availability of a dynamic property for loop operations.</div></td><td class="summaryTableOwnerCol"><a href="../../Object.html">Object</a></td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../Object.html#toString()" class="signatureLink">toString</a>():<a href="../../String.html">String</a></div><div class="summaryTableDescription">Returns the string representation of the specified object.</div></td><td class="summaryTableOwnerCol"><a href="../../Object.html">Object</a></td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../Object.html#valueOf()" class="signatureLink">valueOf</a>():<a href="../../Object.html">Object</a></div><div class="summaryTableDescription">Returns the primitive value of the specified object.</div></td><td class="summaryTableOwnerCol"><a href="../../Object.html">Object</a></td></tr></table></div><script language="javascript" type="text/javascript"><!--
                      showHideInherited();
                      --></script><div class="MainContent"><div class="detailSectionHeader">Property Detail</div><a name="propertyDetail"></a><a name="fontName"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">fontName</td><td class="detailHeaderType">property</td></tr></table><div class="detailBody"><code>fontName:<a href="../../String.html">String</a></code>&nbsp;&nbsp;[read-only] <p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>The name of an embedded font.</p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get fontName():<a href="../../String.html">String</a></code><br/></div><a name="propertyDetail"></a><a name="fontStyle"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">fontStyle</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>fontStyle:<a href="../../String.html">String</a></code>&nbsp;&nbsp;[read-only] <p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>The style of the font. This value can be any of the values defined in the FontStyle class.</p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get fontStyle():<a href="../../String.html">String</a></code><br/><p><span class="label">See also</span></p><div class="seeAlso"><a href="FontStyle.html" target="">flash.text.FontStyle</a></div></div><a name="propertyDetail"></a><a name="fontType"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">fontType</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>fontType:<a href="../../String.html">String</a></code>&nbsp;&nbsp;[read-only] <p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>The type of the font. This value can be any of the constants defined in the FontType class.</p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get fontType():<a href="../../String.html">String</a></code><br/><p><span class="label">See also</span></p><div class="seeAlso"><a href="FontType.html" target="">flash.text.FontType</a></div></div><a name="methodDetail"></a><div class="detailSectionHeader">Method Detail</div><a name="enumerateFonts()"></a><a name="enumerateFonts(Boolean)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">enumerateFonts</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td></tr></table><div class="detailBody"><code> public static function enumerateFonts(enumerateDeviceFonts:<a href="../../Boolean.html">Boolean</a> = false):<a href="../../Array.html">Array</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>Specifies whether to provide a list of the currently available embedded fonts.</p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">enumerateDeviceFonts</span>:<a href="../../Boolean.html">Boolean</a></code> (default = <code>false</code>)<code></code> &mdash; 
              Indicates whether you want to limit the list to only the currently available embedded fonts. 
        If this is set to
              <code>true</code>
              then a list of all fonts, both device fonts and embedded fonts, is returned.
        If this is set to
              <code>false</code>
              then only a list of embedded fonts is returned.
            </td></tr></table></p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="../../Array.html">Array</a></code> &mdash; A list of available fonts as an array of Font objects.</td></tr></table><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          This example first calls the static method
          <code>Font.enumerateFonts()</code>
          to get a list of all device and embedded fonts. Then it sorts the resulting Array of Font objects 
 by the
          <code>fontName</code>
          property.
          <p>
            Next the example shows how to call the
            <code>Font.enumerateFonts()</code>
            method with the
            <code>enumerateDeviceFonts</code>
            parameter set to false. The resulting Array only includes 
 embedded Font objects. (If you run this code within an application that does not contain
 any embedded fonts, the
            <code>embeddedFonts</code>
            array will be empty.)
          </p>
          
          <div class="listing"><pre>import flash.text.Font;

var allFonts:Array = Font.enumerateFonts(true);
allFonts.sortOn("fontName", Array.CASEINSENSITIVE);

var embeddedFonts:Array = Font.enumerateFonts(false);
embeddedFonts.sortOn("fontName", Array.CASEINSENSITIVE);</pre></div>
        </div></div><a name="hasGlyphs()"></a><a name="hasGlyphs(String)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">hasGlyphs</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> public function hasGlyphs(str:<a href="../../String.html">String</a>):<a href="../../Boolean.html">Boolean</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>Specifies whether a provided string can be displayed using the currently assigned font.</p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">str</span>:<a href="../../String.html">String</a></code> &mdash; The string to test against the current font.</td></tr></table></p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="../../Boolean.html">Boolean</a></code> &mdash; 
              A value of
              <code>true</code>
              if the specified string can be fully displayed using this font.
            </td></tr></table></div><a name="registerFont()"></a><a name="registerFont(Class)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">registerFont</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> public static function registerFont(font:<a href="../../Class.html">Class</a>):<a href="../../specialTypes.html#void">void</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>Registers a font class in the global font list.</p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">font</span>:<a href="../../Class.html">Class</a></code> &mdash; The class you want to add to the global font list.</td></tr></table></p></div><br/><br/><hr><br/><p></p><center class="copyright"> &copy; 2004-2008 Adobe Systems Incorporated. All rights reserved. <br/>Thu Oct 30 2008, 07:08 PM -07:00  </center><div style="display:none">Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font Font </div><div style="display:none">flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font flash.text.Font </div></div></body></html><!-- &copy; 2004-2008 Adobe Systems Incorporated. All rights reserved. <br/>Thu Oct 30 2008, 07:08 PM -07:00  -->
