freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Devel] workaround for buggy font


From: Felix Pahl
Subject: [Devel] workaround for buggy font
Date: Wed, 09 Oct 2002 17:24:10 +0200

The Type 2 charstring for capital 'W' (GID 33) in the
attached font contains invalid arguments, but their
intended meaning can be inferred:

a1 a2 a3 a4 a5 hstemhm
b1 b2 b3 b4 rmoveto

a1 is the width, and b3 and b4 are the
correct values for the rmoveto --
it seems the author intended b1 and b2 as
arguments for an implicit vstemhm, unaware
that this works only with hintmask and cntrmask.
Ghostscript displays this glyph correctly, while
Adobe Acrobat and Adobe SVG Viewer use
b2 and b3 for the rmoveto. Freetype uses b1 and b2
from the bottom of the stack, as prescribed by the spec.
Don't know whether it's worth bothering about this
one font (it's marked "unpublished" in the copyright
notice, anyway), especially since a workaround for
this one might break other fonts that have spurious
arguments on the top of the stack instead --
just thought I'd let you know about this.

felix.

Attachment: bernhard.cff
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]