diff --git a/sch2fig/lib.c b/sch2fig/lib.c index 0c65178..a3adac6 100644 --- a/sch2fig/lib.c +++ b/sch2fig/lib.c @@ -392,6 +392,21 @@ static void draw_text(const struct text_obj *text, int m[6]) default: break; } + + if (matrix_is_mirrored(m)) + switch (txt.rot) { + case 0: + case 180: + txt.hor = text_flip(txt.hor); + break; + case 90: + case 270: + txt.vert = text_flip(txt.vert); + break; + default: + abort(); + } + text_fig(&txt, COLOR_COMP_DWG, WIDTH_COMP_DWG); }