⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 class_hffont.html

📁 swf文件结构介绍
💻 HTML
字号:
<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 9">
<meta name=Originator content="Microsoft Word 9">
<link rel=File-List href="./header_files/filelist.xml">
<title>FFFSDK</title>
<!--[if gte mso 9]><xml>
 <o:DocumentProperties>
  <o:Author>michael</o:Author>
  <o:LastAuthor>michael</o:LastAuthor>
  <o:Revision>4</o:Revision>
  <o:TotalTime>80</o:TotalTime>
  <o:Created>1999-09-28T21:47:00Z</o:Created>
  <o:LastSaved>1999-09-29T01:42:00Z</o:LastSaved>
  <o:Pages>1</o:Pages>
  <o:Words>48</o:Words>
  <o:Characters>277</o:Characters>
  <o:Company>Middlesoft</o:Company>
  <o:Lines>2</o:Lines>
  <o:Paragraphs>1</o:Paragraphs>
  <o:CharactersWithSpaces>340</o:CharactersWithSpaces>
  <o:Version>9.2720</o:Version>
 </o:DocumentProperties>
</xml><![endif]-->
<link rel=Stylesheet type="text/css" media=all href=doxygen.css>
<style>
<!--
 /* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-parent:"";
	margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;
	text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
	{color:blue;
	text-decoration:underline;
	text-underline:single;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;
	mso-header-margin:.5in;
	mso-footer-margin:.5in;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1027"/>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1"/>
 </o:shapelayout></xml><![endif]-->
</head>

<body bgcolor=white lang=EN-US link=blue vlink=blue style='tab-interval:.5in'>
<!-- Insert HTML here --><RIGHT>

<div class=Section1>

<div style='border:solid windowtext 1.0pt;padding:1.0pt 4.0pt 1.0pt 4.0pt;
mso-border-shadow:yes'>

<p class=MsoNormal style='margin-right:55.5pt;border:none;mso-border-alt:solid windowtext 1.0pt;
padding:0in;mso-padding-alt:1.0pt 4.0pt 1.0pt 4.0pt;mso-border-shadow:yes'><span
style='background:#E0E0E0'><span style="mso-spacerun: yes">&nbsp;</span><a
href="hierarchy.html">Class Hierarchy</a> &nbsp; <a href="classes.html">Alphabetical
List</a> &nbsp; <a href="headers.html">Header Files</a> &nbsp; <a
href="functions.html">Compound Members</a> &nbsp; 18 Nov 1999<o:p></o:p></span></p>

</div>

<meta name=robots content=noindex>

<p class=MsoNormal style='margin-right:55.5pt'><span style='background:#E0E0E0'><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></p>

<p class=MsoNormal style='margin-right:55.5pt'><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></p>

</div>

</body>

</html>
<h1>HFFont  Class Reference</h1>Define a font. <a href="#_details">More...</a><p><code>#include &lt;<a class="el" href="class_hffont-include.html">HFFont.h</a>&gt;</code><p><p>Class diagram for HFFont:<p><center><img src="class_hffont.gif" usemap="#HFFont_map" border="0"></center><map name="HFFont_map"><p><area href="class_hfobject.html" ALT="HFObject" shape="rect" coords="0,0,66,24"></MAP></P><a href="class_hffont-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0><tr><td colspan=4><br><h2>Public Members</h2></td></tr><tr><td><img src="null.gif"></td><td><img src="null.gif"></td><td nowrap align=right valign=top>&nbsp;</td><td valign=top><a class="el" href="class_hffont.html#a0">HFFont</a> ( const char* name )</td></tr><tr><td><img src=null.gif></td><td><img src=null.gif></td><td></td><td><font size=-1><em>Creates a font.</em> <a href="#a0">More...</a><em></em></font><br><br></td></tr><p><tr><td><img src="null.gif"></td><td><img src="null.gif"></td><td nowrap align=right valign=top>void&nbsp;</td><td valign=top><a class="el" href="class_hffont.html#a1">AddGlyph</a> ( <a class="el" href="class_hfpolygon.html">HFPolygon</a>* shape, int code, int advance )</td></tr><tr><td><img src=null.gif></td><td><img src=null.gif></td><td></td><td><font size=-1><em>Add a glyph to the font.</em> <a href="#a1">More...</a><em></em></font><br><br></td></tr><p><tr><td><img src="null.gif"></td><td><img src="null.gif"></td><td nowrap align=right valign=top>int&nbsp;</td><td valign=top><a class="el" href="class_hffont.html#a2">GlyphCount</a> ()</td></tr><tr><td><img src=null.gif></td><td><img src=null.gif></td><td></td><td><font size=-1><em>Return how many glyphs in the font.</em> <a href="#a2">More...</a><em></em></font><br><br></td></tr><p><tr><td><img src="null.gif"></td><td><img src="null.gif"></td><td nowrap align=right valign=top>int&nbsp;</td><td valign=top><a class="el" href="class_hffont.html#a3">GetGlyphCodeFromAscii</a> ( int unicode )</td></tr><tr><td><img src=null.gif></td><td><img src=null.gif></td><td></td><td><font size=-1><em>Gets a glyph code from an ascii/unicode value. Returns -1 if not in font.</em> <a href="#a3">More...</a><em></em></font><br><br></td></tr><p><tr><td><img src="null.gif"></td><td><img src="null.gif"></td><td nowrap align=right valign=top>int&nbsp;</td><td valign=top><a class="el" href="class_hffont.html#a4">GetAdvance</a> ( int glyphCode )</td></tr><tr><td><img src=null.gif></td><td><img src=null.gif></td><td></td><td><font size=-1><em>Returns the advance for a give glyph code.</em> <a href="#a4">More...</a><em></em></font><br><br></td></tr><p><tr><td><img src="null.gif"></td><td><img src="null.gif"></td><td nowrap align=right valign=top>virtual void&nbsp;</td><td valign=top><a class="el" href="class_hffont.html#a5">AddToObjectList</a> ( std::list&lt;FObj*&gt; *objList, <a class="el" href="class_hfmovie.html">HFMovie</a>* movie )</td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>Define a font.<p>The HFFont is a child of <a class="el" href="class_hfobject.html">HFObject</a> class. <dl compact><dt><b>See also: </b><dd><a class="el" href="class_hfobject.html">HFObject</a>. </dl><hr><h2>Member Function Documentation</h2><a name="a0" doxytag="HFFont::HFFont"><p><table width=100%% cellpadding=2 cellspacing=0 border=0><tr><td class="md"><b>HFFont::HFFont (const char * <em>name</em>)</b></td></tr></table></a><div class="in"><p>Creates a font.<p><dl compact><dt><b>Parameters: </b><dd><em>name</em> -  The name of the font. </dl><dl compact><dt><b>See also: </b><dd><a class="el" href="class_hfobject.html">HFObject</a> </dl></div><a name="a1" doxytag="HFFont::AddGlyph"><p><table width=100%% cellpadding=2 cellspacing=0 border=0><tr><td class="md"><b>void HFFont::AddGlyph (<a class="el" href="class_hfpolygon.html">HFPolygon</a> * <em>shape</em>, int <em>code</em>, int <em>advance</em>)</b></td></tr></table></a><div class="in"><p>Add a glyph to the font.<p>A font is built from other shapes. (Normally polygons.) The polygons should be built inside a 1024x1024 box, with their origin at 0,0. <br> The AddGlypth method takes a shape (for example, one that looks like the letter A) and adds it to the font set with a unicode value and an advance. <dl compact><dt><b>Parameters: </b><dd><em>shape</em> -  The polygon defining the glyph to be added. <dd><em>code</em> -  The unicode (or ascii, ect.) value associated with the font. (For example, the code for a shape that looks like an A would be 65.) <dd><em>advance</em> -  The distance between the left of this letter, and the left edge of the next letter. If our letter a was about 500 twips wide, its advance might be 600 twips or so. </dl><dl compact><dt><b>See also: </b><dd><a class="el" href="class_hfobject.html">HFObject</a> </dl></div><a name="a2" doxytag="HFFont::GlyphCount"><p><table width=100%% cellpadding=2 cellspacing=0 border=0><tr><td class="md"><b>int HFFont::GlyphCount ()<code> [inline]</code></b></td></tr></table></a><div class="in"><p>Return how many glyphs in the font.<p><dl compact><dt><b>Returns: </b><dd>The number of glyphs in the font. </dl><dl compact><dt><b>See also: </b><dd><a class="el" href="class_hfobject.html">HFObject</a> </dl></div><a name="a3" doxytag="HFFont::GetGlyphCodeFromAscii"><p><table width=100%% cellpadding=2 cellspacing=0 border=0><tr><td class="md"><b>int HFFont::GetGlyphCodeFromAscii (int <em>unicode</em>)</b></td></tr></table></a><div class="in"><p>Gets a glyph code from an ascii/unicode value. Returns -1 if not in font.<p>Normally, a user will never call this function. The glyph code is the internal code for the font. It is an index, so the first letter you add will be internal code 0, even if it is ascii 65. <dl compact><dt><b>Parameters: </b><dd><em>unicode</em> -  Unicode or ascii value. </dl><dl compact><dt><b>Returns: </b><dd>The internal code. </dl></div><a name="a4" doxytag="HFFont::GetAdvance"><p><table width=100%% cellpadding=2 cellspacing=0 border=0><tr><td class="md"><b>int HFFont::GetAdvance (int <em>glyphCode</em>)</b></td></tr></table></a><div class="in"><p>Returns the advance for a give glyph code.<p>Normally, a user will never call this function. Given an internal code, returns the advance. <dl compact><dt><b>Parameters: </b><dd><em>glyphCode</em> -  Internal glyph code. See GetGlyphCodeFromAscii. </dl><dl compact><dt><b>Returns: </b><dd>Advance value. </dl><dl compact><dt><b>See also: </b><dd><a class="el" href="class_hfobject.html">HFObject</a> </dl></div><a name="a5" doxytag="HFFont::AddToObjectList"><p><table width=100%% cellpadding=2 cellspacing=0 border=0><tr><td class="md"><b>virtual void HFFont::AddToObjectList (std::list&lt;FObj *&gt;* <em>objList</em>, <a class="el" href="class_hfmovie.html">HFMovie</a> * <em>movie</em>)<code> [virtual]</code></b></td></tr></table></a><div class="in"><p><p><p>Reimplemented from <a class="el" href="class_hfobject.html#a4">HFObject</a>.</div><hr>The documentation for this class was generated from the following file:<ul><li><a class="el" href="HFFont.h.html">HFFont.h</a></ul><html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 9">
<meta name=Originator content="Microsoft Word 9">
<link rel=File-List href="./footer_files/filelist.xml">
<title>Sunday, September 26, 1999</title>
<!--[if gte mso 9]><xml>
 <o:DocumentProperties>
  <o:Author>michael</o:Author>
  <o:LastAuthor>michael</o:LastAuthor>
  <o:Revision>5</o:Revision>
  <o:TotalTime>18</o:TotalTime>
  <o:Created>1999-09-27T06:04:00Z</o:Created>
  <o:LastSaved>1999-09-28T21:56:00Z</o:LastSaved>
  <o:Pages>1</o:Pages>
  <o:Words>9</o:Words>
  <o:Characters>56</o:Characters>
  <o:Company>Middlesoft</o:Company>
  <o:Lines>1</o:Lines>
  <o:Paragraphs>1</o:Paragraphs>
  <o:CharactersWithSpaces>68</o:CharactersWithSpaces>
  <o:Version>9.2720</o:Version>
 </o:DocumentProperties>
</xml><![endif]-->
<style>
<!--
 /* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-parent:"";
	margin-top:0in;
	margin-right:0in;
	margin-bottom:0in;
	margin-left:.2in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	mso-bidi-font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";
	color:black;
	mso-bidi-language:HE;}
p.MsoFooter, li.MsoFooter, div.MsoFooter
	{margin-top:0in;
	margin-right:0in;
	margin-bottom:0in;
	margin-left:.2in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	tab-stops:center 3.0in right 6.0in;
	background:#333399;
	border:none;
	mso-border-alt:solid windowtext .5pt;
	padding:0in;
	mso-padding-alt:1.0pt 4.0pt 1.0pt 4.0pt;
	font-size:10.0pt;
	mso-bidi-font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";
	color:white;
	mso-bidi-language:HE;
	font-weight:bold;
	mso-bidi-font-weight:normal;}
p.MsoBlockText, li.MsoBlockText, div.MsoBlockText
	{margin-top:0in;
	margin-right:1.0in;
	margin-bottom:6.0pt;
	margin-left:1.0in;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	mso-bidi-font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";
	mso-bidi-language:HE;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;
	mso-header-margin:.5in;
	mso-footer-margin:.5in;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1027"/>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1"/>
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US style='tab-interval:.5in'>

<div class=Section1>

<div style='border:solid windowtext .5pt;padding:1.0pt 4.0pt 1.0pt 4.0pt;
background:#333399'>

<p class=MsoFooter align=center style='margin-right:82.5pt;text-align:center;
tab-stops:.5in'><span style='background:#333399'>Sunday, September 26, 1999<span
style='mso-tab-count:2'>牋牋牋牋牋牋牋牋

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -