Commit ae5230ee authored by twanvl's avatar twanvl

Use draw_text instead of text when making symbol images for HTML export

parent 2998782c
...@@ -355,7 +355,7 @@ Image SymbolFont::getImage(double font_size, const DrawableSymbol& sym) { ...@@ -355,7 +355,7 @@ Image SymbolFont::getImage(double font_size, const DrawableSymbol& sym) {
// align text // align text
RealPoint text_pos = align_in_rect(sym.symbol->text_alignment, ts, sym_rect); RealPoint text_pos = align_in_rect(sym.symbol->text_alignment, ts, sym_rect);
// draw text // draw text
rdc.DrawTextWithShadow(sym.text, *sym.symbol->text_font, text_pos, font_size, stretch); rdc.DrawTextWithShadow(sym.draw_text, *sym.symbol->text_font, text_pos, font_size, stretch);
// done // done
dc.SelectObject(wxNullBitmap); dc.SelectObject(wxNullBitmap);
return bmp.ConvertToImage(); return bmp.ConvertToImage();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment