﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-前进的路上-随笔分类-FreeType</title><link>http://www.cppblog.com/wc250en007/category/16812.html</link><description>前进的路上</description><language>zh-cn</language><lastBuildDate>Sun, 14 Aug 2011 18:09:19 GMT</lastBuildDate><pubDate>Sun, 14 Aug 2011 18:09:19 GMT</pubDate><ttl>60</ttl><item><title>freetype之多线程</title><link>http://www.cppblog.com/wc250en007/archive/2011/08/13/153267.html</link><dc:creator>Let me see see</dc:creator><author>Let me see see</author><pubDate>Sat, 13 Aug 2011 06:36:00 GMT</pubDate><guid>http://www.cppblog.com/wc250en007/archive/2011/08/13/153267.html</guid><wfw:comment>http://www.cppblog.com/wc250en007/comments/153267.html</wfw:comment><comments>http://www.cppblog.com/wc250en007/archive/2011/08/13/153267.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/wc250en007/comments/commentRss/153267.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/wc250en007/services/trackbacks/153267.html</trackback:ping><description><![CDATA[<div>这里要说的不是多线程使用FreeType的功能，而是多线程导致FreeType FT_Load_Char 失败的问题，总结了一些思路，希望遇到此类问题的朋友少走些弯路<br /><br />&nbsp;在游戏开发的时候遇到了一种情况，每次进入游戏时，总是报FreeType FT_Load_Char 加载字形失败的一些错误，如&#8216;任&#8217;&#8216;踪&#8217;... 最郁闷的不是每次都出现，我以为是我使用的FreeType方法有问题<br /><br />1.问：是不是FreeType加载某些字形会有失败的情况<br />解决方法: 我在自己的FreeType小程序上将所有失败字形的全部加载了1000000遍，NoProblem 呵呵，这说明大神们的库在一般情况下是经得住考验的，排除了这个问题，说明问题出在我们自身程序上<br /><br />2. 问：既然是出现在我们的程序中，那我使用的FreeType 加载字形一定就失败了么？ 我的代码是移植过来的，莫非换了个地方就发生了质变,还是我在那里处理错了？<br />解决方法：将其他UI的加载和逻辑全部去掉，只在GameFrameRender 中渲染加载失败的文字N遍， 结果没有任何的问题，FT_Load_Char 一如既往的正常<br /><br />3.问: 莫非是UI的某个控件的错误使用导致某块内存区域写坏导致 加载字形偶然性的失败？<br />解决方法：将UI的使用逻辑添加好，再次测试，OK，问题在别的地方<br /><br />4.问： 情况总是出现在进入游戏时，进入游戏时，只有加载地图，而加载地图在一个线程LoadMapThreadProc中执行的,和这里有关系么？<br />解决方法:将其他无关的代码注释掉，只保留加载地图和渲染文字... 运行...&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 终于崩溃了...<br /><br />找到问题所在了，和多线程有关，see了下这段多线程的代码，临界区的处理还真是少啊，其中一段代码，当地图加载完毕后，会将人物传送到加载地图的指定位置，并将小地图Rrefresh（）<br />刷新时，会将当前地图的名字出现在屏幕上<br />主线程：ParseText()&nbsp; ...&nbsp; ParseChar()&nbsp; ... FT_Load_Char() ...<br />其他线程: ParseText()&nbsp; ...&nbsp; ParseChar()&nbsp; ... FT_Load_Char() ...<br /><br />果断将这段 LoadMapThread 中的刷新文本的函数 放到主线程中，需要刷新时和主线程通信一下... OK 没问题<br /><br />总结一下：多线程同时处理FT_Load_Char结果很可能是未知的，我们一定要处理好文字多线程的处理，否则即使当前没有出现过什么问题，以后也会回来头大的回来修改的<br /><br />查找错误使用的工具: VLD检测内存泄露越界&nbsp; 控制台和日志记录(没她不行啊。。)<br /><br /></div><img src ="http://www.cppblog.com/wc250en007/aggbug/153267.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/wc250en007/" target="_blank">Let me see see</a> 2011-08-13 14:36 <a href="http://www.cppblog.com/wc250en007/archive/2011/08/13/153267.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>教你怎么开发漂亮的描边字体(转)</title><link>http://www.cppblog.com/wc250en007/archive/2011/07/13/150812.html</link><dc:creator>Let me see see</dc:creator><author>Let me see see</author><pubDate>Tue, 12 Jul 2011 23:46:00 GMT</pubDate><guid>http://www.cppblog.com/wc250en007/archive/2011/07/13/150812.html</guid><wfw:comment>http://www.cppblog.com/wc250en007/comments/150812.html</wfw:comment><comments>http://www.cppblog.com/wc250en007/archive/2011/07/13/150812.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/wc250en007/comments/commentRss/150812.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/wc250en007/services/trackbacks/150812.html</trackback:ping><description><![CDATA[<span class="Apple-style-span" style="word-spacing: 0px; font: medium Simsun; text-transform: none; color: rgb(0,0,0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate; orphans: 2; widows: 2; webkit-border-horizontal-spacing: 0px; webkit-border-vertical-spacing: 0px; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0px"><span class="Apple-style-span" style="font-size: 12px; color: rgb(70,70,70); font-family: Verdana, 宋体, sans-serif; text-align: left"> 
<div class="articalTitle" style="clear: both; padding-bottom: 10px; line-height: 20px">
<h2 class="titName SG_txta" id="t_69a2aeff0100ol7e" style="border-top-width: 0px; padding-right: 0px; display: inline; padding-left: 0px; font-weight: 300; border-left-width: 0px; font-size: 18px; border-bottom-width: 0px; padding-bottom: 0px; margin: 0px; color: rgb(106,63,48); padding-top: 0px; font-family: 微软雅黑, 黑体; list-style-type: none; border-right-width: 0px">教你怎么开发漂亮的描边字体</h2><span class="Apple-converted-space">&nbsp;</span><span class="time SG_txtc" style="font-size: 10px; margin-left: 5px; color: rgb(124,124,124); margin-right: 13px; font-family: Arial; white-space: nowrap">(2011-01-23 10:28:15)</span> 
<div class="turnBoxzz" style="float: right"><a class="SG_aBtn SG_aBtn_ico SG_turn" id="quote_set_sign2" style="padding-right: 0px; background-position: 0px 0px; overflow-y: hidden; padding-left: 3px; font-size: 12px! important;background-image: url(http://simg.sinajs.cn/blog7newtpl/image/3/3_9/images/sg_newsp.png); overflow-x: hidden; padding-bottom: 6px; cursor: pointer; color: rgb(106,63,48); margin-right: 6px; padding-top: 4px; white-space: nowrap; position: relative; text-decoration: none" onclick="scope.articel_quote_alert &amp;&amp; scope.articel_quote_alert('69a2aeff0100ol7e');return false;" href="javascript:;"><cite style="padding-right: 12px; background-position: 100% -28px; padding-left: 26px; font-size: 12px! important;background-image: url(http://simg.sinajs.cn/blog7newtpl/image/3/3_9/images/sg_newsp.png); overflow-x: visible; padding-bottom: 6px; line-height: 23px; padding-top: 4px; font-style: normal; white-space: nowrap; height: 23px; text-align: left; min-width: 1px"><img class="SG_icon SG_icon111" style="border-top-width: 0px; padding-right: 0px; background-position: 495px -60px; padding-left: 0px; border-left-width: 0px; left: 9px;background-image: url(http://simg.sinajs.cn/blog7style/images/common/sg_icon.png); border-bottom-width: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px; list-style-type: none; position: absolute; top: 4px; border-right-width: 0px" height="15" src="http://simg.sinajs.cn/blog7style/images/common/sg_trans.gif" width="15" align="absMiddle"  alt="" />转载</cite></a></div></div>
<div class="articalTag" id="sina_keyword_ad_area" style="clear: both; width: 690px; word-break: break-all; line-height: 20px">
<table style="padding-right: 0px; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px">
<tbody>
<tr>
<td class="blog_tag" style="padding-right: 10px; padding-left: 0px; font-size: 12px; padding-bottom: 0px; margin: 0px; vertical-align: top; padding-top: 0px; font-family: 宋体"><span class="SG_txtb" style="color: rgb(124,124,124); font-family: 宋体">标签：</span><span class="Apple-converted-space">&nbsp;</span> 
<h3 style="border-top-width: 0px; padding-right: 0px; display: inline; padding-left: 0px; font-weight: normal; border-left-width: 0px; font-size: 12px; border-bottom-width: 0px; padding-bottom: 0px; margin: 0px 5px 0px 0px; padding-top: 0px; list-style-type: none; border-right-width: 0px"><a style="color: rgb(106,63,48); font-family: 宋体; white-space: nowrap; text-decoration: none" href="http://uni.sina.com.cn/c.php?t=blog&amp;k=%D4%D3%CC%B8&amp;ts=bpost&amp;stype=tag" target="_blank">杂谈</a></h3></td>
<td class="blog_class" style="padding-right: 0px; padding-left: 0px; font-size: 12px; padding-bottom: 0px; margin: 0px; vertical-align: top; width: 220px; padding-top: 0px; font-family: 宋体; white-space: nowrap"></td></tr></tbody></table></div>
<div class="articalContent  " id="sina_keyword_ad_area2" style="clear: both; overflow-y: hidden; font-size: 14px; overflow-x: hidden; padding-bottom: 30px; width: 690px; word-break: normal; line-height: 21px; padding-top: 18px; font-family: simsun; word-wrap: normal">
<p style="border-top-width: 0px; padding-right: 0px; padding-left: 0px; border-left-width: 0px; border-bottom-width: 0px; padding-bottom: 0px; margin: 0px 0px 5px; word-break: normal; line-height: 21px; padding-top: 0px; list-style-type: none; border-right-width: 0px; word-wrap: normal">在天龙八部，聊个斋这些国产的游戏中，都用到了freetype，并使用到freetype提供的描边生成方法。</p>
<p style="border-top-width: 0px; padding-right: 0px; padding-left: 0px; border-left-width: 0px; border-bottom-width: 0px; padding-bottom: 0px; margin: 0px 0px 5px; word-break: normal; line-height: 21px; padding-top: 0px; list-style-type: none; border-right-width: 0px; word-wrap: normal">关于freetype怎么应用描边，有个sample，链接如下</p>
<p style="border-top-width: 0px; padding-right: 0px; padding-left: 0px; border-left-width: 0px; border-bottom-width: 0px; padding-bottom: 0px; margin: 0px 0px 5px; word-break: normal; line-height: 21px; padding-top: 0px; list-style-type: none; border-right-width: 0px; word-wrap: normal">&nbsp;<wbr><a style="color: rgb(106,63,48); text-decoration: none" href="http://www.freetype.org/freetype2/docs/tutorial/example2.cpp">http://www.freetype.org/freetype2/docs/tutorial/example2.cpp</a></p>
<p style="border-top-width: 0px; padding-right: 0px; padding-left: 0px; border-left-width: 0px; border-bottom-width: 0px; padding-bottom: 0px; margin: 0px 0px 5px; word-break: normal; line-height: 21px; padding-top: 0px; list-style-type: none; border-right-width: 0px; word-wrap: normal">但是这个sample中的生成描边的方式是低效率的，因为是间接生成的，在描绘函数里面得到span的信息，然后又遍历了span再生成bitmap，最后再输出。</p>
<p style="border-top-width: 0px; padding-right: 0px; padding-left: 0px; border-left-width: 0px; border-bottom-width: 0px; padding-bottom: 0px; margin: 0px 0px 5px; word-break: normal; line-height: 21px; padding-top: 0px; list-style-type: none; border-right-width: 0px; word-wrap: normal">经过我一个通宵研究，我想出了一个更为直接的描绘方式。</p>
<p style="border-top-width: 0px; padding-right: 0px; padding-left: 0px; border-left-width: 0px; border-bottom-width: 0px; padding-bottom: 0px; margin: 0px 0px 5px; word-break: normal; line-height: 21px; padding-top: 0px; list-style-type: none; border-right-width: 0px; word-wrap: normal">只要把这个sample中间的一部分替换成如下代码就可以了:</p>
<p style="border-top-width: 0px; padding-right: 0px; padding-left: 0px; border-left-width: 0px; border-bottom-width: 0px; padding-bottom: 0px; margin: 0px 0px 5px; word-break: normal; line-height: 21px; padding-top: 0px; list-style-type: none; border-right-width: 0px; word-wrap: normal">&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>FT_Outline *outline = &amp;reinterpret_cast&lt;FT_OutlineGlyph&gt;(glyph)-&gt;outline;<br />&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>FT_Glyph_Get_CBox(glyph,<br />&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr><span class="Apple-converted-space">&nbsp;</span>FT_GLYPH_BBOX_GRIDFIT,<br />&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr><span class="Apple-converted-space">&nbsp;</span>&amp;bbox);<br />&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>int width = (bbox.xMax - bbox.xMin)&gt;&gt;6;<br />&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>int rows = (bbox.yMax - bbox.yMin)&gt;&gt;6;<br />&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr><br />&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>bmp.buffer = new unsigned char[width * rows];<br />&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>memset(bmp.buffer, 0, width * rows);<br />&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>bmp.width = width;<br />&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>bmp.rows = rows;<br />&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>bmp.pitch = width;<br />&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>bmp.pixel_mode = FT_PIXEL_MODE_GRAY;<br />&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>bmp.num_grays = 256;</p>
<p style="border-top-width: 0px; padding-right: 0px; padding-left: 0px; border-left-width: 0px; border-bottom-width: 0px; padding-bottom: 0px; margin: 0px 0px 5px; word-break: normal; line-height: 21px; padding-top: 0px; list-style-type: none; border-right-width: 0px; word-wrap: normal">&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>memset(&amp;params, 0, sizeof (params));<br />&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>params.source = outline;<br />&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>params.target = &amp;bmp;<br />&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>params.flags = FT_RASTER_FLAG_AA;</p>
<p style="border-top-width: 0px; padding-right: 0px; padding-left: 0px; border-left-width: 0px; border-bottom-width: 0px; padding-bottom: 0px; margin: 0px 0px 5px; word-break: normal; line-height: 21px; padding-top: 0px; list-style-type: none; border-right-width: 0px; word-wrap: normal">&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>FT_Outline_Translate(outline,-bbox.xMin,-bbox.yMin);<br />&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>FT_Outline_Render(library, outline, &amp;params);<br />&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>save_edge_buffer = bmp.buffer;<br />&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr><br />&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>FT_BBox bbox_in;<br />&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>FT_Glyph glyph_fg;<br />&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>FT_Get_Glyph(size-&gt;face-&gt;glyph, &amp;glyph_fg);<br />&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>FT_Glyph_Get_CBox(glyph_fg,<br />&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr><span class="Apple-converted-space">&nbsp;</span>FT_GLYPH_BBOX_GRIDFIT,<br />&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr><span class="Apple-converted-space">&nbsp;</span>&amp;bbox_in);</p>
<p style="border-top-width: 0px; padding-right: 0px; padding-left: 0px; border-left-width: 0px; border-bottom-width: 0px; padding-bottom: 0px; margin: 0px 0px 5px; word-break: normal; line-height: 21px; padding-top: 0px; list-style-type: none; border-right-width: 0px; word-wrap: normal">&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>bmp.buffer = new unsigned char[width * rows];<br />&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>memset(bmp.buffer, 0, width * rows);<br />&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>bmp.width = width;<br />&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>bmp.rows = rows;<br />&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>bmp.pitch = width;<br />&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>bmp.pixel_mode = FT_PIXEL_MODE_GRAY;<br />&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>bmp.num_grays = 256;<br />&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>outline = &amp;reinterpret_cast&lt;FT_OutlineGlyph&gt;(glyph_fg)-&gt;outline;<br />&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>memset(&amp;params, 0, sizeof (params));<br />&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>params.source = outline;<br />&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>params.target = &amp;bmp;<br />&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>params.flags = FT_RASTER_FLAG_AA;<br />&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>FT_Outline_Translate(outline,-bbox.xMin,-bbox.yMin);<br />&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>FT_Outline_Render(library, outline, &amp;params);<br />&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>save_buffer = bmp.buffer;<br />&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr><br />&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>int inner_h = (bbox.yMax-bbox_in.yMax)&gt;&gt;6 ;<br />&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>int w = (bbox_in.xMax-bbox_in.xMin)&gt;&gt;6 ;<br />&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>int left = (bbox.xMin-bbox_in.xMin)&gt;&gt;6 ;<br />&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>width=width;<br />&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>height=rows;<br />&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>pitch = (size-&gt;face-&gt;glyph-&gt;advance.x &gt;&gt; 6)+width-w ;<br />&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>key_x=-(size-&gt;face-&gt;glyph-&gt;metrics.horiBearingX &gt;&gt; 6)-left ;<br />&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>key_y=-_ascent+inner_h+((size-&gt;face-&gt;glyph-&gt;metrics.horiBearingY) &gt;&gt; 6);</p>
<p style="border-top-width: 0px; padding-right: 0px; padding-left: 0px; border-left-width: 0px; border-bottom-width: 0px; padding-bottom: 0px; margin: 0px 0px 5px; word-break: normal; line-height: 21px; padding-top: 0px; list-style-type: none; border-right-width: 0px; word-wrap: normal">代码我做了删减，稍微修改一下就可以替代里面用到的描绘方式。</p>
<p style="border-top-width: 0px; padding-right: 0px; padding-left: 0px; border-left-width: 0px; border-bottom-width: 0px; padding-bottom: 0px; margin: 0px 0px 5px; word-break: normal; line-height: 21px; padding-top: 0px; list-style-type: none; border-right-width: 0px; word-wrap: normal">得到bitmap之后，你想怎么画就怎么画。</p>
<p style="border-top-width: 0px; padding-right: 0px; padding-left: 0px; border-left-width: 0px; border-bottom-width: 0px; padding-bottom: 0px; margin: 0px 0px 5px; word-break: normal; line-height: 21px; padding-top: 0px; list-style-type: none; border-right-width: 0px; word-wrap: normal">其实上是得到两张alpha图，一张是描边信息的alpha图，一张是字体本身的alpha图，剩下的事情，只是在画出来的时候加上你需要的颜色就可以了。</p>
<p style="border-top-width: 0px; padding-right: 0px; padding-left: 0px; border-left-width: 0px; border-bottom-width: 0px; padding-bottom: 0px; margin: 0px 0px 5px; word-break: normal; line-height: 21px; padding-top: 0px; list-style-type: none; border-right-width: 0px; word-wrap: normal">关于这种方式的描边，其实还有个bug，这个freetype的开发组还没完全解决，这个bug如下</p>
<p style="border-top-width: 0px; padding-right: 0px; padding-left: 0px; border-left-width: 0px; border-bottom-width: 0px; padding-bottom: 0px; margin: 0px 0px 5px; word-break: normal; line-height: 21px; padding-top: 0px; list-style-type: none; border-right-width: 0px; word-wrap: normal"><a style="color: rgb(106,63,48); text-decoration: none" href="http://lists.nongnu.org/archive/html/freetype/2011-01/msg00022.html">http://lists.nongnu.org/archive/html/freetype/2011-01/msg00022.html</a>。</p>
<p style="border-top-width: 0px; padding-right: 0px; padding-left: 0px; border-left-width: 0px; border-bottom-width: 0px; padding-bottom: 0px; margin: 0px 0px 5px; word-break: normal; line-height: 21px; padding-top: 0px; list-style-type: none; border-right-width: 0px; word-wrap: normal">有人说魔兽世界也用到了freetype，但是我仔细观察了魔兽的字体，发现魔兽最大也好像只支持两个像素的描边，而且魔兽的描边方式也和freetype提供的这种使用stokers的描边不一样。</p></div></span></span><img src ="http://www.cppblog.com/wc250en007/aggbug/150812.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/wc250en007/" target="_blank">Let me see see</a> 2011-07-13 07:46 <a href="http://www.cppblog.com/wc250en007/archive/2011/07/13/150812.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>使用FreeType实现矢量字体的粗体、斜体、描边、阴影效果(转)</title><link>http://www.cppblog.com/wc250en007/archive/2011/07/13/150809.html</link><dc:creator>Let me see see</dc:creator><author>Let me see see</author><pubDate>Tue, 12 Jul 2011 23:30:00 GMT</pubDate><guid>http://www.cppblog.com/wc250en007/archive/2011/07/13/150809.html</guid><wfw:comment>http://www.cppblog.com/wc250en007/comments/150809.html</wfw:comment><comments>http://www.cppblog.com/wc250en007/archive/2011/07/13/150809.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/wc250en007/comments/commentRss/150809.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/wc250en007/services/trackbacks/150809.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 使用FreeType实现矢量字体的粗体、斜体、描边、阴影效果&nbsp;前言：Freetype是一个跨平台、开源的字体渲染器，网上很多文章介绍，本人就不啰嗦了。本文重点在于实现文章标题所属的各种效果，不是Freetype的基本使用方法介绍文档，所以对于Freetype不熟悉的同学们请先学习下Freetype的基本用法，才可以使用本文中所提及的方法。正文：用FreeType实现矢...&nbsp;&nbsp;<a href='http://www.cppblog.com/wc250en007/archive/2011/07/13/150809.html'>阅读全文</a><img src ="http://www.cppblog.com/wc250en007/aggbug/150809.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/wc250en007/" target="_blank">Let me see see</a> 2011-07-13 07:30 <a href="http://www.cppblog.com/wc250en007/archive/2011/07/13/150809.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Freetype2网址</title><link>http://www.cppblog.com/wc250en007/archive/2011/07/05/150175.html</link><dc:creator>Let me see see</dc:creator><author>Let me see see</author><pubDate>Tue, 05 Jul 2011 00:09:00 GMT</pubDate><guid>http://www.cppblog.com/wc250en007/archive/2011/07/05/150175.html</guid><wfw:comment>http://www.cppblog.com/wc250en007/comments/150175.html</wfw:comment><comments>http://www.cppblog.com/wc250en007/archive/2011/07/05/150175.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/wc250en007/comments/commentRss/150175.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/wc250en007/services/trackbacks/150175.html</trackback:ping><description><![CDATA[<a href="http://blog.csdn.net/superjoel/article/details/2899119"></a><a href="http://kasicass.blog.163.com/blog/static/3956192009125112338305/">http://kasicass.blog.163.com/blog/static/3956192009125112338305/</a><a href="http://blog.csdn.net/superjoel/article/details/2899119"><br />http://blog.csdn.net/superjoel/article/details/2899119</a><br /><br />把游戏中的字体渲染替换掉<img src ="http://www.cppblog.com/wc250en007/aggbug/150175.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/wc250en007/" target="_blank">Let me see see</a> 2011-07-05 08:09 <a href="http://www.cppblog.com/wc250en007/archive/2011/07/05/150175.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>freetype2失量中文字库显示</title><link>http://www.cppblog.com/wc250en007/archive/2011/05/03/145560.html</link><dc:creator>Let me see see</dc:creator><author>Let me see see</author><pubDate>Tue, 03 May 2011 06:00:00 GMT</pubDate><guid>http://www.cppblog.com/wc250en007/archive/2011/05/03/145560.html</guid><wfw:comment>http://www.cppblog.com/wc250en007/comments/145560.html</wfw:comment><comments>http://www.cppblog.com/wc250en007/archive/2011/05/03/145560.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/wc250en007/comments/commentRss/145560.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/wc250en007/services/trackbacks/145560.html</trackback:ping><description><![CDATA[<span class=Apple-style-span style="WORD-SPACING: 0px; FONT: medium 'Times New Roman'; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; orphans: 2; widows: 2; webkit-border-horizontal-spacing: 0px; webkit-border-vertical-spacing: 0px; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0px"><span class=Apple-style-span style="FONT-SIZE: 14px; COLOR: rgb(50,62,50); LINE-HEIGHT: 21px; FONT-FAMILY: simsun; TEXT-ALIGN: left">
<h1 style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0cm 0cm 5pt 32.15pt; TEXT-INDENT: -32.15pt; PADDING-TOP: 0px; LIST-STYLE-TYPE: none; BORDER-RIGHT-WIDTH: 0px"><a style="COLOR: rgb(79,114,0); TEXT-DECORATION: underline"><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 42px; WORD-WRAP: normal" xml:lang="EN-US"><span style="WORD-BREAK: normal; LINE-HEIGHT: 42px; WORD-WRAP: normal"><font style="WORD-BREAK: normal; LINE-HEIGHT: 42px; WORD-WRAP: normal" face="Times New Roman"><font style="WORD-BREAK: normal; LINE-HEIGHT: 42px; WORD-WRAP: normal" color=#000000><font style="WORD-BREAK: normal; LINE-HEIGHT: 36px; WORD-WRAP: normal" size=5>1</font><span style="FONT: 7pt 'Times New Roman'; WORD-BREAK: normal; WORD-WRAP: normal">&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr></span></font></font></span></span><span class=Apple-converted-space>&nbsp;</span><span style="WORD-BREAK: normal; LINE-HEIGHT: 42px; FONT-FAMILY: 宋体; WORD-WRAP: normal"><font style="WORD-BREAK: normal; LINE-HEIGHT: 36px; WORD-WRAP: normal" color=#000000 size=5>引言</font></span></a></h1>
<p style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0cm 0cm 0pt; WORD-BREAK: normal; LINE-HEIGHT: 21px; PADDING-TOP: 0px; LIST-STYLE-TYPE: none; BORDER-RIGHT-WIDTH: 0px; WORD-WRAP: normal"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" size=3><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" color=#000000><span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; FONT-FAMILY: 宋体; WORD-WRAP: normal">为了在嵌入式系统实现矢量中文显示，我先在</span><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" xml:lang="EN-US"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" face="Times New Roman">PC</font></span><span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; FONT-FAMILY: 宋体; WORD-WRAP: normal">机上实现失量字库中文显示，在此基础上将其移植到嵌入式系统中。该方法是利用</span><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" xml:lang="EN-US"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" face="Times New Roman">VC++</font></span><span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; FONT-FAMILY: 宋体; WORD-WRAP: normal">开发工具，将</span><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" xml:lang="EN-US"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" face="Times New Roman">freetype</font></span><span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; FONT-FAMILY: 宋体; WORD-WRAP: normal">库函数移植到</span><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" xml:lang="EN-US"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" face="Times New Roman">VC</font></span><span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; FONT-FAMILY: 宋体; WORD-WRAP: normal">环境中进行开发。</span></font></font></p>
<h1 style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0cm 0cm 5pt 32.15pt; TEXT-INDENT: -32.15pt; PADDING-TOP: 0px; LIST-STYLE-TYPE: none; BORDER-RIGHT-WIDTH: 0px"><a style="COLOR: rgb(79,114,0); TEXT-DECORATION: underline"><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 42px; WORD-WRAP: normal" xml:lang="EN-US"><span style="WORD-BREAK: normal; LINE-HEIGHT: 42px; WORD-WRAP: normal"><font style="WORD-BREAK: normal; LINE-HEIGHT: 42px; WORD-WRAP: normal" face="Times New Roman"><font style="WORD-BREAK: normal; LINE-HEIGHT: 42px; WORD-WRAP: normal" color=#000000><font style="WORD-BREAK: normal; LINE-HEIGHT: 36px; WORD-WRAP: normal" size=5>2</font><span style="FONT: 7pt 'Times New Roman'; WORD-BREAK: normal; WORD-WRAP: normal">&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr></span></font></font></span></span><span class=Apple-converted-space>&nbsp;</span><span style="WORD-BREAK: normal; LINE-HEIGHT: 42px; FONT-FAMILY: 宋体; WORD-WRAP: normal"><font style="WORD-BREAK: normal; LINE-HEIGHT: 36px; WORD-WRAP: normal" color=#000000 size=5>实现步骤</font></span></a></h1>
<h2 style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: auto 0cm auto 28.1pt; TEXT-INDENT: -28.1pt; PADDING-TOP: 0px; LIST-STYLE-TYPE: none; BORDER-RIGHT-WIDTH: 0px"><a style="COLOR: rgb(79,114,0); TEXT-DECORATION: underline"><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 31px; WORD-WRAP: normal" xml:lang="EN-US"><span style="WORD-BREAK: normal; LINE-HEIGHT: 31px; WORD-WRAP: normal"><font style="WORD-BREAK: normal; LINE-HEIGHT: 31px; WORD-WRAP: normal" face="Times New Roman"><font style="WORD-BREAK: normal; LINE-HEIGHT: 31px; WORD-WRAP: normal" color=#000000><font style="WORD-BREAK: normal; LINE-HEIGHT: 36px; WORD-WRAP: normal" size=5>2.1</font><span style="FONT: 7pt 'Times New Roman'; WORD-BREAK: normal; WORD-WRAP: normal">&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr></span></font></font></span></span><span class=Apple-converted-space>&nbsp;</span><font style="WORD-BREAK: normal; LINE-HEIGHT: 36px; WORD-WRAP: normal" size=5><font style="WORD-BREAK: normal; LINE-HEIGHT: 36px; WORD-WRAP: normal" color=#000000><span style="WORD-BREAK: normal; LINE-HEIGHT: 36px; FONT-FAMILY: 宋体; WORD-WRAP: normal">建立</span><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 36px; WORD-WRAP: normal" xml:lang="EN-US"><font style="WORD-BREAK: normal; LINE-HEIGHT: 36px; WORD-WRAP: normal" face="Times New Roman">VC</font></span></font></font></a><span style="WORD-BREAK: normal; LINE-HEIGHT: 31px; WORD-WRAP: normal"><span style="WORD-BREAK: normal; LINE-HEIGHT: 31px; FONT-FAMILY: 宋体; WORD-WRAP: normal"><font style="WORD-BREAK: normal; LINE-HEIGHT: 36px; WORD-WRAP: normal" color=#000000 size=5>动态连接库工程</font></span></span></h2>
<p style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0cm 0cm 0pt; WORD-BREAK: normal; LINE-HEIGHT: 21px; PADDING-TOP: 0px; LIST-STYLE-TYPE: none; BORDER-RIGHT-WIDTH: 0px; WORD-WRAP: normal"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" size=3><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" color=#000000><span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; FONT-FAMILY: 宋体; WORD-WRAP: normal">在建立的工程中加入</span><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" xml:lang="EN-US"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" face="Times New Roman">*.lib</font></span><span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; FONT-FAMILY: 宋体; WORD-WRAP: normal">文件，以及头文件。</span></font></font></p>
<p style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0cm 0cm 0pt; WORD-BREAK: normal; LINE-HEIGHT: 21px; PADDING-TOP: 0px; LIST-STYLE-TYPE: none; BORDER-RIGHT-WIDTH: 0px; WORD-WRAP: normal"><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 21px; WORD-WRAP: normal" xml:lang="EN-US"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" face="Times New Roman" color=#000000 size=3>#include &lt;stdio.h&gt;</font></span></p>
<p style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0cm 0cm 0pt; WORD-BREAK: normal; LINE-HEIGHT: 21px; PADDING-TOP: 0px; LIST-STYLE-TYPE: none; BORDER-RIGHT-WIDTH: 0px; WORD-WRAP: normal"><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 21px; WORD-WRAP: normal" xml:lang="EN-US"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" face="Times New Roman" color=#000000 size=3>#include &lt;ft2build.h&gt;</font></span></p>
<p style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0cm 0cm 0pt; WORD-BREAK: normal; LINE-HEIGHT: 21px; PADDING-TOP: 0px; LIST-STYLE-TYPE: none; BORDER-RIGHT-WIDTH: 0px; WORD-WRAP: normal"><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 21px; WORD-WRAP: normal" xml:lang="EN-US"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" face="Times New Roman" color=#000000 size=3>//#include FT_FREETYPE_H</font></span></p>
<p style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0cm 0cm 0pt; WORD-BREAK: normal; LINE-HEIGHT: 21px; PADDING-TOP: 0px; LIST-STYLE-TYPE: none; BORDER-RIGHT-WIDTH: 0px; WORD-WRAP: normal"><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 21px; WORD-WRAP: normal" xml:lang="EN-US"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" face="Times New Roman" color=#000000 size=3>#include &lt;freetype\freetype.h&gt;</font></span></p>
<p style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0cm 0cm 0pt; WORD-BREAK: normal; LINE-HEIGHT: 21px; PADDING-TOP: 0px; LIST-STYLE-TYPE: none; BORDER-RIGHT-WIDTH: 0px; WORD-WRAP: normal"><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 21px; WORD-WRAP: normal" xml:lang="EN-US"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" face="Times New Roman" color=#000000 size=3>#include &lt;freetype\ftglyph.h&gt;</font></span></p>
<h2 style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: auto 0cm auto 28.1pt; TEXT-INDENT: -28.1pt; PADDING-TOP: 0px; LIST-STYLE-TYPE: none; BORDER-RIGHT-WIDTH: 0px"><a style="COLOR: rgb(79,114,0); TEXT-DECORATION: underline"><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 31px; WORD-WRAP: normal" xml:lang="EN-US"><span style="WORD-BREAK: normal; LINE-HEIGHT: 31px; WORD-WRAP: normal"><font style="WORD-BREAK: normal; LINE-HEIGHT: 31px; WORD-WRAP: normal" face="Times New Roman"><font style="WORD-BREAK: normal; LINE-HEIGHT: 31px; WORD-WRAP: normal" color=#000000><font style="WORD-BREAK: normal; LINE-HEIGHT: 36px; WORD-WRAP: normal" size=5>2.2</font><span style="FONT: 7pt 'Times New Roman'; WORD-BREAK: normal; WORD-WRAP: normal">&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr></span></font></font></span></span><span class=Apple-converted-space>&nbsp;</span><span style="WORD-BREAK: normal; LINE-HEIGHT: 31px; FONT-FAMILY: 宋体; WORD-WRAP: normal"><font style="WORD-BREAK: normal; LINE-HEIGHT: 36px; WORD-WRAP: normal" color=#000000 size=5>初始化库</font></span></a></h2>
<p style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0cm 0cm 0pt; WORD-BREAK: normal; TEXT-INDENT: 24pt; LINE-HEIGHT: 21px; PADDING-TOP: 0px; LIST-STYLE-TYPE: none; BORDER-RIGHT-WIDTH: 0px; WORD-WRAP: normal"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" size=3><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" color=#000000><span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; FONT-FAMILY: 宋体; WORD-WRAP: normal">简单地创建一个</span><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" xml:lang="EN-US"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" face="Times New Roman">FT_Library</font></span><span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; FONT-FAMILY: 宋体; WORD-WRAP: normal">类型的变量，例如</span><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" xml:lang="EN-US"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" face="Times New Roman">library</font></span><span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; FONT-FAMILY: 宋体; WORD-WRAP: normal">，然后象下面那样调用函数</span><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" xml:lang="EN-US"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" face="Times New Roman">FT_Init_FreeType</font></span><span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; FONT-FAMILY: 宋体; WORD-WRAP: normal">：</span></font></font></p>
<p style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0cm 0cm 0pt 24pt; WORD-BREAK: normal; TEXT-INDENT: 6pt; LINE-HEIGHT: 21px; PADDING-TOP: 0px; LIST-STYLE-TYPE: none; TEXT-ALIGN: left; BORDER-RIGHT-WIDTH: 0px; WORD-WRAP: normal" align=left><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 21px; FONT-FAMILY: 宋体; WORD-WRAP: normal" xml:lang="EN-US"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" size=3><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" color=#000000>FT_Library<span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal">&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr></span><span class=Apple-converted-space>&nbsp;</span>pFTLib<span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal">&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr></span><span class=Apple-converted-space>&nbsp;</span>=<span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal">&nbsp;<wbr></span><span class=Apple-converted-space>&nbsp;</span>NULL;</font></font></span></p>
<p style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0cm 0cm 0pt 36.35pt; WORD-BREAK: normal; TEXT-INDENT: -3.95pt; LINE-HEIGHT: 21px; PADDING-TOP: 0px; LIST-STYLE-TYPE: none; TEXT-ALIGN: left; BORDER-RIGHT-WIDTH: 0px; WORD-WRAP: normal" align=left><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 21px; WORD-WRAP: normal" xml:lang="EN-US"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" face="Times New Roman" color=#000000 size=3>//<span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal">&nbsp;<wbr></span><span class=Apple-converted-space>&nbsp;</span>Init FreeType Lib to manage memory</font></span></p>
<p style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0cm 0cm 0pt 38.9pt; WORD-BREAK: normal; LINE-HEIGHT: 21px; PADDING-TOP: 0px; LIST-STYLE-TYPE: none; TEXT-ALIGN: left; BORDER-RIGHT-WIDTH: 0px; WORD-WRAP: normal" align=left><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 21px; WORD-WRAP: normal" xml:lang="EN-US"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" face="Times New Roman" color=#000000 size=3>error<span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal">&nbsp;<wbr></span><span class=Apple-converted-space>&nbsp;</span>=<span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal">&nbsp;<wbr></span><span class=Apple-converted-space>&nbsp;</span>FT_Init_FreeType( &amp; pFTLib);</font></span></p>
<p style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0cm 0cm 0pt 22.9pt; WORD-BREAK: normal; TEXT-INDENT: 21.85pt; LINE-HEIGHT: 21px; PADDING-TOP: 0px; LIST-STYLE-TYPE: none; TEXT-ALIGN: left; BORDER-RIGHT-WIDTH: 0px; WORD-WRAP: normal" align=left><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 21px; WORD-WRAP: normal" xml:lang="EN-US"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" face="Times New Roman" color=#000000 size=3>if (error)</font></span></p>
<p style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0cm 0cm 0pt 11.75pt; WORD-BREAK: normal; TEXT-INDENT: 29.05pt; LINE-HEIGHT: 21px; PADDING-TOP: 0px; LIST-STYLE-TYPE: none; TEXT-ALIGN: left; BORDER-RIGHT-WIDTH: 0px; WORD-WRAP: normal" align=left><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 21px; WORD-WRAP: normal" xml:lang="EN-US"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" face="Times New Roman" color=#000000 size=3>{</font></span></p>
<p style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0cm 0cm 0pt 72pt; WORD-BREAK: normal; TEXT-INDENT: 0cm; LINE-HEIGHT: 21px; PADDING-TOP: 0px; LIST-STYLE-TYPE: none; TEXT-ALIGN: left; BORDER-RIGHT-WIDTH: 0px; WORD-WRAP: normal" align=left><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 21px; WORD-WRAP: normal" xml:lang="EN-US"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" face="Times New Roman" color=#000000 size=3>pFTLib<span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal">&nbsp;<wbr></span><span class=Apple-converted-space>&nbsp;</span>=<span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal">&nbsp;<wbr>&nbsp;<wbr></span><span class=Apple-converted-space>&nbsp;</span>0 ;</font></span></p>
<p style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0cm 0cm 0pt 72pt; WORD-BREAK: normal; TEXT-INDENT: 0cm; LINE-HEIGHT: 21px; PADDING-TOP: 0px; LIST-STYLE-TYPE: none; TEXT-ALIGN: left; BORDER-RIGHT-WIDTH: 0px; WORD-WRAP: normal" align=left><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 21px; WORD-WRAP: normal" xml:lang="EN-US"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" face="Times New Roman" color=#000000 size=3>printf( " There is some error when Init Library " );</font></span></p>
<p style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0cm 0cm 0pt 72pt; WORD-BREAK: normal; TEXT-INDENT: 0cm; LINE-HEIGHT: 21px; PADDING-TOP: 0px; LIST-STYLE-TYPE: none; TEXT-ALIGN: left; BORDER-RIGHT-WIDTH: 0px; WORD-WRAP: normal" align=left><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 21px; WORD-WRAP: normal" xml:lang="EN-US"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" face="Times New Roman" color=#000000 size=3>return<span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal">&nbsp;<wbr>&nbsp;<wbr></span><span class=Apple-converted-space>&nbsp;</span>- 1 ;</font></span></p>
<p style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0cm 0cm 0pt 19.9pt; WORD-BREAK: normal; TEXT-INDENT: 24pt; LINE-HEIGHT: 21px; PADDING-TOP: 0px; LIST-STYLE-TYPE: none; TEXT-ALIGN: left; BORDER-RIGHT-WIDTH: 0px; WORD-WRAP: normal" align=left><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 21px; WORD-WRAP: normal" xml:lang="EN-US"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" face="Times New Roman" color=#000000 size=3>}</font></span></p>
<h2 style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: auto 0cm auto 28.1pt; TEXT-INDENT: -28.1pt; PADDING-TOP: 0px; LIST-STYLE-TYPE: none; BORDER-RIGHT-WIDTH: 0px"><a style="COLOR: rgb(79,114,0); TEXT-DECORATION: underline"><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 31px; WORD-WRAP: normal" xml:lang="EN-US"><span style="WORD-BREAK: normal; LINE-HEIGHT: 31px; WORD-WRAP: normal"><font style="WORD-BREAK: normal; LINE-HEIGHT: 31px; WORD-WRAP: normal" face="Times New Roman"><font style="WORD-BREAK: normal; LINE-HEIGHT: 31px; WORD-WRAP: normal" color=#000000><font style="WORD-BREAK: normal; LINE-HEIGHT: 36px; WORD-WRAP: normal" size=5>2.3</font><span style="FONT: 7pt 'Times New Roman'; WORD-BREAK: normal; WORD-WRAP: normal">&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr></span></font></font></span></span><span class=Apple-converted-space>&nbsp;</span><font style="WORD-BREAK: normal; LINE-HEIGHT: 36px; WORD-WRAP: normal" size=5><font style="WORD-BREAK: normal; LINE-HEIGHT: 36px; WORD-WRAP: normal" color=#000000><span style="WORD-BREAK: normal; LINE-HEIGHT: 36px; FONT-FAMILY: 宋体; WORD-WRAP: normal">装载一个字体</span><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 36px; WORD-WRAP: normal" xml:lang="EN-US"><font style="WORD-BREAK: normal; LINE-HEIGHT: 36px; WORD-WRAP: normal" face="Times New Roman">face</font></span></font></font></a></h2>
<p style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0cm 0cm 0pt 24pt; WORD-BREAK: normal; TEXT-INDENT: -24pt; LINE-HEIGHT: 21px; PADDING-TOP: 0px; LIST-STYLE-TYPE: none; BORDER-RIGHT-WIDTH: 0px; WORD-WRAP: normal"><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 21px; WORD-WRAP: normal" xml:lang="EN-US"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" size=3><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" color=#000000><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" face="Times New Roman"><span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal">&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr></span><span class=Apple-converted-space>&nbsp;</span>FT_Face<span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal">&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr></span><span class=Apple-converted-space>&nbsp;</span>pFTFace<span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal">&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr></span><span class=Apple-converted-space>&nbsp;</span>=<span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal">&nbsp;<wbr></span><span class=Apple-converted-space>&nbsp;</span>NULL;</font></font></font></span></p>
<p style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0cm 0cm 0pt 24pt; WORD-BREAK: normal; TEXT-INDENT: -24pt; LINE-HEIGHT: 21px; PADDING-TOP: 0px; LIST-STYLE-TYPE: none; BORDER-RIGHT-WIDTH: 0px; WORD-WRAP: normal"><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 21px; WORD-WRAP: normal" xml:lang="EN-US"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" size=3><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" color=#000000><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" face="Times New Roman"><span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal">&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr></span><span class=Apple-converted-space>&nbsp;</span>//<span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal">&nbsp;<wbr></span><span class=Apple-converted-space>&nbsp;</span>create font face from font file</font></font></font></span></p>
<p style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0cm 0cm 0pt 24pt; WORD-BREAK: normal; TEXT-INDENT: -24pt; LINE-HEIGHT: 21px; PADDING-TOP: 0px; LIST-STYLE-TYPE: none; BORDER-RIGHT-WIDTH: 0px; WORD-WRAP: normal"><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 21px; WORD-WRAP: normal" xml:lang="EN-US"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" size=3><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" color=#000000><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" face="Times New Roman"><span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal">&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr></span><span class=Apple-converted-space>&nbsp;</span>error<span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal">&nbsp;<wbr></span><span class=Apple-converted-space>&nbsp;</span>=<span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal">&nbsp;<wbr></span><span class=Apple-converted-space>&nbsp;</span>FT_New_Face(pFTLib, "C:\\WINDOWS\\Fonts\\arialuni.ttf",0,&amp; pFTFace);</font></font></font></span></p>
<h2 style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: auto 0cm auto 28.1pt; TEXT-INDENT: -28.1pt; PADDING-TOP: 0px; LIST-STYLE-TYPE: none; BORDER-RIGHT-WIDTH: 0px"><a style="COLOR: rgb(79,114,0); TEXT-DECORATION: underline"><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 31px; WORD-WRAP: normal" xml:lang="EN-US"><span style="WORD-BREAK: normal; LINE-HEIGHT: 31px; WORD-WRAP: normal"><font style="WORD-BREAK: normal; LINE-HEIGHT: 31px; WORD-WRAP: normal" face="Times New Roman"><font style="WORD-BREAK: normal; LINE-HEIGHT: 31px; WORD-WRAP: normal" color=#000000><font style="WORD-BREAK: normal; LINE-HEIGHT: 36px; WORD-WRAP: normal" size=5>2.4</font><span style="FONT: 7pt 'Times New Roman'; WORD-BREAK: normal; WORD-WRAP: normal">&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr></span></font></font></span></span><span class=Apple-converted-space>&nbsp;</span><span style="WORD-BREAK: normal; LINE-HEIGHT: 31px; FONT-FAMILY: 宋体; WORD-WRAP: normal"><font style="WORD-BREAK: normal; LINE-HEIGHT: 36px; WORD-WRAP: normal" color=#000000 size=5>设置当前象素尺寸</font></span></a></h2>
<p style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0cm 0cm 0pt; WORD-BREAK: normal; LINE-HEIGHT: 21px; PADDING-TOP: 0px; LIST-STYLE-TYPE: none; BORDER-RIGHT-WIDTH: 0px; WORD-WRAP: normal"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" size=3><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" color=#000000><span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; FONT-FAMILY: 宋体; WORD-WRAP: normal">当一个新的</span><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" xml:lang="EN-US"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" face="Times New Roman">face</font></span><span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; FONT-FAMILY: 宋体; WORD-WRAP: normal">对象建立时，所有成员都在初始化阶段</span><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" xml:lang="EN-US"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" face="Times New Roman">0</font></span><span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; FONT-FAMILY: 宋体; WORD-WRAP: normal">设为</span><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" xml:lang="EN-US"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" face="Times New Roman">0</font></span><span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; FONT-FAMILY: 宋体; WORD-WRAP: normal">。调用</span><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" xml:lang="EN-US"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" face="Times New Roman">FT_Set_Char_Size</font></span><span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; FONT-FAMILY: 宋体; WORD-WRAP: normal">对这个结构进行赋值。这里有一个例子，它在一个</span><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" xml:lang="EN-US"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" face="Times New Roman">300x300dpi</font></span><span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; FONT-FAMILY: 宋体; WORD-WRAP: normal">设备上把字符大小设置为</span><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" xml:lang="EN-US"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" face="Times New Roman">16pt</font></span><span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; FONT-FAMILY: 宋体; WORD-WRAP: normal">。</span></font></font></p>
<p style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0cm 0cm 0pt; WORD-BREAK: normal; LINE-HEIGHT: 21px; PADDING-TOP: 0px; LIST-STYLE-TYPE: none; BORDER-RIGHT-WIDTH: 0px; WORD-WRAP: normal"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" size=3><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" color=#000000><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" xml:lang="EN-US"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" face="Times New Roman"><span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal">&nbsp;<wbr></span>error = FT_Set_Char_Size( face,<span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal">&nbsp;<wbr>&nbsp;<wbr></span></font></span></font></font></p>
<p style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0cm 0cm 0pt; WORD-BREAK: normal; LINE-HEIGHT: 21px; PADDING-TOP: 0px; LIST-STYLE-TYPE: none; BORDER-RIGHT-WIDTH: 0px; WORD-WRAP: normal"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" size=3><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" color=#000000><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" xml:lang="EN-US"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" face="Times New Roman"><span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal">&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr></span><span class=Apple-converted-space>&nbsp;</span>0,<span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal">&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr></span></font></span></font></font></p>
<p style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0cm 0cm 0pt; WORD-BREAK: normal; LINE-HEIGHT: 21px; PADDING-TOP: 0px; LIST-STYLE-TYPE: none; BORDER-RIGHT-WIDTH: 0px; WORD-WRAP: normal"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" size=3><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" color=#000000><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" xml:lang="EN-US"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" face="Times New Roman"><span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal">&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr></span><span class=Apple-converted-space>&nbsp;</span>16*64,<span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal">&nbsp;<wbr></span></font></span></font></font></p>
<p style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0cm 0cm 0pt; WORD-BREAK: normal; LINE-HEIGHT: 21px; PADDING-TOP: 0px; LIST-STYLE-TYPE: none; BORDER-RIGHT-WIDTH: 0px; WORD-WRAP: normal"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" size=3><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" color=#000000><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" xml:lang="EN-US"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" face="Times New Roman"><span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal">&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr></span><span class=Apple-converted-space>&nbsp;</span>300,<span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal">&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr></span></font></span></font></font></p>
<p style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0cm 0cm 0pt; WORD-BREAK: normal; LINE-HEIGHT: 21px; PADDING-TOP: 0px; LIST-STYLE-TYPE: none; BORDER-RIGHT-WIDTH: 0px; WORD-WRAP: normal"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" size=3><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" color=#000000><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" xml:lang="EN-US"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" face="Times New Roman"><span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal">&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr></span><span class=Apple-converted-space>&nbsp;</span>300 );<span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal">&nbsp;<wbr></span></font></span></font></font></p>
<p style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0cm 0cm 0pt 24pt; WORD-BREAK: normal; TEXT-INDENT: -24pt; LINE-HEIGHT: 21px; PADDING-TOP: 0px; LIST-STYLE-TYPE: none; BORDER-RIGHT-WIDTH: 0px; WORD-WRAP: normal"><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 21px; WORD-WRAP: normal" xml:lang="EN-US"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" size=3><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" color=#000000><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" face="Times New Roman"><span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal">&nbsp;<wbr></span>FT_Set_Char_Size(pFTFace,<span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal">&nbsp;<wbr></span><span class=Apple-converted-space>&nbsp;</span>16 &lt;&lt; 6 ,<span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal">&nbsp;<wbr></span><span class=Apple-converted-space>&nbsp;</span>16 &lt;&lt; 6 ,<span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal">&nbsp;<wbr></span><span class=Apple-converted-space>&nbsp;</span>300 ,<span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal">&nbsp;<wbr></span><span class=Apple-converted-space>&nbsp;</span>300 );</font></font></font></span></p>
<h2 style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: auto 0cm auto 28.1pt; TEXT-INDENT: -28.1pt; PADDING-TOP: 0px; LIST-STYLE-TYPE: none; BORDER-RIGHT-WIDTH: 0px"><a style="COLOR: rgb(79,114,0); TEXT-DECORATION: underline"><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 31px; WORD-WRAP: normal" xml:lang="EN-US"><span style="WORD-BREAK: normal; LINE-HEIGHT: 31px; WORD-WRAP: normal"><font style="WORD-BREAK: normal; LINE-HEIGHT: 31px; WORD-WRAP: normal" face="Times New Roman"><font style="WORD-BREAK: normal; LINE-HEIGHT: 31px; WORD-WRAP: normal" color=#000000><font style="WORD-BREAK: normal; LINE-HEIGHT: 36px; WORD-WRAP: normal" size=5>2.5</font><span style="FONT: 7pt 'Times New Roman'; WORD-BREAK: normal; WORD-WRAP: normal">&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr></span></font></font></span></span><span class=Apple-converted-space>&nbsp;</span><span style="WORD-BREAK: normal; LINE-HEIGHT: 31px; FONT-FAMILY: 宋体; WORD-WRAP: normal"><font style="WORD-BREAK: normal; LINE-HEIGHT: 36px; WORD-WRAP: normal" color=#000000 size=5>装载一个字形图像</font></span></a></h2>
<p style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0cm 0cm 0pt; WORD-BREAK: normal; LINE-HEIGHT: 21px; PADDING-TOP: 0px; LIST-STYLE-TYPE: none; BORDER-RIGHT-WIDTH: 0px; WORD-WRAP: normal"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" size=3><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" color=#000000><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" xml:lang="EN-US"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" face="Times New Roman">1</font></span><span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; FONT-FAMILY: 宋体; WORD-WRAP: normal">、从字符码检索字形索引</span></font></font></p>
<p style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0cm 0cm 0pt; WORD-BREAK: normal; LINE-HEIGHT: 21px; PADDING-TOP: 0px; LIST-STYLE-TYPE: none; BORDER-RIGHT-WIDTH: 0px; WORD-WRAP: normal"><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 21px; WORD-WRAP: normal" xml:lang="EN-US"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" face="Times New Roman" color=#000000 size=3>glyph_index = FT_Get_Char_Index( pFTFace, ucode[n] );</font></span></p>
<p style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0cm 0cm 0pt; WORD-BREAK: normal; LINE-HEIGHT: 21px; PADDING-TOP: 0px; LIST-STYLE-TYPE: none; BORDER-RIGHT-WIDTH: 0px; WORD-WRAP: normal"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" size=3><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" color=#000000><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" xml:lang="EN-US"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" face="Times New Roman">2</font></span><span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; FONT-FAMILY: 宋体; WORD-WRAP: normal">、从</span><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" xml:lang="EN-US"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" face="Times New Roman">face</font></span><span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; FONT-FAMILY: 宋体; WORD-WRAP: normal">中装载字形</span></font></font></p>
<p style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0cm 0cm 0pt; WORD-BREAK: normal; LINE-HEIGHT: 21px; PADDING-TOP: 0px; LIST-STYLE-TYPE: none; BORDER-RIGHT-WIDTH: 0px; WORD-WRAP: normal"><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 21px; WORD-WRAP: normal" xml:lang="EN-US"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" face="Times New Roman" color=#000000 size=3>error = FT_Load_Glyph( pFTFace, glyph_index, FT_LOAD_DEFAULT );</font></span></p>
<p style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0cm 0cm 0pt; WORD-BREAK: normal; LINE-HEIGHT: 21px; PADDING-TOP: 0px; LIST-STYLE-TYPE: none; BORDER-RIGHT-WIDTH: 0px; WORD-WRAP: normal"><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 21px; WORD-WRAP: normal" xml:lang="EN-US"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" face="Times New Roman" color=#000000 size=3>error<span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal">&nbsp;<wbr></span><span class=Apple-converted-space>&nbsp;</span>=<span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal">&nbsp;<wbr></span><span class=Apple-converted-space>&nbsp;</span>FT_Get_Glyph(pFTFace -&gt; glyph,<span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal">&nbsp;<wbr></span><span class=Apple-converted-space>&nbsp;</span>&amp; glyph);</font></span></p>
<p style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0cm 0cm 0pt; WORD-BREAK: normal; LINE-HEIGHT: 21px; PADDING-TOP: 0px; LIST-STYLE-TYPE: none; BORDER-RIGHT-WIDTH: 0px; WORD-WRAP: normal"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" size=3><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" color=#000000><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" xml:lang="EN-US"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" face="Times New Roman">3</font></span><span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; FONT-FAMILY: 宋体; WORD-WRAP: normal">、得到字形位图</span></font></font></p>
<p style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0cm 0cm 0pt; WORD-BREAK: normal; LINE-HEIGHT: 21px; PADDING-TOP: 0px; LIST-STYLE-TYPE: none; BORDER-RIGHT-WIDTH: 0px; WORD-WRAP: normal"><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 21px; WORD-WRAP: normal" xml:lang="EN-US"><font style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal" face="Times New Roman" color=#000000 size=3>FT_Glyph_To_Bitmap( &amp; glyph, ft_render_mode_normal,<span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal">&nbsp;<wbr></span><span class=Apple-converted-space>&nbsp;</span>0 ,<span style="WORD-BREAK: normal; LINE-HEIGHT: 24px; WORD-WRAP: normal">&nbsp;<wbr></span><span class=Apple-converted-space>&nbsp;</span>1 );</font></span></p>
<h2 style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: auto 0cm auto 28.1pt; TEXT-INDENT: -28.1pt; PADDING-TOP: 0px; LIST-STYLE-TYPE: none; BORDER-RIGHT-WIDTH: 0px"><a style="COLOR: rgb(79,114,0); TEXT-DECORATION: underline"><span lang=EN-US style="WORD-BREAK: normal; LINE-HEIGHT: 31px; WORD-WRAP: normal" xml:lang="EN-US"><span style="WORD-BREAK: normal; LINE-HEIGHT: 31px; WORD-WRAP: normal"><font style="WORD-BREAK: normal; LINE-HEIGHT: 31px; WORD-WRAP: normal" face="Times New Roman"><font style="WORD-BREAK: normal; LINE-HEIGHT: 31px; WORD-WRAP: normal" color=#000000><font style="WORD-BREAK: normal; LINE-HEIGHT: 36px; WORD-WRAP: normal" size=5>2.6</font><span style="FONT: 7pt 'Times New Roman'; WORD-BREAK: normal; WORD-WRAP: normal">&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr></span></font></font></span></span><span class=Apple-converted-space>&nbsp;</span><span style="WORD-BREAK: normal; LINE-HEIGHT: 31px; FONT-FAMILY: 宋体; WORD-WRAP: normal"><font style="WORD-BREAK: normal; LINE-HEIGHT: 36px; WORD-WRAP: normal" color=#000000 size=5>输出字形</font></span></a></h2>
<p style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: auto 0cm auto 28.1pt; TEXT-INDENT: -28.1pt; PADDING-TOP: 0px; LIST-STYLE-TYPE: none; BORDER-RIGHT-WIDTH: 0px">&nbsp;</p>
</span></span>
<img src ="http://www.cppblog.com/wc250en007/aggbug/145560.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/wc250en007/" target="_blank">Let me see see</a> 2011-05-03 14:00 <a href="http://www.cppblog.com/wc250en007/archive/2011/05/03/145560.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>