[XeTeX] Small bug found in xdv2pdf
Jonathan Kew
jonathan_kew at sil.org
Sat Jan 19 11:35:32 CET 2008
Hi Brian,
Many thanks; I'll apply this to the source.
Just wondering, can you point me to a particular font that caused a
crash here? I can see that it's a possibility, so it's necessary to
check, but would be interested to see an example that triggers it.
Jonathan
On 18 Jan 2008, at 10:55 pm, Brian de Alwis wrote:
> 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
>
> _______________________________________________
> XeTeX mailing list
> postmaster at tug.org
> http://tug.org/mailman/listinfo/xetex
More information about the XeTeX
mailing list