362 {
365#ifdef __REACTOS__
367 if (!decoder_allocated) return FT_Err_Out_Of_Memory;
368
369#define decoder (*decoder_allocated)
370 {
371#else
373#endif
377
382
383
384 if ( glyph_index >= (
FT_UInt)
face->root.num_glyphs )
385 {
388 }
389
392
393 glyph->
x_scale = cidsize->metrics.x_scale;
394 glyph->
y_scale = cidsize->metrics.y_scale;
395
396 cidglyph->outline.n_points = 0;
397 cidglyph->outline.n_contours = 0;
398
402
403 glyph->
hint = hinting;
406
408 cidglyph->face,
409 cidsize,
410 cidglyph,
411 0,
412 0,
413 hinting,
418
419
420
421
422 must_finish_decoder =
TRUE;
423
424
426
430
431
432 hinting = glyph->
hint;
434
435 font_matrix =
decoder.font_matrix;
436 font_offset =
decoder.font_offset;
437
438
439 psaux->t1_decoder_funcs->done( &
decoder );
440
441 must_finish_decoder =
FALSE;
442
443
444
445
448
449
450
452 {
454
455
456 cidglyph->metrics.horiBearingX =
458 cidglyph->metrics.horiAdvance =
460
461 internal->glyph_matrix = font_matrix;
462 internal->glyph_delta = font_offset;
464 }
465 else
466 {
469
470
471
474 cidglyph->linearHoriAdvance =
476 cidglyph->internal->glyph_transformed = 0;
477
478
479 metrics->vertAdvance = (
face->cid.font_bbox.yMax -
480 face->cid.font_bbox.yMin ) >> 16;
481 cidglyph->linearVertAdvance =
metrics->vertAdvance;
482
484
485 if ( cidsize->metrics.y_ppem < 24 )
487
488
489 if ( font_matrix.
xx != 0x10000L || font_matrix.
yy != 0x10000L ||
490 font_matrix.
xy != 0 || font_matrix.
yx != 0 )
491 {
493
498 }
499
500 if ( font_offset.
x || font_offset.
y )
501 {
505
506 metrics->horiAdvance += font_offset.
x;
507 metrics->vertAdvance += font_offset.
y;
508 }
509
511 {
512
518
519
520
521 if ( !hinting || !
decoder.builder.hints_funcs )
522 for (
n =
cur->n_points;
n > 0;
n--,
vec++ )
523 {
526 }
527
528
531 }
532
533
535
538
541
543 {
544
547 }
548 }
549
551
552 if ( must_finish_decoder )
553 psaux->t1_decoder_funcs->done( &
decoder );
554
555#ifdef __REACTOS__
556 free(decoder_allocated);
557#undef decoder
558 }
559#endif
561 }
ios_base &_STLP_CALL internal(ios_base &__s)
cid_load_glyph(T1_Decoder decoder, FT_UInt glyph_index)
struct CID_GlyphSlotRec_ * CID_GlyphSlot
#define FT_LOAD_VERTICAL_LAYOUT
#define FT_LOAD_TARGET_MODE(x)
FT_BEGIN_HEADER struct FT_Glyph_Metrics_ FT_Glyph_Metrics
#define FT_LOAD_NO_RECURSE
#define FT_LOAD_NO_HINTING
FT_MulFix(FT_Long a, FT_Long b)
#define FT_OUTLINE_HIGH_PRECISION
#define FT_OUTLINE_REVERSE_FILL
ft_synthesize_vertical_metrics(FT_Glyph_Metrics *metrics, FT_Pos advance)
FT_Outline_Translate(const FT_Outline *outline, FT_Pos xOffset, FT_Pos yOffset)
FT_Outline_Transform(const FT_Outline *outline, const FT_Matrix *matrix)
FT_Outline_Get_CBox(const FT_Outline *outline, FT_BBox *acbox)
smooth FT_Module_Constructor FT_Module_Destructor FT_Module_Requester FT_GLYPH_FORMAT_OUTLINE
FT_BEGIN_HEADER typedef unsigned char FT_Bool
GLenum GLuint GLint GLenum face
GLsizei GLenum const GLvoid GLuint GLsizei GLfloat * metrics
struct CID_FaceRec_ * CID_Face