diff options
author | Ken Sharp <ken.sharp@artifex.com> | 2011-05-20 19:43:55 +0100 |
---|---|---|
committer | Ken Sharp <ken.sharp@artifex.com> | 2011-05-20 19:43:55 +0100 |
commit | 83318bd849910c6c79f0ea5cb11912557ac01307 (patch) | |
tree | 69c3e9ae366958ea81ccf03c56f9aef95c1a236a /gs/base/gdevpdtt.c | |
parent | 96b967aac2176d9cd96167cc1430bb76074d6384 (diff) |
Final type 3 font modifications for PCL
We need to probe the glyph cache in process_text_modify_width as well
process_text_return_width, this is a possible path through the code,
depending on the exact combination of text operations.
Remove debugging code
Tidy up some declarations and casting of poitners to make compilers
happy.
Diffstat (limited to 'gs/base/gdevpdtt.c')
-rw-r--r-- | gs/base/gdevpdtt.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gs/base/gdevpdtt.c b/gs/base/gdevpdtt.c index 784125887..257381e95 100644 --- a/gs/base/gdevpdtt.c +++ b/gs/base/gdevpdtt.c @@ -2897,10 +2897,8 @@ pdf_text_process(gs_text_enum_t *pte) if (code < 0) return code; - if (pdfont->u.simple.s.type3.cached[cdata[pte->index] >> 3] & (0x80 >> (cdata[pte->index] & 7))) { -// eprintf1("Glyph reused %d\n", cdata[pte->index]); + if (pdfont->u.simple.s.type3.cached[cdata[pte->index] >> 3] & (0x80 >> (cdata[pte->index] & 7))) early_accumulator = 0; - } else early_accumulator = 1; } @@ -2963,7 +2961,7 @@ pdf_text_process(gs_text_enum_t *pte) * makes sure that when we make the CTM into the identity it * affects both. */ - psenum.pgs = psenum.pis; + psenum.pgs = (gs_state *)psenum.pis; /* Save the current FontMatrix */ savem = pgs->font->FontMatrix; /* Make the FontMatrix the identity otherwise we will apply @@ -3078,8 +3076,6 @@ pdf_text_process(gs_text_enum_t *pte) /* Finally, dispose of the device, which we don't actually need */ gx_device_retain((gx_device *)dev, false); -// eprintf3("Created cache entry. cc->code = %d, cc->pair = %x, cc->wmode = %d\n", -// cc->code, cc->pair, cc->wmode); } pte_default->procs = save_procs; size = pte->text.size - pte->index; |