mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-04 23:43:43 +02:00
genex/pdf.c: output aliases also to PDF
This commit is contained in:
parent
db903c10ba
commit
8eb3e88385
11
genex/pdf.c
11
genex/pdf.c
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user