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

📄 head.htm

📁 TrueType字库标准文档
💻 HTM
字号:
<HTML>
<HEAD>
<TITLE>The 'head' Table</TITLE>
<STYLE>
<!--
	BODY  {background: #FFFFFF; link: #000080}
	H1	{font-size: 24pt; color: #c60029}
	H2	{font-size: 18pt; color: black}
	H3    {font-size: 16pt; color: black}
	H4    {font-size: 14pt; color: black}
 CAPTION    {font-size: 16pt; font-weight: Bold}
	A:link {text-decoration: none}
-->
</STYLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" LINK="#000080">
<TABLE WIDTH=480 CELLPADDING=8 CELLSPACING=0 BORDER=0>

<TR><TD><IMG WIDTH=100 HEIGHT=1 ALT="" SRC="/truetype/otspec/pixel.gif" BORDER=0></TD>
<TD><H1>Table Formats</H1></TD></TR>

<TR><TD></TD><TD ALIGN=TOP>
<H2>head - Font Header</H2>
<P>
This table gives global information about
the font. The bounding box values should be computed using <CITE>only</CITE>
glyphs that have contours. Glyphs with no contours should be ignored
for the purposes of these calculations.

<TABLE WIDTH=480 BGCOLOR="#F0F0F0">
<THEAD>
<TR><TH BGCOLOR="#C0C0C0">Type</TH><TH BGCOLOR="#C0C0C0">Name</TH><TH BGCOLOR="#C0C0C0">Description</TH></TR>
</THEAD>
<TBODY>
<TR><TD VALIGN=TOP>Fixed</TD><TD VALIGN=TOP>Table version number</TD><TD VALIGN=TOP>0x00010000 for version 1.0.</TD></TR>
<TR><TD VALIGN=TOP>Fixed</TD><TD VALIGN=TOP>fontRevision</TD><TD VALIGN=TOP>Set by font manufacturer.</TD></TR>
<TR><TD VALIGN=TOP>ULONG</TD><TD VALIGN=TOP>checkSumAdjustment</TD><TD VALIGN=TOP>To compute:  set it to 0, sum the entire font as ULONG, then store 0xB1B0AFBA - sum.</TD></TR>
<TR><TD VALIGN=TOP>ULONG</TD><TD VALIGN=TOP>magicNumber</TD><TD VALIGN=TOP>Set to 0x5F0F3CF5.</TD></TR>
<TR><TD VALIGN=TOP>USHORT</TD><TD VALIGN=TOP>flags</TD><TD VALIGN=TOP>Bit 0 - baseline for font at y=0;
<BR><BR>
Bit 1 - left sidebearing at x=0;<BR><BR>
Bit 2 - instructions may depend on point size; <BR><BR>
Bit 3 - force ppem to integer values for all internal scaler math; may use fractional ppem sizes if this bit is clear; <BR><BR>
Bit 4 - instructions may alter advance width (the advance widths might not scale linearly); <BR><BR>

Note: All other bits must be zero.</TD></TR>
<TR><TD VALIGN=TOP>USHORT</TD><TD VALIGN=TOP>unitsPerEm</TD><TD VALIGN=TOP>Valid range is from 16 to 16384</TD></TR>
<TR><TD VALIGN=TOP>longDateTime</TD><TD VALIGN=TOP>created</TD><TD VALIGN=TOP>International date (8-byte field).</TD></TR>
<TR><TD VALIGN=TOP>longDateTime</TD><TD VALIGN=TOP>modified</TD><TD VALIGN=TOP>International date (8-byte field).</TD></TR>
<TR><TD VALIGN=TOP>FWord</TD><TD VALIGN=TOP>xMin</TD><TD VALIGN=TOP>For all glyph bounding boxes.</TD></TR>
<TR><TD VALIGN=TOP>FWord</TD><TD VALIGN=TOP>yMin</TD><TD VALIGN=TOP>For all glyph bounding boxes.</TD></TR>
<TR><TD VALIGN=TOP>FWord</TD><TD VALIGN=TOP>xMax</TD><TD VALIGN=TOP>For all glyph bounding boxes.</TD></TR>
<TR><TD VALIGN=TOP>FWord</TD><TD VALIGN=TOP>yMax</TD><TD VALIGN=TOP>For all glyph bounding boxes.</TD></TR>
<TR><TD VALIGN=TOP>USHORT</TD><TD VALIGN=TOP>macStyle</TD><TD VALIGN=TOP>Bit 0 bold (if set to 1); Bit 1 italic (if set to 1)
<BR>
Bits 2-15 reserved (set to 0).</TD></TR>
<TR><TD VALIGN=TOP>USHORT</TD><TD VALIGN=TOP>lowestRecPPEM</TD><TD VALIGN=TOP>Smallest readable size in pixels.</TD></TR>
<TR><TD VALIGN=TOP>SHORT</TD><TD VALIGN=TOP>fontDirectionHint</TD><TD VALIGN=TOP> 0   Fully mixed directional glyphs;
<BR><BR>
 1   Only strongly left to right; <BR><BR>

 2   Like 1 but also contains neutrals; <BR><BR>

-1   Only strongly right to left; <BR><BR>

-2   Like -1 but also contains neutrals.</TD></TR>
<TR><TD VALIGN=TOP>SHORT</TD><TD VALIGN=TOP>indexToLocFormat</TD><TD VALIGN=TOP>0 for short offsets, 1 for long.</TD></TR>
<TR><TD VALIGN=TOP>SHORT</TD><TD VALIGN=TOP>glyphDataFormat</TD><TD VALIGN=TOP>0 for current format.</TD></TR>
</TABLE>&nbsp;&nbsp;<P>
<P>
<HR>
<SUP>1</SUP> A neutral character has no inherent directionality; it is not a character with zero (0) width.  Spaces and punctuation are examples of neutral characters.  Non-neutral characters are those with inherent directionality.  For example, Roman letters (left-to-right) and Arabic letters(right-to-left) have directionality.  In a &quot;normal&quot; Roman font where spaces and punctuation are present, the font direction hints should be set to two (2).
<HR>


<p>Note that macStyle bits must agree with the
'OS/2' table fsSelection bits. The fsSelection bits are used over
the macStyle bits in Microsoft Windows. The PANOSE values and
'post' table values are ignored for determining bold or italic
fonts.
<P>
The Date format used in this table follows the Macintosh convention
of the number of seconds since 1904 (see Apple's <CITE>Inside Macintosh</CITE>
series).

&nbsp;<br>&nbsp;<br>
<FONT FACE="Arial, Helvetica" SIZE=1>
Microsoft Typography Web Site <A HREF="/truetype/otspec/CPYRIGHT.htm">&copy; 1996 Microsoft Corporation</A>
<BR>
Comments to the Microsoft Typography group: <A HREF="mailto:ttwsite@microsoft.com">ttwsite@microsoft.com</A>
<BR>
<A HREF="/truetype/default.htm">Home</a> | <a href="/truetype/creators.htm">Information for Developers</a>
&nbsp;<BR>
Last updated 03 September 1996

</FONT>
</TD></TR>
</TABLE>
</BODY>
</HTML>



⌨️ 快捷键说明

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