[cff] minor code cleanup

OpenType-1.8
Dave Arnold 8 years ago
parent f34a28d614
commit c7f2a52f86
  1. 1
      src/cff/cf2font.h
  2. 2
      src/cff/cf2intrp.c
  3. 4
      src/cff/cffload.c

@ -46,7 +46,6 @@
FT_BEGIN_HEADER
#define CF2_CFF2_STACK_SIZE 193
#define CF2_OPERAND_STACK_SIZE 48
#define CF2_MAX_SUBR 16 /* maximum subroutine nesting; */
/* only 10 are allowed but there exist */

@ -474,7 +474,7 @@
CF2_Fixed hintOriginY = curY;
CF2_Stack opStack = NULL;
FT_UInt stackSize = font->isCFF2 ? CF2_CFF2_STACK_SIZE : CF2_OPERAND_STACK_SIZE;
FT_UInt stackSize;
FT_Byte op1; /* first opcode byte */
CF2_F16Dot16 storage[CF2_STORAGE_SIZE]; /* for `put' and `get' */

@ -1260,7 +1260,7 @@
/* compute expected number of operands for this blend */
FT_UInt numOperands = (FT_UInt)(numBlends * blend->lenBV);
FT_UInt count = parser->top - 1 - parser->stack;
FT_UInt count = (FT_UInt)( parser->top - 1 - parser->stack );
if ( numOperands > count )
{
@ -1859,7 +1859,7 @@ Exit:
top->cid_font_name = 0xFFFFU;
/* set default stack size */
top->maxstack = cff2 ? 193 : 48;
top->maxstack = cff2 ? CFF2_DEFAULT_STACK : 48;
if ( idx->count ) /* count is nonzero for a real index */
error = cff_index_access_element( idx, font_index, &dict, &dict_len );

Loading…
Cancel
Save