Index: trunk/src_plugins/show_netnames/show_netnames.c =================================================================== --- trunk/src_plugins/show_netnames/show_netnames.c (revision 33913) +++ trunk/src_plugins/show_netnames/show_netnames.c (revision 33914) @@ -156,12 +156,19 @@ pcb_obj_center(obj, &x, &y); font = pcb_font(PCB, 0, 0); - lscale = (double)conf_show_netnames.plugins.show_netnames.zoom_level / 100000.0; + switch(obj->type) { case PCB_OBJ_LINE: { pcb_line_t *l = (pcb_line_t *)obj; + if (shn != NULL) { + /* text height is 80% of trace thickness */ + lscale = (double)l->Thickness / (double)shn->h * 0.8; + } + else + lscale = (double)conf_show_netnames.plugins.show_netnames.zoom_level / 100000.0; + rot = atan2(l->Point2.Y - l->Point1.Y, l->Point2.X - l->Point1.X) * -RND_RAD_TO_DEG; /* offset the text for approx. center alignment */