Commit 98258619 authored by David Turner's avatar David Turner
Browse files

debugged the CFF driver. The "advance width" problem

was strictly unrelated to our previous worries, it was a
really simple bug in t2gload.c !!
parent 075cdf12
LATEST CHANGES LATEST CHANGES
- added support for CID-keyed fonts to the CFF driver. There are still - added support for CID-keyed fonts to the CFF driver.
some unexplained bugs though... ??? maybe support for pure CFF + CEF fonts should come in ??
- cleaned up source code in order to avoid two functions with the - cleaned up source code in order to avoid two functions with the
......
...@@ -809,14 +809,14 @@ ...@@ -809,14 +809,14 @@
if ( req_args & T2_COUNT_CHECK_WIDTH ) if ( req_args & T2_COUNT_CHECK_WIDTH )
{ {
args = stack; args = stack;
if ( decoder->read_width ) if ( num_args & 1 && decoder->read_width )
{ {
decoder->glyph_width = decoder->nominal_width + decoder->glyph_width = decoder->nominal_width +
( stack[0] >> 16 ); ( stack[0] >> 16 );
decoder->read_width = 0;
num_args--; num_args--;
args++; args++;
} }
decoder->read_width = 0;
req_args = 0; req_args = 0;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment