dvipng
[Top][All Lists]
Advanced

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

[Dvipng] Re: dvipng and mathpazo


From: Jan-Åke Larsson
Subject: [Dvipng] Re: dvipng and mathpazo
Date: Mon, 04 Jul 2005 18:14:36 +0200
User-agent: Debian Thunderbird 1.0.2 (X11/20050602)

Wolfram Krause wrote:
We (a small group of students) are using dvipng for rendering formulas
for a web preview. The text is set in Palatino later on and therefore we
use the mathpazo package for the preview.

Good, good.

However, last week we encountered problems with dvipng. Under some
cirumstances certain characters are not printed:

> I looked at the Freetype-Calls (-d 32) and found out, that fplmr.pfb
> is not loaded ...

1. Can you reproduce the problem?

Yes. A previously loaded font (fplmri) is wrongly identified as fplmr.
That is why the ordering of the characters is important. It was very good that you provided a simple test case.

2. Do you have any idea what we are doing wrong?

My fault, I am afraid. Patch included. This will be in the next release.
Thanks for the bug report.

/JÅ
Index: font.c
===================================================================
RCS file: /cvsroot/dvipng/dvipng/font.c,v
retrieving revision 1.40
diff -u -r1.40 font.c
--- font.c      4 Feb 2005 14:42:03 -0000       1.40
+++ font.c      4 Jul 2005 16:04:41 -0000
@@ -118,6 +118,7 @@
   if (tfontnump!=NULL 
       && tfontnump->fontp->s == s 
       && tfontnump->fontp->d == d 
+      && strlen(tfontnump->fontp->n) == a+l 
       && strncmp(tfontnump->fontp->n,(char*)current+14,a+l) == 0) {
     DEBUG_PRINT((DEBUG_DVI|DEBUG_VF),("\n  FONT %d:\tMatch found",k));
     return;
@@ -143,6 +144,7 @@
   while (tfontptr != NULL 
         && (tfontptr->s != s 
             || tfontptr->d != d 
+            || strlen(tfontptr->n) != a+l 
             || strncmp(tfontptr->n,(char*)current+14,a+l) != 0 ) ) {
     tfontptr = tfontptr->next;
   }

reply via email to

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