361 {
364#ifdef __REACTOS__
366 if (!decoder_allocated) return FT_Err_Out_Of_Memory;
367
368#define decoder (*decoder_allocated)
369 {
370#else
372#endif
376
381
382
383 if ( glyph_index >= (
FT_UInt)
face->root.num_glyphs )
384 {
387 }
388
391
392 glyph->
x_scale = cidsize->metrics.x_scale;
393 glyph->
y_scale = cidsize->metrics.y_scale;
394
395 cidglyph->outline.n_points = 0;
396 cidglyph->outline.n_contours = 0;
397
401
402 glyph->
hint = hinting;
404 cidglyph->format = FT_GLYPH_FORMAT_OUTLINE;
405
407 cidglyph->face,
408 cidsize,
409 cidglyph,
410 0,
411 0,
412 hinting,
417
418
419
420
421 must_finish_decoder =
TRUE;
422
423
425
429
430
431 hinting = glyph->
hint;
433
434 font_matrix =
decoder.font_matrix;
435 font_offset =
decoder.font_offset;
436
437
438 psaux->t1_decoder_funcs->done( &
decoder );
439
440 must_finish_decoder =
FALSE;
441
442
443
444
447
448
449
451 {
453
454
455 cidglyph->metrics.horiBearingX =
457 cidglyph->metrics.horiAdvance =
459
460 internal->glyph_matrix = font_matrix;
461 internal->glyph_delta = font_offset;
463 }
464 else
465 {
468
469
470
473 cidglyph->linearHoriAdvance =
475 cidglyph->internal->glyph_transformed = 0;
476
477
478 metrics->vertAdvance = (
face->cid.font_bbox.yMax -
479 face->cid.font_bbox.yMin ) >> 16;
480 cidglyph->linearVertAdvance =
metrics->vertAdvance;
481
482 cidglyph->format = FT_GLYPH_FORMAT_OUTLINE;
483
484 if ( cidsize->metrics.y_ppem < 24 )
486
487
488 if ( font_matrix.
xx != 0x10000L || font_matrix.
yy != 0x10000L ||
489 font_matrix.
xy != 0 || font_matrix.
yx != 0 )
490 {
492
497 }
498
499 if ( font_offset.
x || font_offset.
y )
500 {
504
505 metrics->horiAdvance += font_offset.
x;
506 metrics->vertAdvance += font_offset.
y;
507 }
508
510 {
511
517
518
519
520 if ( !hinting || !
decoder.builder.hints_funcs )
521 for (
n =
cur->n_points;
n > 0;
n--,
vec++ )
522 {
525 }
526
527
530 }
531
532
534
537
540
542 {
543
546 }
547 }
548
550
551 if ( must_finish_decoder )
552 psaux->t1_decoder_funcs->done( &
decoder );
553
554#ifdef __REACTOS__
555 free(decoder_allocated);
556#undef decoder
557 }
558#endif
560 }
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)
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