--- ./font.c~ 2005-01-15 09:26:19.000000000 +0900 +++ ./font.c 2006-02-22 20:41:20.000000000 +0900 @@ -926,7 +926,7 @@ } nOdd = !nOdd; } - nTotal += XTextWidth16(xfs, gpszTmpStr16, nDoubleByteIndex); + nTotal += xfs->per_char ? XTextWidth16(xfs, gpszTmpStr16, nDoubleByteIndex) : (xfs->max_bounds.width * nDoubleByteIndex); } else { for (psz=pszStart, nSubStrIndex=0; nIndex+nSubStrIndex < nLen && ((*psz)&0x80) == 0; @@ -987,7 +987,7 @@ Pixmap bitmap=None; TextExtentsInfo stTextExtents; - w = XTextWidth16(canvasFontPtr, &gpszTmpStr16[i], 1); + w = canvasFontPtr->per_char ? XTextWidth16(canvasFontPtr, &gpszTmpStr16[i], 1) : canvasFontPtr->max_bounds.width; buf[0] = pszStart[i<<1]; buf[1] = pszStart[(i<<1)+1]; buf[2] = '\0'; @@ -1018,7 +1018,7 @@ } else { XDrawString16(dpy, d, gc, x+nTotal, y, gpszTmpStr16, nDoubleByteIndex); - w = XTextWidth16(canvasFontPtr, gpszTmpStr16, nDoubleByteIndex); + w = canvasFontPtr->per_char ? XTextWidth16(canvasFontPtr, gpszTmpStr16, nDoubleByteIndex) : (canvasFontPtr->max_bounds.width*nDoubleByteIndex); nTotal += w; } } else { --- ./Imakefile.org 2005-01-15 09:26:22.000000000 +0900 +++ ./Imakefile 2006-02-22 20:36:52.000000000 +0900 @@ -11,7 +11,7 @@ XCOMM There should be no need to modify this file. XCOMM XCOMM ------------------------------------------------- XCOMM -#include +#include #include XCOMM @@ -41,6 +41,8 @@ -DTGIF_DISTR_VER=\"$(TGIFVERSION)\" \@@\ $(MOREDEFINES) -DQPL_LICENSE +DEFINES += -DA4PAPER + TGIFVERSION = 4.1.44 XCOMM Things to try to add to the DEFINES line above: @@ -301,6 +303,7 @@ SRCS3 = ComplexProgramTarget_1($(TARGET_1),$(LOCAL_LIBRARIES),NullParameter) +ComplexProgramTarget_2(prtgif,NullParameter,NullParameter) /* * ComplexProgramTarget_2(prtgif,NullParameter,NullParameter) * ComplexProgramTarget_3(testdrive,$(LOCAL_LIBRARIES),NullParameter) --- ./Tgif.tmpl-darwin.org 2005-01-15 09:26:22.000000000 +0900 +++ ./Tgif.tmpl-darwin 2006-02-22 20:36:52.000000000 +0900 @@ -28,7 +28,7 @@ XIMPDEFINES = #endif -PROGRAMS = tgif XCOMM prtgif frontend11.o testdrive +PROGRAMS = tgif prtgif XCOMM frontend11.o testdrive TGIFDIR = $(LIBDIR)/tgif XCOMM CDEBUGFLAGS= -g -Wall XCOMM CCOPTIONS = -Wall -Wpointer-arith -Wmissing-prototypes \@@\