[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Malyshev's t2 fonts
- To: fontinst@cogs.susx.ac.uk
- Subject: Re: Malyshev's t2 fonts
- From: Vladimir Volovich <vvv@vvv.vsu.ru>
- Date: 25 Dec 1999 23:30:13 +0300
- Cc: Maksym Polyakov <mpoliak@pcomp.nauu.kiev.ua>
- In-Reply-To: "Maksym Polyakov"'s message of "Sat, 25 Dec 1999 20:42:19 +0200 (UKR)"
- References: <list-1178310@vsu.ru> <list-1171887@vsu.ru> <2.07b3.134S5.FNB7YJ@pcomp.nauu.kiev.ua>
- User-Agent: Gnus/5.070099 (Pterodactyl Gnus v0.99) Emacs/20.4
Hello,
It seems that Maksym Polyakov found a bug in definition of glyph
`hyphenchar' (used in T1 encoding).
He wrote:
MP> T1 and T2 fonts have hyphenchar which is hyphen with metrics
MP> width half of its actual width and intended to use for hanging
MP> hyphenation. (BTW, when used, make text look much better!)
The definition of hyphenchar in latin.mtx (and latinsc.mtx) is:
\setglyph{hyphenchar}
\glyph{hyphen}{1000}
\endsetglyph
Which should probably be changed to:
\setglyph{hyphenchar}
\glyph{hyphen}{1000}
\resetwidth{\div{\width{hyphen}}{2}}
\endsetglyph
What do you think? In EC fonts, the width of hyphenchar (slot #127) is
exactly half the width of hyphen (slot #45); and the glyph looks the
same. Hyphenation of texts written with EC fonts when one sets
\hyphenchar\font=127 is "half-hanging", as compared to the (default)
case when \hyphenchar\font=45. IMHO, fontinst's definition should
follow this rule.
BTW, is it okay that latin.mtx (and latinsc.mtx) contains the line
\setleftkerning{hyphenchar}{hyphen}{1000}
BEFORE the definition of the `hyphenchar' glyph?
Best regards, -- Vladimir.