📄 ltsh.htm
字号:
<HTML>
<HEAD>
<TITLE>The 'LTSH' 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>LTSH - Linear Threshold</H2>
<P>
There are noticeable improvements to fonts
on the screen when instructions are carefully applied to the sidebearings.
The gain in readability is offset by the necessity for the OS
to grid fit the glyphs in order to find the actual advance width
for the glyphs (since instructions may be moving the sidebearing
points). TrueType already has one mechanism to side step the speed
issues: the 'hdmx' table, where precomputed advance widths may
be saved for selected ppem sizes. The 'LTSH' table (Linear ThreSHold)
is a second, complementary method.
<P>
The LTSH table defines the point at which it is reasonable to
assume linearly scaled advance widths on a glyph-by-glyph basis.
This table should <CITE>not</CITE> be included unless bit 4 of the "flags"
field in the 'head' table is set. The criteria for linear scaling
is:
<P>
a. (ppem size is <FONT FACE="Symbol">³</FONT><TT> </TT>50)
AND (difference between the rounded linear width and the rounded
instructed width <FONT FACE="Symbol">£</FONT>
2% of the rounded linear width)
<P>
or b. Linear width == Instructed width
<P>
The LTSH table records the ppem for each glyph at which the scaling
becomes linear again, despite instructions effecting the advance
width. It is a requirement that, at and above the recorded threshold
size, the glyph remain linear in its scaling (i.e., not legal
to set threshold at 55 ppem if glyph becomes non-linear again
at 90 ppem). The format for the table is:
<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>USHORT</TD><TD VALIGN=TOP>version</TD>
<TD VALIGN=TOP>Version number (starts at 0).</TD></TR>
<TR><TD VALIGN=TOP>USHORT</TD><TD VALIGN=TOP>numGlyphs</TD>
<TD VALIGN=TOP>Number of glyphs (from "numGlyphs" in 'maxp' table).</TD></TR>
<TR><TD VALIGN=TOP>BYTE</TD><TD VALIGN=TOP>yPels[numGlyphs]</TD>
<TD VALIGN=TOP>The vertical pel height at which the glyph can be assumed to scale linearly. On a per glyph basis.</TD></TR>
</TABLE> <P>
<P>
Note that glyphs which do not have instructions
on their sidebearings should have yPels = 1; i.e., always scales
linearly.
<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></TR>
</TABLE>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -