Index: trunk/src_plugins/io_kicad/write.c =================================================================== --- trunk/src_plugins/io_kicad/write.c (revision 36689) +++ trunk/src_plugins/io_kicad/write.c (revision 36690) @@ -297,8 +297,8 @@ static void kicad_print_text(const wctx_t *ctx, const klayer_t *kly, pcb_text_t *text, int ind, rnd_coord_t dx, rnd_coord_t dy) { - pcb_font_t *myfont = pcb_font_old(PCB, 0, 1); - rnd_coord_t mWidth = myfont->rnd_font.max_width; /* kicad needs the width of the widest letter */ + rnd_font_t *myfont = pcb_font(PCB, 0, 1); + rnd_coord_t mWidth = myfont->max_width; /* kicad needs the width of the widest letter */ rnd_coord_t defaultStrokeThickness = 100 * 2540; /* use 100 mil as default 100% stroked font line thickness */ int kicadMirrored = 1; /* 1 is not mirrored, 0 is mirrored */ rnd_coord_t defaultXSize; Index: trunk/src_plugins/io_kicad_legacy/write.c =================================================================== --- trunk/src_plugins/io_kicad_legacy/write.c (revision 36689) +++ trunk/src_plugins/io_kicad_legacy/write.c (revision 36690) @@ -208,8 +208,8 @@ static int write_kicad_legacy_layout_text(FILE *FP, rnd_cardinal_t number, pcb_layer_t *layer, rnd_coord_t xOffset, rnd_coord_t yOffset) { - pcb_font_t *myfont = pcb_font_old(PCB, 0, 1); - rnd_coord_t mWidth = myfont->rnd_font.max_width; /* kicad needs the width of the widest letter */ + rnd_font_t *myfont = pcb_font(PCB, 0, 1); + rnd_coord_t mWidth = myfont->max_width; /* kicad needs the width of the widest letter */ rnd_coord_t defaultStrokeThickness = 100 * 2540; /* use 100 mil as default 100% stroked font line thickness */ int kicadMirrored = 1; /* 1 is not mirrored, 0 is mirrored */ int direction;