Intolerable difference in glyph width: font=vnbx12
The Thanh Han
hanthethanh at gmail.com
Wed Oct 20 13:05:55 CEST 2021
On Wed, Oct 20, 2021 at 12:01 AM Werner LEMBERG <wl at gnu.org> wrote:
>
> > > * Fix the widths by using `t1disasm` + manual editing + `t1asm`.
> > > A skilled user might even write a script to automate the manual
> > > editing part, i.e., taking the width of the 'u' glyph from the
> > > disassembled output and replacing the widths of all other
> > > occurrences of 'u + accent(s)'.
> >
> > this is what I had in mind too but it takes some time. There are some
> > other things which should be fixed too.
> >
> > \font\v=vnr12 at 1000pt \v
> > \setbox0\hbox{0}
> > \showthe\wd0
> >
> > > 489.4638pt.
> > l.8 \showthe\wd0
> >
> > The tfm file contains (CHARWD R 0.489464). This looks fine so far
> >
> > 489.464pt * 72.27/72 = 491.29949bp
> >
> > but the pfb file contains
> >
> > /zero {
> > 41 490 hsbw
> >
> > There are many of such rounding errors in the font. I assume that
> > it's best to replace all widths in the pfb files by values derived
> > from the tfm files.
>
> Yes. Ideally, the values are rational approximations, similar to what
> is done in the cmsuper fonts, for example
>
> 41 4913 10 div hsbw
>
>
a side note: actually the original values in pfb fonts by BlueSky were in
this form; but I had to convert them
to get rid of those "div" because some of the FMP tool didn't not work with
them
Regards,
Thanh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/tex-live/attachments/20211020/9e106ab8/attachment.html>
More information about the tex-live
mailing list.