[XeTeX] Small bug found in xdv2pdf
Brian de Alwis
bsd at cs.ubc.ca
Fri Jan 18 23:55:09 CET 2008
Hello. I've stumbled across a bug in xdv2cpp's doFontDef() routine.
fr was not NULL, but fr->cmap was NULL. I'm not sure if I've put the
not-NULL test at the right level below, but it at least identifies the
location.
[I'm not subscribed to the list, but thanks for this great piece of
software!]
--- ../../../texk/xdv2pdf/xdv2pdf.cpp.orig 2008-01-18
16:48:44.000000000 -0600
+++ ../../../texk/xdv2pdf/xdv2pdf.cpp 2008-01-18 16:28:23.000000000
-0600
@@ -1603,7 +1603,7 @@
// look for a map entry for this font name
std::string nameStr((char*)name);
const fontMapRec* fr = getFontRec(nameStr);
- if (fr != NULL) {
+ if (fr != NULL && fr->cmap != NULL) {
font.cgFont = fr->cgFont;
if (fr->cmap->size() > 0) {
if (font.charMap != NULL)
--
Brian de Alwis | Software Practices Lab | UBC | http://www.cs.ubc.ca/~bsd/
"Amusement to an observing mind is study." - Benjamin Disraeli
More information about the XeTeX
mailing list