311 {
315
317
318
320 ( is_t1 || decoder->
cff ) );
321
323 {
324 FT_ERROR((
"cf2_decoder_parse_charstrings (Type 1): "
325 "SubFont missing. Use `t1_make_subfont' first\n" ));
327 }
328
330
331
333
334
336 {
339
343
345
347
350
351
353 }
354
355
356
357 font->decoder = decoder;
358 font->outline.decoder = decoder;
359
360 {
361
362
365
366 FT_Bool no_stem_darkening_driver =
367 driver->no_stem_darkening;
368 FT_Char no_stem_darkening_font =
370
371
376
379
380
381
382
383 FT_ASSERT( charstring_base + charstring_len >= charstring_base );
384
387 buf.ptr = charstring_base;
388 buf.end = charstring_base + charstring_len;
389
391
395 &hinted,
396 &scaled );
397
398 if ( is_t1 )
400 else
401 {
402
404 }
406
407 font->renderingFlags = 0;
408 if ( hinted )
410 if ( scaled && ( !no_stem_darkening_font ||
411 ( no_stem_darkening_font < 0 &&
412 !no_stem_darkening_driver ) ) )
414
415 font->darkenParams[0] =
driver->darken_params[0];
416 font->darkenParams[1] =
driver->darken_params[1];
417 font->darkenParams[2] =
driver->darken_params[2];
418 font->darkenParams[3] =
driver->darken_params[3];
419 font->darkenParams[4] =
driver->darken_params[4];
420 font->darkenParams[5] =
driver->darken_params[5];
421 font->darkenParams[6] =
driver->darken_params[6];
422 font->darkenParams[7] =
driver->darken_params[7];
423
424
425
427
428 if ( scaled )
429 {
433 }
434
437 return FT_ERR( Invalid_File_Format );
438
440
442 }
443 }
#define FT_ASSERT(condition)
#define FT_ERROR(varformat)
#define FT_ALLOC(ptr, size)
#define FT_FACE_DRIVER(x)
typedefFT_BEGIN_HEADER struct FT_MemoryRec_ * FT_Memory
FT_BEGIN_HEADER typedef unsigned char FT_Bool
void(* FT_Generic_Finalizer)(void *object)
GLuint GLenum GLenum transform
GLenum GLuint GLenum GLsizei const GLchar * buf
static char memory[1024 *256]
struct @1673::@1674 driver
FT_BEGIN_HEADER struct PS_DriverRec_ * PS_Driver
cf2_getGlyphOutline(CF2_Font font, CF2_Buffer charstring, const CF2_Matrix *transform, CF2_F16Dot16 *glyphWidth)
static FT_UShort cf2_getUnitsPerEm(PS_Decoder *decoder)
static void cf2_free_instance(void *ptr)
static void cf2_setGlyphWidth(CF2_Outline outline, CF2_Fixed width)
static void cf2_outline_init(CF2_Outline outline, FT_Memory memory, FT_Error *error)
static void cf2_getScaleAndHintFlag(PS_Decoder *decoder, CF2_Fixed *x_scale, CF2_Fixed *y_scale, FT_Bool *hinted, FT_Bool *scaled)
static FT_Error cf2_checkTransform(const CF2_Matrix *transform, CF2_Int unitsPerEm)
#define CF2_FlagsDarkened
struct CF2_FontRec_ * CF2_Font
FT_BEGIN_HEADER struct CF2_BufferRec_ CF2_BufferRec
FT_Face_Internal internal
FT_Char no_stem_darkening
FT_Generic_Finalizer finalizer
FT_Generic * cf2_instance
CFF_SubFont current_subfont
struct TT_FaceRec_ * TT_Face
ActualNumberDriverObjects * sizeof(PDRIVER_OBJECT)) PDRIVER_OBJECT *DriverObjectList