diff options
author | Robin Watts <robin.watts@artifex.com> | 2012-03-14 01:09:10 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2012-03-14 01:09:10 +0000 |
commit | dcd46be075472a8899429416f9484d246929600b (patch) | |
tree | bf28fd7984d5286aca14ae39863279492fb52f34 | |
parent | 3f74fb638182f6fa14c7d7bea970e4837be629da (diff) | |
download | mupdf-dcd46be075472a8899429416f9484d246929600b.tar.xz |
Use correct linejoins on font with modern enough freetype.
-rw-r--r-- | fitz/res_font.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fitz/res_font.c b/fitz/res_font.c index c1db35d8..6e1b63be 100644 --- a/fitz/res_font.c +++ b/fitz/res_font.c @@ -538,14 +538,15 @@ fz_render_ft_stroked_glyph(fz_context *ctx, fz_font *font, int gid, fz_matrix tr return NULL; } -#if 0 +#if FREETYPE_MAJOR * 10000 + FREETYPE_MINOR * 100 + FREETYPE_PATCH > 20405 + /* New freetype */ line_join = state->linejoin == FZ_LINEJOIN_MITER ? FT_STROKER_LINEJOIN_MITER_FIXED : state->linejoin == FZ_LINEJOIN_ROUND ? FT_STROKER_LINEJOIN_ROUND : state->linejoin == FZ_LINEJOIN_BEVEL ? FT_STROKER_LINEJOIN_BEVEL : FT_STROKER_LINEJOIN_MITER_VARIABLE; #else - /* Until we upgrade freetype */ + /* Old freetype */ line_join = state->linejoin == FZ_LINEJOIN_MITER ? FT_STROKER_LINEJOIN_MITER : state->linejoin == FZ_LINEJOIN_ROUND ? FT_STROKER_LINEJOIN_ROUND : |