1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-12-23 15:04:36 +02:00

genex/pdf.c: output aliases also to PDF

This commit is contained in:
Werner Almesberger 2012-04-17 08:51:26 -03:00
parent db903c10ba
commit 8eb3e88385

View File

@ -90,13 +90,20 @@ static void print_path(FILE *file, const struct node *node)
static void make_title(FILE *file, const struct node *node, int unit)
{
const struct name *name;
fprintf(file, "gsave %s 0 setgray\n", format.overlay_setup);
fprintf(file, "/%s findfont %d scalefont setfont\n",
format.name.font, format.name.size);
fprintf(file, "%d %d moveto\n", format.left, -format.name.y);
ps_string(file, node->names->s);
fprintf(file, " show\n");
for (name = node->names; name; name = name->next) {
if (name != node->names)
fprintf(file, "(, ) show 0.5 setgray\n");
ps_string(file, name->s);
fprintf(file, " show\n");
}
fprintf(file, "0 setgray\n");
if (node->units > 1)
fprintf(file, " ( \\(%c\\)) show\n", 'A'+unit);