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

📄 loca.htm

📁 TrueType字库标准文档
💻 HTM
字号:
<HTML>
<HEAD>
<TITLE>The 'loca' 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>loca - Index to Location
</H2>
<P>
The indexToLoc table stores the offsets to
the locations of the glyphs in the font, relative to the beginning
of the glyphData table. In order to compute the length of the
last glyph element, there is an extra entry after the last valid
index.
<P>
By definition, index zero points to the &quot;missing character,&quot;
which is the character that appears if a character is not found
in the font. The missing character is commonly represented by
a blank box (such as <IMG  WIDTH=9 HEIGHT=13 ALT="DIAGRAM" SRC="/TRUETYPE/OTSPEC/IMG00286.GIF">) or a space. If
the font does not contain an outline for the missing character,
then the first and second offsets should have the same value.
This also applies to any other character without an outline, such
as the space character.
<P>
Most routines will look at the 'maxp' table to determine the number
of glyphs in the font, but the value in the 'loca' table should
agree.
<P>
There are two versions of this table, the short and the long.
The version is specified in the indexToLocFormat entry in the
'head' table.Short version
<P><BR><H4>Short version</H4>

<TABLE WIDTH=480 BGCOLOR="#F0F0F0">
<THEAD>
<TR><TH BGCOLOR="#C0C0C0">TypeM</TH>
<TH BGCOLOR="#C0C0C0">Name</TH><TH BGCOLOR="#C0C0C0">Description</TH></TR></THEAD>
<TBODY>
<TR><TD VALIGN=TOP>USHORT</TD><TD VALIGN=TOP>offsets[<CITE>n</CITE>]</TD>
<TD VALIGN=TOP>The actual local offset divided by 2 is stored. The value of <CITE>n</CITE>  is numGlyphs + 1. The value for numGlyphs is found in the 'maxp' table.</TD></TR>
</TABLE>&nbsp;&nbsp;<P>
<P><BR><H4>Long version</H4>

<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>ULONG</TD><TD VALIGN=TOP>offsets[<CITE>n</CITE>]</TD>
<TD VALIGN=TOP>The actual local offset is stored. The value of <CITE>n</CITE>  is numGlyphs + 1. The value for numGlyphs is found in the 'maxp' table.</TD></TR>
</TABLE>&nbsp;&nbsp;<P>
<P>

<P>
Note that the local offsets should be long-aligned, i.e., multiples
of 4. Offsets which are not long-aligned may seriously degrade
performance of some processors.

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



⌨️ 快捷键说明

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