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

📄 chapter2.htm

📁 TrueType字库标准文档
💻 HTM
📖 第 1 页 / 共 5 页
字号:
<TR>
<TD VALIGN=TOP> </TD><TD VALIGN=TOP><STRONG>Lookup</STRONG><BR>FfiFiLookup</TD><TD VALIGN=BOTTOM>Lookup[1] table definition</TD></TR>
<TR>
<TD VALIGN=TOP>0004</TD><TD VALIGN=TOP>4</TD><TD VALIGN=TOP>LookupType<BR>  ligature subst</TD></TR>
<TR>
<TD VALIGN=TOP>000C</TD><TD VALIGN=TOP>0x000C</TD><TD VALIGN=TOP>LookupFlag- IgnoreLigatures, IgnoreMarks</TD></TR>
<TR>
<TD VALIGN=TOP>0001</TD><TD VALIGN=TOP>1</TD><TD VALIGN=TOP>SubTableCount</TD></TR>
<TR>
<TD VALIGN=TOP>0028</TD><TD VALIGN=TOP>FfiFiSubtable</TD><TD VALIGN=TOP>offset to FfiFi ligature substitution subtable<HR></TD></TR>
<TR>
<TD VALIGN=TOP> </TD><TD VALIGN=TOP><STRONG>Lookup</STRONG><BR>EszetLookup</TD><TD VALIGN=BOTTOM>Lookup[2] table definition</TD></TR>
<TR>
<TD VALIGN=TOP>0004</TD><TD VALIGN=TOP>4</TD><TD VALIGN=TOP>LookupType- ligature subst</TD></TR>
<TR>
<TD VALIGN=TOP>000C</TD><TD VALIGN=TOP>0x000C</TD><TD VALIGN=TOP>LookupFlag- IgnoreLigatures, IgnoreMarks</TD></TR>
<TR>
<TD VALIGN=TOP>0001</TD><TD VALIGN=TOP>1</TD><TD VALIGN=TOP>SubTableCount</TD></TR>
<TR>
<TD VALIGN=TOP>0038</TD><TD VALIGN=TOP>EszetSubtable</TD><TD VALIGN=TOP>offset to Eszet ligature substitution subtable</TD></TR>
</TABLE>
&nbsp;&nbsp;

<H3>Example 5: CoverageFormat1 Table (GlyphID List)</H3>

<P>Example 5 illustrates a Coverage table that lists the GlyphIDs of all lowercase descender glyphs in a font. The table uses the list format instead of the range format because the GlyphIDs for the descender glyphs are not consecutively ordered. 


<BR>&nbsp;<BR><FONT SIZE=5>Example 5</FONT>
<TABLE BGCOLOR="#F0F0F0" WIDTH=530 BORDER=0 CELLPADDING=3>
<THEAD>
<TR>
<TH BGCOLOR="#C0C0C0">Hex Data</TH><TH BGCOLOR="#C0C0C0">Source</TH><TH BGCOLOR="#C0C0C0">Comments</TH></TR>
</THEAD><TBODY>
<TR>
<TD VALIGN=TOP> </TD><TD VALIGN=TOP><STRONG>CoverageFormat1</STRONG><BR>DescenderCoverage</TD><TD VALIGN=BOTTOM>Coverage table definition</TD></TR>
<TR>
<TD VALIGN=TOP>0001</TD><TD VALIGN=TOP>1</TD><TD VALIGN=BOTTOM>CoverageFormat lists</TD></TR>
<TR>
<TD VALIGN=TOP>0005</TD><TD VALIGN=TOP>5</TD><TD VALIGN=TOP>GlyphCount</TD></TR>
<TR>
<TD VALIGN=TOP>0038</TD><TD VALIGN=TOP>gGlyphID</TD><TD VALIGN=BOTTOM>GlyphArray[0], in GlyphID order</TD></TR>
<TR>
<TD VALIGN=TOP>003B</TD><TD VALIGN=TOP>jGlyphID</TD><TD VALIGN=TOP>GlyphArray[1]</TD></TR>
<TR>
<TD VALIGN=TOP>0041</TD><TD VALIGN=TOP>pGlyphID</TD><TD VALIGN=TOP>GlyphArray[2]</TD></TR>
<TR>
<TD VALIGN=TOP>0042</TD><TD VALIGN=TOP>qGlyphID</TD><TD VALIGN=TOP>GlyphArray[3]</TD></TR>
<TR>
<TD VALIGN=TOP>004A</TD><TD VALIGN=TOP>yGlyphID</TD><TD VALIGN=TOP>GlyphArray[4]</TD></TR>
</TABLE>
&nbsp;&nbsp;

<H3>Example 6: CoverageFormat2 Table (GlyphID Ranges)</H3>

<P>Example 6 shows a Coverage table that defines ten numeral glyphs (0 through 9). The table uses the range format instead of the list format because the GlyphIDs are ordered consecutively in the font. The StartCoverageIndex of zero (0) indicates that the first GlyphID, for the zero glyph, returns a Coverage Index of 0. The second GlyphID, for the numeral one (1) glyph, returns a Coverage Index of 1, and so on. 


<BR>&nbsp;<BR><FONT SIZE=5>Example 6</FONT>
<TABLE BGCOLOR="#F0F0F0" WIDTH=530 BORDER=0 CELLPADDING=3>
<THEAD>
<TR>
<TH BGCOLOR="#C0C0C0">Hex Data</TH><TH BGCOLOR="#C0C0C0">Source</TH><TH BGCOLOR="#C0C0C0">Comments</TH></TR>
</THEAD><TBODY>
<TR>
<TD VALIGN=TOP> </TD><TD VALIGN=TOP><STRONG>CoverageFormat2</STRONG><BR>NumeralCoverage</TD><TD VALIGN=BOTTOM>Coverage table definition</TD></TR>
<TR>
<TD VALIGN=TOP>0002</TD><TD VALIGN=TOP>2</TD><TD VALIGN=BOTTOM>CoverageFormat, GlyphID ranges</TD></TR>
<TR>
<TD VALIGN=TOP>0001</TD><TD VALIGN=TOP>1</TD><TD VALIGN=BOTTOM>RangeCount<BR>RangeRecord[0]</TD></TR>
<TR>
<TD VALIGN=TOP>004E</TD><TD VALIGN=TOP>0glyphID</TD><TD VALIGN=TOP>Start GlyphID</TD></TR>
<TR>		
<TD VALIGN=TOP>0057</TD><TD VALIGN=TOP>9glyphID</TD><TD VALIGN=TOP>End GlyphID</TD></TR>
<TR>		
<TD VALIGN=TOP>0000</TD><TD VALIGN=TOP>0</TD><TD VALIGN=BOTTOM>StartCoverageIndex, first CoverageIndex = 0</TD></TR>
</TABLE>
&nbsp;&nbsp;

<H3>Example 7: ClassDefFormat1 Table (Class Array)</H3>

<P>The ClassDef table in Example 7 assigns class values to the lowercase glyphs in a font. The x-height glyphs are in Class 0, the ascender glyphs are in Class 1, and the descender glyphs are in Class 2. The array begins with the index for the lowercase &quot;a&quot; glyph.


<BR>&nbsp;<BR><FONT SIZE=5>Example 7</FONT>
<TABLE BGCOLOR="#F0F0F0" WIDTH=530 BORDER=0 CELLPADDING=3>
<THEAD>
<TR>
<TH BGCOLOR="#C0C0C0">Hex Data</TH><TH BGCOLOR="#C0C0C0">Source</TH><TH BGCOLOR="#C0C0C0">Comments</TH></TR>
</THEAD><TBODY>
<TR>
<TD VALIGN=TOP> </TD><TD VALIGN=TOP><STRONG>ClassDefFormat1</STRONG><BR>LowercaseClassDef</TD><TD VALIGN=BOTTOM>ClassDef table definition</TD></TR>
<TR>
<TD VALIGN=TOP>0001</TD><TD VALIGN=TOP>1</TD><TD VALIGN=TOP>ClassFormat</TD></TR>
<TR>
<TD VALIGN=TOP>0032</TD><TD VALIGN=TOP>aGlyphID</TD><TD VALIGN=TOP>StartGlyph</TD></TR>
<TR>		
<TD VALIGN=TOP>001A</TD><TD VALIGN=TOP>26</TD><TD VALIGN=TOP>GlyphCount</TD></TR>
<TR>
<TD VALIGN=TOP>0000</TD><TD VALIGN=TOP>0</TD><TD VALIGN=TOP>aGlyph, Xheight Class 0</TD></TR>
<TR>
<TD VALIGN=TOP>0001</TD><TD VALIGN=TOP>1</TD><TD VALIGN=TOP>bGlyph, Ascender Class 1</TD></TR>
<TR>
<TD VALIGN=TOP>0000</TD><TD VALIGN=TOP>0</TD><TD VALIGN=TOP>cGlyph, Xheight Class 0</TD></TR>
<TR>
<TD VALIGN=TOP>0001</TD><TD VALIGN=TOP>1</TD><TD VALIGN=TOP>dGlyph, Ascender Class 1</TD></TR>
<TR>
<TD VALIGN=TOP>0000</TD><TD VALIGN=TOP>0</TD><TD VALIGN=TOP>eGlyph, Xheight Class 0</TD></TR>
<TR>
<TD VALIGN=TOP>0001</TD><TD VALIGN=TOP>1</TD><TD VALIGN=TOP>fGlyph, Ascender Class 1</TD></TR>
<TR>
<TD VALIGN=TOP>0002</TD><TD VALIGN=TOP>2</TD><TD VALIGN=TOP>gGlyph, Descender Class 2</TD></TR>
<TR>
<TD VALIGN=TOP>0001</TD><TD VALIGN=TOP>1</TD><TD VALIGN=TOP>hGlyph, Ascender Class 1</TD></TR>
<TR>
<TD VALIGN=TOP>0000</TD><TD VALIGN=TOP>0</TD><TD VALIGN=TOP>iGlyph, Ascender Class 1</TD></TR>
<TR>
<TD VALIGN=TOP>0002</TD><TD VALIGN=TOP>2</TD><TD VALIGN=TOP>jGlyph, Descender Class 2</TD></TR>
<TR>
<TD VALIGN=TOP>0001</TD><TD VALIGN=TOP>1</TD><TD VALIGN=TOP>kGlyph, Ascender Class 1</TD></TR>
<TR>
<TD VALIGN=TOP>0001</TD><TD VALIGN=TOP>1</TD><TD VALIGN=TOP>lGlyph, Ascender Class 1</TD></TR>
<TR>
<TD VALIGN=TOP>0000</TD><TD VALIGN=TOP>0</TD><TD VALIGN=TOP>mGlyph, Xheight Class 0</TD></TR>
<TR>
<TD VALIGN=TOP>0000</TD><TD VALIGN=TOP>0</TD><TD VALIGN=TOP>nGlyph, Xheight Class 0</TD></TR>
<TR>
<TD VALIGN=TOP>0000</TD><TD VALIGN=TOP>0</TD><TD VALIGN=TOP>oGlyph, Xheight Class 0</TD></TR>
<TR>
<TD VALIGN=TOP>0002</TD><TD VALIGN=TOP>2</TD><TD VALIGN=TOP>pGlyph, Descender Class 2</TD></TR>
<TR>
<TD VALIGN=TOP>0002</TD><TD VALIGN=TOP>2</TD><TD VALIGN=TOP>qGlyph, Descender Class 2</TD></TR>
<TR>
<TD VALIGN=TOP>0000</TD><TD VALIGN=TOP>0</TD><TD VALIGN=TOP>rGlyph, Xheight Class 0</TD></TR>
<TR>
<TD VALIGN=TOP>0000</TD><TD VALIGN=TOP>0</TD><TD VALIGN=TOP>sGlyph, Xheight Class 0</TD></TR>
<TR>
<TD VALIGN=TOP>0001</TD><TD VALIGN=TOP>1</TD><TD VALIGN=TOP>tGlyph, Ascender Class 1</TD></TR>
<TR>
<TD VALIGN=TOP>0000</TD><TD VALIGN=TOP>0</TD><TD VALIGN=TOP>uGlyph, Xheight Class 0</TD></TR>
<TR>
<TD VALIGN=TOP>0000</TD><TD VALIGN=TOP>0</TD><TD VALIGN=TOP>vGlyph, Xheight Class 0</TD></TR>
<TR>
<TD VALIGN=TOP>0000</TD><TD VALIGN=TOP>0</TD><TD VALIGN=TOP>wGlyph, Xheight Class 0</TD></TR>
<TR>
<TD VALIGN=TOP>0000</TD><TD VALIGN=TOP>0</TD><TD VALIGN=TOP>xGlyph, Xheight Class 0</TD></TR>
<TR>
<TD VALIGN=TOP>0002</TD><TD VALIGN=TOP>2</TD><TD VALIGN=TOP>yGlyph, Descender Class 2</TD></TR>
<TR>
<TD VALIGN=TOP>0000</TD><TD VALIGN=TOP>0</TD><TD VALIGN=TOP>zGlyph, Xheight Class 0</TD></TR>
</TABLE>
&nbsp;&nbsp;

<H3>Example 8: ClassDefFormat2 Table (Class Ranges)</H3>

<P>In Example 8, the ClassDef table assigns class values to four types of glyphs in the Arabic script: medium-height base glyphs, high base glyphs, very high base glyphs, and default mark glyphs. The table lists only Class 1, Class 2, and Class 3; all glyphs not explicitly assigned a class fall into Class 0. 

<P>The table uses the range format because the GlyphIDs in each class are ordered consecutively in the font. In the ClassRange array, ClassRange definitions are ordered by the Start glyph index in each range. The indices of the high base glyphs, defined in ClassRange[0], are first in the font and have a class value of 2. ClassRange[1] defines all the very high base glyphs and assigns a class value of 3. ClassRange[2] contains all default mark glyphs; the class value is 1. Class 0 consists of all the medium-height base glyphs, which are not explicitly assigned a class value.


<BR>&nbsp;<BR><FONT SIZE=5>Example 8</FONT>
<TABLE BGCOLOR="#F0F0F0" WIDTH=530 BORDER=0 CELLPADDING=3>
<THEAD>
<TR>
<TH BGCOLOR="#C0C0C0">Hex Data</TH><TH BGCOLOR="#C0C0C0">Source</TH><TH BGCOLOR="#C0C0C0">Comments</TH></TR>
</THEAD><TBODY>
<TR>
<TD VALIGN=TOP> </TD><TD VALIGN=TOP><STRONG>ClassDefFormat2</STRONG><BR>GlyphHeightClassDef</TD><TD VALIGN=TOP>Class table definition</TD></TR>
<TR>
<TD VALIGN=TOP>0002</TD><TD VALIGN=TOP>2</TD><TD VALIGN=TOP>Class Format ranges</TD></TR>
<TR>
<TD VALIGN=TOP>0003</TD><TD VALIGN=TOP>3</TD><TD VALIGN=TOP>ClassRangeCount<BR>ClassRange[0], ordered by StartGlyphID</TD></TR>
<TR>
<TD VALIGN=TOP>0030</TD><TD VALIGN=TOP>tahGlyphID</TD><TD VALIGN=TOP>Start<BR>  first GlyphID in the range</TD></TR>
<TR> 
<TD VALIGN=TOP>0031</TD><TD VALIGN=TOP>dhahGlyphID</TD><TD VALIGN=TOP>End<BR>  Last GlyphID in the range</TD></TR>
<TR>
<TD VALIGN=TOP>0002</TD><TD VALIGN=TOP>2</TD><TD VALIGN=TOP>Class, high base glyphs, ClassRange[1]</TD></TR>
<TR>
<TD VALIGN=TOP>0040</TD><TD VALIGN=TOP>cafGlyphID</TD><TD VALIGN=TOP>Start, first GlyphID in the range</TD></TR>
<TR> 
<TD VALIGN=TOP>0041 </TD><TD VALIGN=TOP>gafGlyphID</TD><TD VALIGN=TOP>End, Last GlyphID in the range</TD></TR>
<TR>
<TD VALIGN=TOP>0003</TD><TD VALIGN=TOP>3</TD><TD VALIGN=TOP>Class, very high base glyphs, ClassRange[2]</TD></TR>
<TR>
<TD VALIGN=TOP>00D2</TD><TD VALIGN=TOP>fathatanDefaultGlyphID</TD><TD VALIGN=TOP>Start, first GlyphID in the range</TD></TR>
<TR> 
<TD VALIGN=TOP>00D3</TD><TD VALIGN=TOP>dammatanDefaultGlyphID</TD><TD VALIGN=TOP>End, Last GlyphID in the range</TD></TR>
<T

⌨️ 快捷键说明

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