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"), |