<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
<blockquote cite="mid1138102644.29690.27.camel@pug.anu.edu.au"
type="cite">
<pre wrap="">
Curious. I wonder if this explains why Xprint's postscript output files
are so badly up the creek (displaying too large under gv)...
(<a class="moz-txt-link-freetext" href="https://bugs.freedesktop.org/show_bug.cgi?id=5574">https://bugs.freedesktop.org/show_bug.cgi?id=5574</a>)
</pre>
</blockquote>
It might be related, though it's not certain. I can't tell, really.<br>
<blockquote cite="mid1138102644.29690.27.camel@pug.anu.edu.au"
type="cite">
<pre wrap="">
</pre>
<blockquote type="cite">
<pre wrap="">So, the correct, non-buggy code would be:
else
{
fprintf(out, "/FontBBox [%ld %ld %ld %ld] def\n",
ti->ttface->bbox->xMin,
</pre>
</blockquote>
<pre wrap=""><!----> ^^^^^^
Is this a typo? Did you mean
ti->ttface->bbox->xMin * 65536,
??
</pre>
<blockquote type="cite">
<pre wrap=""> ti->ttface->bbox->yMin * 65536,
ti->ttface->bbox->xMax * 65536,
ti->ttface->bbox->yMax * 65536);
}
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
No, you don't need to multiply by 65535. the values in ttface->bbox
are already in<br>
outline coordinates, you simply output them as integers into the
Postscript/Type1 stream.<br>
<br>
this is consistent with PSType3_createOutlineGlyphs which also outputs
glyph points<br>
in outline coordinates.<br>
<blockquote cite="mid1138102644.29690.27.camel@pug.anu.edu.au"
type="cite">
<pre wrap="">Actually, this particular codepath doesn't appear to be used regularly.
The output files seem to be mostly going through ttf2pt1 instead, which
might be why the problem hasn't been clearly reported. I'll have to
check all the various font bbox usages, I guess.
</pre>
<pre wrap="">Hey, don't diss him! Before he got on to it Xprt didn't run at all!
Actually, he was aware of the problem, with the freetype internals, if
not the size misuse:
<a class="moz-txt-link-freetext" href="https://bugs.freedesktop.org/show_bug.cgi?id=603">https://bugs.freedesktop.org/show_bug.cgi?id=603</a>
</pre>
</blockquote>
Oh, I'm not dissing anyone, believe me. I'm just finding some irony
between the efforts involved<br>
and the end result. that's all, nothing more.<br>
<br>
And believe me, I would have called him a moron if that's what I
thought (which I don't)<br>
<br>
Cheers,<br>
<br>
- David Turner<br>
- The FreeType Project (<a class="moz-txt-link-abbreviated" href="http://www.freetype.org">www.freetype.org</a>)<br>
<br>
<br>
<blockquote cite="mid1138102644.29690.27.camel@pug.anu.edu.au"
type="cite">
<pre wrap="">Thanks,
Drew
</pre>
</blockquote>
<br>
***********************************************************************************<br>Information contained in this email message is confidential and may be privileged, and is intended only for use of the individual or entity named above. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the postmaster@nds.com and destroy the original message.<br>*********************************************************************************** <br></body>
</html>