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

📄 vhea.htm

📁 TrueType字库标准文档
💻 HTM
字号:
<HTML>
<HEAD>
<TITLE>The 'vhea' 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>vhea - Vertical Header Table
</H2>
<P>
The vertical header table (tag name: 'vhea')
contains information needed for vertical fonts. The glyphs of
vertical fonts are written either top to bottom or bottom to top.
This table contains information that is general to the font as
a whole. Information that pertains to specific glyphs is given
in the vertical metrics table (tag name: 'vmtx') described separately.
The formats of these tables are similar to those for horizontal
metrics (hhea and hmtx).
<P>
Data in the vertical header table must be consistent with data
that appears in the vertical metrics table. The advance height
and top sidebearing values in the vertical metrics table must
correspond with the maximum advance height and minimum bottom
sidebearing values in the vertical header table.
<P>
The vertical header table format follows:Vertical
Header Table

<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>FIXED32</TD><TD VALIGN=TOP>version</TD>
<TD VALIGN=TOP>Version number of the vertical header table (0x00010000 for the initial version).</TD></TR>
<TR><TD VALIGN=TOP>SHORT</TD><TD VALIGN=TOP>ascent</TD><TD VALIGN=TOP>Distance in FUnits from the centerline to the previous line's descent.</TD></TR>
<TR><TD VALIGN=TOP>SHORT</TD><TD VALIGN=TOP>descent</TD><TD VALIGN=TOP>Distance in FUnits from the centerline to the next line's ascent.</TD></TR>
<TR><TD VALIGN=TOP>SHORT</TD><TD VALIGN=TOP>lineGap</TD><TD VALIGN=TOP>Reserved; set to 0</TD></TR>
<TR><TD VALIGN=TOP>SHORT</TD><TD VALIGN=TOP>advanceHeightMax</TD><TD VALIGN=TOP>The maximum advance height measurement in FUnits found in the font. This value must be consistent with the entries in the vertical metrics table.</TD></TR>
<TR><TD VALIGN=TOP>SHORT</TD><TD VALIGN=TOP>minTopSideBearing</TD><TD VALIGN=TOP>The minimum top sidebearing measurement found in the font, in FUnits. This value must be consistent with the entries in the vertical metrics table.</TD></TR>
<TR><TD VALIGN=TOP>SHORT</TD><TD VALIGN=TOP>minBottomSideBearing</TD><TD VALIGN=TOP>The minimum bottom sidebearing measurement found in the font, in FUnits. This value must be consistent with the entries in the vertical metrics table.</TD></TR>
<TR><TD VALIGN=TOP>SHORT</TD><TD VALIGN=TOP>yMaxExtent</TD><TD VALIGN=TOP>Defined as yMaxExtent=minTopSideBearing+(yMax-yMin)</TD></TR>
<TR><TD VALIGN=TOP>SHORT</TD><TD VALIGN=TOP>caretSlopeRise</TD><TD VALIGN=TOP>The value of the caretSlopeRise field divided by the value of the caretSlopeRun Field determines the slope of the caret. A value of 0 for the rise and a value of 1 for the run specifies a horizontal caret. A value of 1 for the rise and a value of 0 for the run specifies a vertical caret. Intermediate values are desirable for fonts whose glyphs are oblique or italic. For a vertical font, a horizontal caret is best.</TD></TR>
<TR><TD VALIGN=TOP>SHORT</TD><TD VALIGN=TOP>caretSlopeRun</TD><TD VALIGN=TOP>See the caretSlopeRise field. Value=1 for nonslanted vertical fonts.</TD></TR>
<TR><TD VALIGN=TOP>SHORT</TD><TD VALIGN=TOP>caretOffset</TD><TD VALIGN=TOP>The amount by which the highlight on a slanted glyph needs to be shifted away from the glyph in order to produce the best appearance. Set value equal to 0 for nonslanted fonts.</TD></TR>
<TR><TD VALIGN=TOP>SHORT</TD><TD VALIGN=TOP>reserved</TD><TD VALIGN=TOP>Set to 0.</TD></TR>
<TR><TD VALIGN=TOP>SHORT</TD><TD VALIGN=TOP>reserved</TD><TD VALIGN=TOP>Set to 0.</TD></TR>
<TR><TD VALIGN=TOP>SHORT</TD><TD VALIGN=TOP>reserved</TD><TD VALIGN=TOP>Set to 0.</TD></TR>
<TR><TD VALIGN=TOP>SHORT</TD><TD VALIGN=TOP>reserved</TD><TD VALIGN=TOP>Set to 0.</TD></TR>
<TR><TD VALIGN=TOP>SHORT</TD><TD VALIGN=TOP>metricDataFormat</TD><TD VALIGN=TOP>Set to 0.</TD></TR>
<TR><TD VALIGN=TOP>USHORT</TD><TD VALIGN=TOP>numOfLongVerMetrics</TD><TD VALIGN=TOP>Number of advance heights in the vertical metrics table.</TD></TR>
</TABLE>&nbsp;&nbsp;<P>

Vertical Header Table Example

<TABLE WIDTH=480 BGCOLOR="#F0F0F0">
<THEAD>
<TR><TH BGCOLOR="#C0C0C0">Offset/<BR>length</TH><TH BGCOLOR="#C0C0C0">Value</TH>
<TH BGCOLOR="#C0C0C0">Name</TH><TH BGCOLOR="#C0C0C0">Comment</TH></TR>
<TR><TD VALIGN=TOP>0/4</TD><TD VALIGN=TOP>0x00010000</TD><TD VALIGN=TOP>version</TD><TD VALIGN=TOP>Version number of the vertical header table, in fixed-point format, is 1.0</TD></TR>
<TR><TD VALIGN=TOP>4/2</TD><TD VALIGN=TOP>1024</TD><TD VALIGN=TOP>ascent</TD><TD VALIGN=TOP>Half the em-square height.</TD></TR>
<TR><TD VALIGN=TOP>6/2</TD><TD VALIGN=TOP>-1024</TD><TD VALIGN=TOP>descent</TD><TD VALIGN=TOP>Minus half the em-square height.</TD></TR>
<TR><TD VALIGN=TOP>8/2</TD><TD VALIGN=TOP>0</TD><TD VALIGN=TOP>lineGap</TD><TD VALIGN=TOP>Typographic line gap is 0 FUnits.</TD></TR>
<TR><TD VALIGN=TOP>10/2</TD><TD VALIGN=TOP>2079</TD>
<TD VALIGN=TOP>advanceHeightMax</TD><TD VALIGN=TOP>The maximum advance height measurement found in the font is 2079 FUnits.</TD></TR>
<TR><TD VALIGN=TOP>12/2</TD><TD VALIGN=TOP>-342</TD>
<TD VALIGN=TOP>minTopSideBearing</TD><TD VALIGN=TOP>The minimum top sidebearing measurement found in the font is -342 FUnits.</TD></TR>
<TR><TD VALIGN=TOP>14/2</TD><TD VALIGN=TOP>-333</TD>
<TD VALIGN=TOP>minBottomSideBearing</TD><TD VALIGN=TOP>The minimum bottom sidebearing measurement found in the font is -333 FUnits.</TD></TR>
<TR><TD VALIGN=TOP>16/2</TD><TD VALIGN=TOP>2036</TD>
<TD VALIGN=TOP>yMaxExtent</TD><TD VALIGN=TOP>minTopSideBearing+(yMax-yMin)=2036.</TD></TR>
<TR><TD VALIGN=TOP>18/2</TD><TD VALIGN=TOP>0</TD><TD VALIGN=TOP>caretSlopeRise</TD><TD VALIGN=TOP>The caret slope rise of 0 and a caret slope run of 1 indicate a horizontal caret for a vertical font.</TD></TR>
<TR><TD VALIGN=TOP>20/2</TD><TD VALIGN=TOP>1</TD>
<TD VALIGN=TOP>caretSlopeRun</TD><TD VALIGN=TOP>The caret slope rise of 0 and a caret slope run of 1 indicate a horizontal caret for a vertical font.</TD></TR>
<TR><TD VALIGN=TOP>22/2</TD><TD VALIGN=TOP>0</TD>
<TD VALIGN=TOP>caretOffset</TD><TD VALIGN=TOP>Value set to 0 for nonslanted fonts.</TD></TR>
<TR><TD VALIGN=TOP>24/4</TD><TD VALIGN=TOP>0</TD>
<TD VALIGN=TOP>reserved</TD><TD VALIGN=TOP>Set to 0.</TD></TD></TR>
<TR><TD VALIGN=TOP>26/2</TD><TD VALIGN=TOP>0</TD><TD VALIGN=TOP>reserved</TD><TD VALIGN=TOP>Set to 0.</TD></TR>
<TR><TD VALIGN=TOP>28/2</TD><TD VALIGN=TOP>0</TD><TD VALIGN=TOP>reserved</TD><TD VALIGN=TOP>Set to 0.</TD></TR>
<TR><TD VALIGN=TOP>30/2</TD><TD VALIGN=TOP>0</TD><TD VALIGN=TOP>reserved</TD><TD VALIGN=TOP>Set to 0.</TD></TR>
<TR><TD VALIGN=TOP>32/2</TD><TD VALIGN=TOP>0</TD><TD VALIGN=TOP>metricDataFormat</TD><TD VALIGN=TOP>Set to 0.</TD></TR>
<TR><TD VALIGN=TOP>34/2</TD><TD VALIGN=TOP>258</TD><TD VALIGN=TOP>numOfLongVerMetrics</TD><TD VALIGN=TOP>Number of advance heights in the vertical metrics table is 258.</TD></TR>
</TABLE>
&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 05 September 1996
</FONT>
</TD>
</TABLE>
</BODY>
</HTML>

⌨️ 快捷键说明

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