summaryrefslogtreecommitdiff
path: root/source/pdf
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-02-29 16:56:52 +0000
committerRobin Watts <robin.watts@artifex.com>2016-02-29 17:14:53 +0000
commitb01b8e1e89d9450b647bde0d188a08af737c3cab (patch)
tree98f3bc0bed67f73dc2a90bdbeae00b26c21b4034 /source/pdf
parentdde049432d9f28d29aa4be6730e67ebc28415ef3 (diff)
downloadmupdf-b01b8e1e89d9450b647bde0d188a08af737c3cab.tar.xz
pdf-font: Remove unused locking
We no longer need to take the freetype lock here. We also never read the value assigned to face earlier in the routine, so remove that too.
Diffstat (limited to 'source/pdf')
-rw-r--r--source/pdf/pdf-font.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/source/pdf/pdf-font.c b/source/pdf/pdf-font.c
index 0b1cbb43..a5dadbbf 100644
--- a/source/pdf/pdf-font.c
+++ b/source/pdf/pdf-font.c
@@ -517,8 +517,6 @@ pdf_load_simple_font_by_name(fz_context *ctx, pdf_document *doc, pdf_obj *dict,
fontdesc->to_unicode = pdf_load_system_cmap(ctx, "Adobe-GB1-UCS2");
fontdesc->to_ttf_cmap = pdf_load_system_cmap(ctx, "Adobe-GB1-UCS2");
- face = fontdesc->font->ft_face;
- /* kind = ft_kind(face); */
goto skip_encoding;
}
}
@@ -779,12 +777,8 @@ pdf_load_simple_font_by_name(fz_context *ctx, pdf_document *doc, pdf_obj *dict,
}
else
{
- fz_lock(ctx, FZ_LOCK_FREETYPE);
- has_lock = 1;
for (i = 0; i < 256; i++)
pdf_add_hmtx(ctx, fontdesc, i, i, ft_width(ctx, fontdesc, i));
- fz_unlock(ctx, FZ_LOCK_FREETYPE);
- has_lock = 0;
}
pdf_end_hmtx(ctx, fontdesc);