📄 post.htm
字号:
<HTML>
<HEAD>
<TITLE>The 'post' 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>post - PostScript</H2>
<P>
This table contains additional information
needed to use TrueType fonts on PostScript printers. This includes
data for the FontInfo dictionary entry and the PostScript names
of all the glyphs.
<P>
The table begins as follows:
<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>Format Type</TD>
<TD VALIGN=TOP>0x00010000 for format 1.0, 0x00020000 for format 2.0, and so on...</TD></TR>
<TR>
<TD VALIGN=TOP>Fixed</TD><TD VALIGN=TOP>italicAngle</TD>
<TD VALIGN=TOP>Italic angle in counter-clockwise degrees from the vertical. Zero for upright text, negative for text that leans to the right (forward)</TD></TR>
<TR>
<TD VALIGN=TOP>FWord</TD><TD VALIGN=TOP>underlinePosition</TD>
<TD VALIGN=TOP>Suggested values for the underline position (negative values indicate below baseline).</TD></TR>
<TR>
<TD VALIGN=TOP>FWord</TD><TD VALIGN=TOP>underlineThickness</TD>
<TD VALIGN=TOP>Suggested values for the underline thickness.</TD></TR>
<TR>
<TD VALIGN=TOP>ULONG</TD><TD VALIGN=TOP>isFixedPitch</TD>
<TD VALIGN=TOP>Set to 0 if the font is proportionally spaced, non-zero if the font is not proportionally spaced (i.e. monospaced).</TD></TR>
<TR>
<TD VALIGN=TOP>ULONG</TD><TD VALIGN=TOP>minMemType42</TD>
<TD VALIGN=TOP>Minimum memory usage when a TrueType font is downloaded.</TD></TR>
<TR>
<TD VALIGN=TOP>ULONG</TD><TD VALIGN=TOP>maxMemType42</TD>
<TD VALIGN=TOP>Maximum memory usage when a TrueType font is downloaded.</TD></TR>
<TR>
<TD VALIGN=TOP>ULONG</TD><TD VALIGN=TOP>minMemType1</TD>
<TD VALIGN=TOP>Minimum memory usage when a TrueType font is downloaded as a Type 1 font.</TD></TR>
<TR>
<TD VALIGN=TOP>ULONG</TD><TD VALIGN=TOP>maxMemType1</TD>
<TD VALIGN=TOP>Maximum memory usage when a TrueType font is downloaded as a Type 1 font.</TD></TR>
</TABLE> <P>
<P>
The last four entries in the table are present because PostScript
drivers can do better memory management if the virtual memory
(VM) requirements of a downloadable TrueType font are known before
the font is downloaded. This information should be supplied if
known. If it is not known, set the value to zero. The driver will
still work but will be less efficient.
<P>
Maximum memory usage is minimum memory usage plus maximum runtime
memory use. Maximum runtime memory use depends on the maximum
band size of any bitmap potentially rasterized by the TrueType
font scaler. Runtime memory usage could be calculated by rendering
characters at different point sizes and comparing memory use.
<P><BR><H4>How to calculate VM usage
</H4>
<P>
The memory usage of a downloaded TrueType
font will vary with whether it is defined as a TrueType or Type
1 font on the printer. Minimum memory usage can be calculated
by calling <CITE>VMStatus</CITE>, downloading the font, and calling
<CITE>VMStatus </CITE>a second time.
<P>
If the format is 1.0 or 3.0, the table ends here. The additional
entries for formats 2.0 and 2.5 are shown below. Apple has defined
a format 4.0 for use with QuickDraw GX, which is described in
their documentation.Format 1.0
<P><BR><H4>Format 1.0</H4>
<P>
This TrueType font file contains exactly the
258 glyphs in the standard Macintosh TrueType font file in the
order specified in Appendix C, "Standard Macintosh Character
Set to UGL." As a result, the glyph names are taken from
the system with no storage required by the font.Format 2.0
<P><BR><H4>Format 2.0</H4>
<P>
This is the format required by Microsoft fonts.
<TABLE WIDTH=480 BGCOLOR="#F0F0F0">
<THEAD>
<TR>
<TH BGCOLOR="#C0C0C0">Type
<TH BGCOLOR="#C0C0C0">Description</TH></TR>
</THEAD><TBODY>
<TR>
<TD VALIGN=TOP>USHORT</TD><TD VALIGN=TOP>Number of glyphs (this is the same as numGlyphs in 'maxp' table).</TD></TR>
<TR>
<TD VALIGN=TOP>USHORT</TD><TD VALIGN=TOP>glyphNameIndex[numGlyphs].</TD></TR>
<TR>
<TD VALIGN=TOP>CHAR</TD><TD VALIGN=TOP>Glyph names with length bytes [variable] (a Pascal string).</TD></TR>
</TABLE> <P>
<P>
This TrueType font file contains glyphs not
in the standard Macintosh set or the ordering of the glyphs in
the TrueType font file is non-standard (again, for the Macintosh).
The glyph name array maps the glyphs in this font to name index.
If the name index is between 0 and 257, treat the name index as
a glyph index in the Macintosh standard order. If the name index
is between 258 and 32767, then subtract 258 and use that to index
into the list of Pascal strings at the end of the table. Thus
a given font may map some of its glyphs to the standard glyph
names, and some to its own names.
<P>
Index numbers 32768 through 65535 are reserved for future use.
If you do not want to associate a PostScript name with a particular
glyph, use index number 0 which points the name <CITE>.notdef.</CITE>Format 2.5
<P><BR><H4>Format 2.5 </H4>
<P>
This format provides a space saving table
for fonts which contain a pure subset of, or a simple reordering
of, the standard Macintosh glyph set.
<TABLE WIDTH=480 BGCOLOR="#F0F0F0">
<THEAD>
<TR>
<TH BGCOLOR="#C0C0C0">Type
<TH BGCOLOR="#C0C0C0">Description</TH></TR>
</THEAD><TBODY>
<TR>
<TD VALIGN=TOP>CHAR</TD><TD VALIGN=TOP>offset[numGlyphs]</TD></TR>
</TABLE> <P>
<P>
This format is useful for font files that
contain only glyphs in the standard Macintosh glyph set but which
have those glyphs arranged in a non-standard order or which are
missing some glyphs. The table contains one byte for each glyph
in the font file. The byte is treated as a signed offset that
maps the glyph index used in this font into the standard glyph
index. In other words, assuming that the 'sfnt' contains the three
glyphs A, B, and C which are the 37th, 38th, and 39th glyphs in
the standard ordering, the 'post' table would contain the bytes
+36, +36, +36.Format 3.0
<P><BR><H4>Format 3.0</H4>
<P>
This format makes it possible to create a
special font that is not burdened with a large 'post' table set
of glyph names.
<P>
This format specifies that no PostScript name information is provided
for the glyphs in this font file. The printing behavior of this
format on PostScript printers is unspecified, except that it should
not result in a fatal or unrecoverable error. Some drivers may
print nothing, other drivers may attempt to print using a default
naming scheme.
<P>
<CITE>Windows v3.1 makes use of the italic angle value in the 'post'
table but does not actually <STRONG>require</STRONG> any glyph names to
be stored as Pascal strings .</cite>
<br> <br>
<FONT FACE="Arial, Helvetica" SIZE=1>
Microsoft Typography Web Site <A HREF="/truetype/otspec/CPYRIGHT.htm">© 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>
<BR>
Last updated 05 September 1996
</FONT>
</TD>
</TABLE>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -