diff options
author | Chris Liddell <chris.liddell@artifex.com> | 2022-04-20 09:34:33 +0100 |
---|---|---|
committer | Chris Liddell <chris.liddell@artifex.com> | 2022-04-20 15:22:24 +0100 |
commit | 5ddd1bde4f618d15dce92e9170a08774cb6cb3a8 (patch) | |
tree | cd1d3dfeb45967b8307f77d4a8f34d5ec4548c91 /pdf/pdf_text.c | |
parent | 479649281467ca84a220873d51c7a461b5a78104 (diff) | |
download | ghostpdl-5ddd1bde4f618d15dce92e9170a08774cb6cb3a8.tar.gz |
Bug 705237: Fonts: add MissingWidth support
Fallback width was missing.
Diffstat (limited to 'pdf/pdf_text.c')
-rw-r--r-- | pdf/pdf_text.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pdf/pdf_text.c b/pdf/pdf_text.c index e22f0c0ef..93546c1da 100644 --- a/pdf/pdf_text.c +++ b/pdf/pdf_text.c @@ -436,7 +436,7 @@ static int pdfi_show_set_params(pdf_context *ctx, pdf_string *s, gs_text_params_ for (i = 0;i < s->length; i++) { /* Get the width (in unscaled text units) */ if (s->data[i] < current_font->FirstChar || s->data[i] > current_font->LastChar) - width = 0; + width = current_font->MissingWidth; else width = current_font->Widths[s->data[i] - current_font->FirstChar]; /* And convert the width into an appropriate value for the current environment */ |