summaryrefslogtreecommitdiff
path: root/draw/draw_glyph.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2012-07-17 18:15:54 +0200
committerTor Andersson <tor.andersson@artifex.com>2012-07-17 18:15:54 +0200
commitc47b3796f4f0314a86e4a82f7d467f8130c96b6c (patch)
tree25509ca71274251a50ab93e3779c9ba2c44250ef /draw/draw_glyph.c
parent4091b7a357728aed033216baafed540b795bcf9e (diff)
downloadmupdf-c47b3796f4f0314a86e4a82f7d467f8130c96b6c.tar.xz
Fall back to character path rendering if stroked text uses a dash pattern.
The FT_Stroker doesn't support dash patterns. Fall back to the normal path rendering, same as with glyphs that are too big to fit the cache.
Diffstat (limited to 'draw/draw_glyph.c')
-rw-r--r--draw/draw_glyph.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/draw/draw_glyph.c b/draw/draw_glyph.c
index e7e7f03a..de2f47c2 100644
--- a/draw/draw_glyph.c
+++ b/draw/draw_glyph.c
@@ -98,7 +98,11 @@ fz_pixmap *
fz_render_stroked_glyph(fz_context *ctx, fz_font *font, int gid, fz_matrix trm, fz_matrix ctm, fz_stroke_state *stroke, fz_bbox scissor)
{
if (font->ft_face)
+ {
+ if (stroke->dash_len > 0)
+ return NULL;
return fz_render_ft_stroked_glyph(ctx, font, gid, trm, ctm, stroke);
+ }
return fz_render_glyph(ctx, font, gid, trm, NULL, scissor);
}