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

📄 hmtx.htm

📁 TrueType字库标准文档
💻 HTM
字号:
<HTML>
<HEAD>
<TITLE>The 'hmtx' 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>hmtx - Horizontal Metrics</H2>
<P>
The type longHorMetric is defined as an array where each element
has two parts: the advance width, which is of type uFWord, and
the left side bearing, which is of type FWord. Or, more formally:
<BLOCKQUOTE>
<PRE>
typedef struct 	_longHorMetric {
	uFWord	advanceWidth;
	FWord	lsb;
}  longHorMetric;<BR>

</PRE>
</BLOCKQUOTE>

<P>
<TABLE WIDTH=480 BGCOLOR="#F0F0F0">
<THEAD>
<TR><TH BGCOLOR="#C0C0C0">Field</TH><TH BGCOLOR="#C0C0C0">Type</TH><TH BGCOLOR="#C0C0C0">Description</TH></TR>
</THEAD>
<TBODY>
<TR><TD VALIGN=TOP>hMetrics</TD><TD VALIGN=TOP>longHorMetric
<BR><BR>
[numberOfHMetrics]
<TD VALIGN=TOP>Paired advance width and left side bearing values for each glyph. The value numOfHMetrics comes from the 'hhea' table. If the font is monospaced, only one entry need be in the array, but that entry is required. The last entry applies to all subsequent glyphs.</TD></TR>
<TR><TD VALIGN=TOP>leftSideBearing </TD><TD VALIGN=TOP>FWord[ ]</TD><TD VALIGN=TOP>Here the advanceWidth is assumed to be the same as the advanceWidth for the last entry above. The number of entries in this array is derived from numGlyphs (from 'maxp' table) minus numberOfHMetrics. This generally is used with a run of monospaced glyphs (e.g., Kanji fonts or Courier fonts). Only one run is allowed and it must be at the end. This allows a monospaced font to vary the left side bearing values for each glyph.</TD></TR>
</TABLE>&nbsp;&nbsp;<P>
<P>
For any glyph, xmax and xmin are given in
'glyf' table, lsb and aw are given in 'hmtx' table. rsb is calculated
as follows:
<PRE>
<CENTER>rsb = aw - (lsb + xmax - xmin)</CENTER>
</PRE>
<P>
If pp1 and pp2 are phantom points used to
control lsb and rsb, their initial position in x is calculated
as follows:
<PRE>
<CENTER>pp1 = xmin - lsb             pp2 = pp1 + aw
</pre></center>

&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>
</TABLE>
</BODY>
</HTML>


⌨️ 快捷键说明

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