341 {
344#ifdef __REACTOS__
346 if (!decoder) return FT_Err_Out_Of_Memory;
347
348#define decoder (*decoder)
349 {
350#else
352#endif
356
361
362
363 if ( glyph_index >= (
FT_UInt)
face->root.num_glyphs )
364 {
367 }
368
371
372 glyph->
x_scale = cidsize->metrics.x_scale;
373 glyph->
y_scale = cidsize->metrics.y_scale;
374
375 cidglyph->outline.n_points = 0;
376 cidglyph->outline.n_contours = 0;
377
381
382 glyph->
hint = hinting;
385
386 error = psaux->t1_decoder_funcs->init( &decoder,
387 cidglyph->face,
388 cidsize,
389 cidglyph,
390 0,
391 0,
392 hinting,
397
398
399
400
401 must_finish_decoder =
TRUE;
402
403
406
410
411
412 hinting = glyph->
hint;
414
417
418
419 psaux->t1_decoder_funcs->done( &decoder );
420
421 must_finish_decoder =
FALSE;
422
423
424
425
428
429
430
432 {
434
435
436 cidglyph->metrics.horiBearingX =
438 cidglyph->metrics.horiAdvance =
440
441 internal->glyph_matrix = font_matrix;
442 internal->glyph_delta = font_offset;
444 }
445 else
446 {
449
450
451
454 cidglyph->linearHoriAdvance =
456 cidglyph->internal->glyph_transformed = 0;
457
458
459 metrics->vertAdvance = (
face->cid.font_bbox.yMax -
460 face->cid.font_bbox.yMin ) >> 16;
461 cidglyph->linearVertAdvance =
metrics->vertAdvance;
462
464
465 if ( cidsize->metrics.y_ppem < 24 )
467
468
469 if ( font_matrix.
xx != 0x10000L || font_matrix.
yy != 0x10000L ||
470 font_matrix.
xy != 0 || font_matrix.
yx != 0 )
471 {
473
478 }
479
480 if ( font_offset.
x || font_offset.
y )
481 {
485
486 metrics->horiAdvance += font_offset.
x;
487 metrics->vertAdvance += font_offset.
y;
488 }
489
491 {
492
498
499
500
502 for (
n =
cur->n_points;
n > 0;
n--,
vec++ )
503 {
506 }
507
508
511 }
512
513
515
518
521
523 {
524
527 }
528 }
529
531
532 if ( must_finish_decoder )
533 psaux->t1_decoder_funcs->done( &decoder );
534
535#ifdef __REACTOS__
537#undef decoder
538 }
539#endif
541 }
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