Index: trunk/src/obj_text.c =================================================================== --- trunk/src/obj_text.c (revision 38351) +++ trunk/src/obj_text.c (revision 38352) @@ -1169,7 +1169,7 @@ # define MAX_SIMPLE_POLY_POINTS 256 #endif -static void font_draw_atom(void *cb_ctx, const rnd_glyph_atom_t *a) +void pcb_font_draw_atom(void *cb_ctx, const rnd_glyph_atom_t *a) { pcb_draw_info_t *info = cb_ctx; switch(a->type) { @@ -1297,7 +1297,7 @@ poly_thin = 1; } else - rcb = font_draw_atom; + rcb = pcb_font_draw_atom; cb_ctx = info; } else { Index: trunk/src/obj_text.h =================================================================== --- trunk/src/obj_text.h (revision 38351) +++ trunk/src/obj_text.h (revision 38352) @@ -186,4 +186,11 @@ PCB_TEXT_LOOP(layer); \ if (pcb_text_is_visible((board), layer, text)) + +/*** Internal/special calls ***/ + +/* The font editor's preview dialog uses this tog et the same rendering as core */ +void pcb_font_draw_atom(void *cb_ctx, const rnd_glyph_atom_t *a); + + #endif