Atom wm_protocols[2];
diff -r -u xfig.3.3.0-beta2/resources.h xfig.3.3.0-beta2-my/resources.h
- --- xfig.3.3.0-beta2/resources.h Mon Nov 11 21:56:41 1996
+++ xfig.3.3.0-beta2-my/resources.h Tue Jul 1 19:55:19 1997
@@ -143,6 +143,8 @@
int transparent; /* transparent color for GIF export
(-2=none, -1=background) */
float magnification; /* export/print magnification */
+ char *encoding; /* X font encoding (defaults to
+ iso8859) [BT] */
} appresStruct, *appresPtr;
extern appresStruct appres;
diff -r -u xfig.3.3.0-beta2/w_drawprim.c xfig.3.3.0-beta2-my/w_drawprim.c
- --- xfig.3.3.0-beta2/w_drawprim.c Wed Jan 8 23:08:21 1997
+++ xfig.3.3.0-beta2-my/w_drawprim.c Tue Jul 1 19:56:41 1997
@@ -128,7 +128,9 @@
x_fontinfo[f].template = ps_fontinfo[f+1].name;
} else {
strcpy(template,x_fontinfo[0].template); /* nope, check for font size 0
*/
- strcat(template,"0-0-*-*-*-*-*-*");
+ strcat(template,"0-0-*-*-*-*-");
+ strcat(template, appres.encoding );
+ strcat(template, "-*");
if ((fontlist = XListFonts(tool_d, template, 1, &count))==0)
appres.SCALABLEFONTS = False; /* none, turn off request for them */
}
@@ -142,12 +144,14 @@
nf = NULL;
strcpy(template,x_fontinfo[f].template);
strcat(template,"*-*-*-*-*-*-");
- /* add ISO8859 (if not Symbol font or ZapfDingbats) to font name */
+ /* add encoding (if not Symbol font or ZapfDingbats) to font name */
if (strstr(template,"symbol") == NULL &&
- strstr(template,"zapfdingbats") == NULL)
- strcat(template,"ISO8859-*");
+ strstr(template,"zapfdingbats") == NULL) {
+ strcat(template, appres.encoding );
+ strcat(template,"-*");
+ }
else
- strcat(template,"*-*");
+ strcat(template,"*-*");
/* don't free the Fontlist because we keep pointers into it */
p = 0;
if ((fontlist = XListFonts(tool_d, template, MAXNAMES, &count))==0) {
@@ -290,10 +294,12 @@
strcpy(template,x_fontinfo[fnum].template);
/* attach pointsize to font name */
strcat(template,"%d-*-*-*-*-*-");
- /* add ISO8859 (if not Symbol font or ZapfDingbats) to font name */
+ /* add encoding (if not Symbol font or ZapfDingbats) to font name */
if (strstr(template,"symbol") == NULL &&
- strstr(template,"zapfdingbats") == NULL)
- strcat(template,"ISO8859-*");
+ strstr(template,"zapfdingbats") == NULL) {
+ strcat(template,appres.encoding);
+ strcat(template,"-*");
+ }
else
strcat(template,"*-*");
/* use the pixel field instead of points in the fontname so that the
+ if (dont_encode == TRUE)
+ return(0);
+
if (ob->texts != NULL)
{
for (t = ob->texts; t != NULL; t = t->next)
@@ -1829,7 +1836,7 @@
if (ob->texts != NULL)
{
for (t = ob->texts; t != NULL; t = t->next)
- if (PSisomap[t->font+1] == FALSE)
+ if (dont_encode != TRUE && PSisomap[t->font+1] == FALSE)
{
fprintf(tfp, "/%s /%s-iso isovec ReEncoden", PSFONT(t), PSFONT(t));
PSisomap[t->font+1] = TRUE;
diff -r -N -u transfig.3.2.0-beta2/fig2dev/fig2dev.c
transfig.3.2.0-beta2-my/fig2dev/fig2dev.c
- --- transfig.3.2.0-beta2/fig2dev/fig2dev.c Sat Nov 9 03:37:56 1996
+++ transfig.3.2.0-beta2-my/fig2dev/fig2dev.c Wed Jul 2 12:56:43 1997
@@ -63,6 +63,7 @@
Boolean magspec=FALSE; /* set if the user specifies the magnification */
Boolean multispec=FALSE; /* set if the user specifies multiple pages */
Boolean paperspec=FALSE; /* set if the user specifies the paper size */
+Boolean dont_encode=FALSE; /* set if the user specifies do not reencode
fonts
*/
Boolean pats_used, pattern_used[NUMPATTERNS];
Boolean multi_page = FALSE; /* multiple page option for PostScript */
char papersize[20];
@@ -113,7 +114,7 @@
prog = *argv;
/* add :? */
/* sum of all arguments */
- while ((c = fig_getopt(argc, argv,
"aAcCef:l:L:Mm:n:Pp:s:S:t:vVx:X:y:Y:wWz:?")) != EOF) {
+ while ((c = fig_getopt(argc, argv,
"aAcCef:l:L:Mm:n:Pp:s:S:t:vVx:X:y:Y:wWz:i?")) != EOF) {
/* generic option handling */
switch (c) {
diff -r -N -u transfig.3.2.0-beta2/fig2dev/fig2dev.h
transfig.3.2.0-beta2-my/fig2dev/fig2dev.h
- --- transfig.3.2.0-beta2/fig2dev/fig2dev.h Fri Jan 10 20:28:27 1997
+++ transfig.3.2.0-beta2-my/fig2dev/fig2dev.h Wed Jul 2 12:28:54 1997
@@ -105,6 +105,7 @@
extern Boolean paperspec; /* true of the command-line args specified -z */
extern Boolean multispec; /* true of the command-line args specified -M */
extern char papersize[]; /* paper size */
+extern Boolean dont_encode; /* true if the command-line args specified -i */
struct paperdef
{
--
Best regards, -- Boris.
Overall, OS/2's problems fall into two categories: IBM and Microsoft.
--- Gnus v5.5/XEmacs 20.3 - "London"
* Origin: Linux inside (2:5020/510@fidonet)