[prev in list] [next in list] [prev in thread] [next in thread]
List: freetype
Subject: [ft] Type 1 font rendering seems wrong.
From: Tim Hutt <tdh29 () cam ! ac ! uk>
Date: 2007-02-06 21:57:45
Message-ID: 200702062157.45408.tdh29 () cam ! ac ! uk
[Download RAW message or body]
Hi, I'm writing a program that produces PDFs, and depends on exact font
metrics (it must be able to expand a piece of text to touch the sides of a
box exactly).
To avoid having to embed fonts in the PDF (a complicated process), I'm using
one of the base fonts (Helvetica).
Adobe reader actually uses Adobe Sans MM to render the font. I'm pretty sure
it has the same metrics as Helvetica. The trouble is, freetype seems to load
it incorrectly. This is especially obvious in the lowercase t.
I've attached an image showing adobe sans mm rendered by freetype, and by
adobe reader. XPDF produces output similar to adobe readers - I presume it
uses t1lib for this. Note the different t widths. I'm sure there are other
difference but they aren't obvious to my eyes.
An additional question: the PDF spec isn't very clear on text sizing, but says
the 'size' you give it is the distance in points between 'tightly spaced'
lines of text. Anyone with PDF knowledge know which freetype quantity this
corresponds to?
Thanks
-Tim
["font_comparison.png" (image/png)]
_______________________________________________
Freetype mailing list
Freetype@nongnu.org
http://lists.nongnu.org/mailman/listinfo/freetype
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic