diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2018-11-13 21:49:56 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2018-11-13 23:45:37 +0100 |
commit | 672b9afb9bb05a67bbcd8664ba268521ea728ca6 (patch) | |
tree | 24699741d5cf8d71ac8f5d000722e82388a97bc7 /source/pdf/pdf-appearance.c | |
parent | a06709ac88453bbfeff46ddaa62492172183b1a7 (diff) | |
download | mupdf-672b9afb9bb05a67bbcd8664ba268521ea728ca6.tar.xz |
Add more encoding tables.
Add tables for Windows-1250, Windows-1251, and ISO-8859-1.
Also add unicode_from_encoding tables.
Move encodings from PDF namespace to Fitz.
Diffstat (limited to 'source/pdf/pdf-appearance.c')
-rw-r--r-- | source/pdf/pdf-appearance.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/pdf/pdf-appearance.c b/source/pdf/pdf-appearance.c index c18d5860..a3067e16 100644 --- a/source/pdf/pdf-appearance.c +++ b/source/pdf/pdf-appearance.c @@ -673,7 +673,7 @@ measure_simple_string(fz_context *ctx, fz_font *font, const char *text) { int c, g; text += fz_chartorune(&c, text); - c = pdf_winansi_from_unicode(c); + c = fz_windows_1252_from_unicode(c); if (c < 0) c = REPLACEMENT; g = fz_encode_character(ctx, font, c); w += fz_advance_glyph(ctx, font, g, 0); @@ -689,7 +689,7 @@ write_simple_string(fz_context *ctx, fz_buffer *buf, const char *a, const char * { int c; a += fz_chartorune(&c, a); - c = pdf_winansi_from_unicode(c); + c = fz_windows_1252_from_unicode(c); if (c < 0) c = REPLACEMENT; if (c == '(' || c == ')' || c == '\\') fz_append_byte(ctx, buf, '\\'); @@ -871,7 +871,7 @@ write_comb_string(fz_context *ctx, fz_buffer *buf, const char *a, const char *b, int c, g; a += fz_chartorune(&c, a); - c = pdf_winansi_from_unicode(c); + c = fz_windows_1252_from_unicode(c); if (c < 0) c = REPLACEMENT; g = fz_encode_character(ctx, font, c); |