Lines Matching refs:hintmask
67 cf2_hintmask_init( CF2_HintMask hintmask,
70 FT_ZERO( hintmask );
72 hintmask->error = error;
77 cf2_hintmask_isValid( const CF2_HintMask hintmask )
79 return hintmask->isValid;
84 cf2_hintmask_isNew( const CF2_HintMask hintmask )
86 return hintmask->isNew;
91 cf2_hintmask_setNew( CF2_HintMask hintmask,
94 hintmask->isNew = val;
102 cf2_hintmask_getMaskPtr( CF2_HintMask hintmask )
104 return hintmask->mask;
109 cf2_hintmask_setCounts( CF2_HintMask hintmask,
115 CF2_SET_ERROR( hintmask->error, Invalid_Glyph_Format );
119 hintmask->bitCount = bitCount;
120 hintmask->byteCount = ( hintmask->bitCount + 7 ) / 8;
122 hintmask->isValid = TRUE;
123 hintmask->isNew = TRUE;
129 /* consume the hintmask bytes from the charstring, advancing the src */
132 cf2_hintmask_read( CF2_HintMask hintmask,
147 if ( cf2_hintmask_setCounts( hintmask, bitCount ) == 0 )
150 FT_ASSERT( hintmask->byteCount > 0 );
155 for ( i = 0; i < hintmask->byteCount; i++ )
157 hintmask->mask[i] = (FT_Byte)cf2_buf_readByte( charstring );
158 FT_TRACE4(( " 0x%02X", hintmask->mask[i] ));
167 FT_ASSERT( ( hintmask->mask[hintmask->byteCount - 1] & mask ) == 0 ||
168 *hintmask->error );
174 cf2_hintmask_setAll( CF2_HintMask hintmask,
182 if ( cf2_hintmask_setCounts( hintmask, bitCount ) == 0 )
185 FT_ASSERT( hintmask->byteCount > 0 );
186 FT_ASSERT( hintmask->byteCount <
187 sizeof ( hintmask->mask ) / sizeof ( hintmask->mask[0] ) );
190 for ( i = 0; i < hintmask->byteCount; i++ )
191 hintmask->mask[i] = 0xFF;
195 hintmask->mask[hintmask->byteCount - 1] &= ~mask;
464 CF2_HintMaskRec hintMask;
483 cf2_hintmask_init( &hintMask, error );
497 &hintMask,
506 * hstemhm, vstem, vstemhm, cntrmask, hintmask, hmoveto, vmoveto,
595 if ( cf2_hintmask_isValid( &hintMask ) )
616 if ( cf2_hintmask_isValid( &hintMask ) )
1142 FT_TRACE4(( op1 == cf2_cmdCNTRMASK ? " cntrmask" : " hintmask" ));
1149 if ( cf2_hintmask_isValid( &hintMask ) )
1166 cf2_hintmask_read( &hintMask,