summaryrefslogtreecommitdiff
path: root/src/drivers/PostScript
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-10-07 16:20:44 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-10-07 16:20:59 +0200
commit6e5f3f7ecb3cc0039e113a5e3b2409ba0f7e7cea (patch)
tree8e77b247811c2765ef8a098d1dc9343ba12ef9a5 /src/drivers/PostScript
parent05d78e8ebdf2d695bd2b3a448ed95bece4f544bb (diff)
Make Pango-handled text accept legacy CP1252-encoded text
Diffstat (limited to 'src/drivers/PostScript')
-rw-r--r--src/drivers/PostScript/Fl_PostScript.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/drivers/PostScript/Fl_PostScript.cxx b/src/drivers/PostScript/Fl_PostScript.cxx
index a1f511bef..324d1c6f9 100644
--- a/src/drivers/PostScript/Fl_PostScript.cxx
+++ b/src/drivers/PostScript/Fl_PostScript.cxx
@@ -1572,6 +1572,7 @@ void Fl_PostScript_Graphics_Driver::transformed_draw(const char* str, int n, dou
pango_layout_set_font_description(pango_layout_, pfd);
int pwidth, pheight;
cairo_save(cairo_);
+ str = Fl_Cairo_Graphics_Driver::clean_utf8(str, n);
pango_layout_set_text(pango_layout_, str, n);
pango_layout_get_size(pango_layout_, &pwidth, &pheight);
if (pwidth > 0) {