Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 80760 | Differences between
and this patch

Collapse All | Expand All

(-)transfig.3.2.4/fig2dev/dev/gensvg.c~ (-4 / +2 lines)
Lines 692-707 Link Here
692
    if (t->angle != 0) {
692
    if (t->angle != 0) {
693
	fprintf (tfp, "<g transform=\"translate(%d,%d) rotate(%d)\" >\n",
693
	fprintf (tfp, "<g transform=\"translate(%d,%d) rotate(%d)\" >\n",
694
		 (int) (t->base_x * mag), (int) (t->base_y * mag), degrees (t->angle));
694
		 (int) (t->base_x * mag), (int) (t->base_y * mag), degrees (t->angle));
695
	fprintf (tfp, "<text x=\"0\" y=\"0\" fill=\"#%6.6x\"  font-family=\"%s\" 
695
	fprintf (tfp, "<text x=\"0\" y=\"0\" fill=\"#%6.6x\"  font-family=\"%s\" font-style=\"%s\" font-weight=\"%s\" font-size=\"%d\" text-anchor=\"%s\" >\n",
696
		 font-style=\"%s\" font-weight=\"%s\" font-size=\"%d\" text-anchor=\"%s\" >\n",
697
		 rgbColorVal (t->color), family[(int) ceil ((t->font + 1) / 4)],
696
		 rgbColorVal (t->color), family[(int) ceil ((t->font + 1) / 4)],
698
		 (t->font % 2 == 0 ? "normal" : "italic"),
697
		 (t->font % 2 == 0 ? "normal" : "italic"),
699
		 (t->font % 4 < 2 ? "normal" : "bold"), (int) (ceil (t->size * 12 * mag)),
698
		 (t->font % 4 < 2 ? "normal" : "bold"), (int) (ceil (t->size * 12 * mag)),
700
		 anchor[t->type]);
699
		 anchor[t->type]);
701
    }
700
    }
702
    else
701
    else
703
	fprintf (tfp, "<text x=\"%d\" y=\"%d\" fill=\"#%6.6x\"  font-family=\"%s\" 
702
	fprintf (tfp, "<text x=\"%d\" y=\"%d\" fill=\"#%6.6x\"  font-family=\"%s\" font-style=\"%s\" font-weight=\"%s\" font-size=\"%d\" text-anchor=\"%s\" >\n",
704
		 font-style=\"%s\" font-weight=\"%s\" font-size=\"%d\" text-anchor=\"%s\" >\n",
705
		 (int) (t->base_x * mag), (int) (t->base_y * mag), rgbColorVal (t->color),
703
		 (int) (t->base_x * mag), (int) (t->base_y * mag), rgbColorVal (t->color),
706
		 family[(int) ceil ((t->font + 1) / 4)],
704
		 family[(int) ceil ((t->font + 1) / 4)],
707
		 (t->font % 2 == 0 ? "normal" : "italic"),
705
		 (t->font % 2 == 0 ? "normal" : "italic"),
(-)transfig.3.2.4/fig2dev/fig2dev.h~ (-1 / +1 lines)
Lines 22-28 Link Here
22
#include <sys/file.h>
22
#include <sys/file.h>
23
#include <signal.h>
23
#include <signal.h>
24
#include <string.h>
24
#include <string.h>
25
#include <varargs.h>
25
#include <stdarg.h>
26
#include <pwd.h>
26
#include <pwd.h>
27
#include <errno.h>
27
#include <errno.h>
28
#include <time.h>
28
#include <time.h>

Return to bug 80760