ReactOS 0.4.16-dev-1067-ge98bba2
afshaper.c File Reference
#include <ft2build.h>
#include "afglobal.h"
#include "aftypes.h"
#include "afshaper.h"
Include dependency graph for afshaper.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

FT_Error af_shaper_get_coverage (AF_FaceGlobals globals, AF_StyleClass style_class, FT_UShort *gstyles, FT_Bool default_script)
 
voidaf_shaper_buf_create (FT_Face face)
 
void af_shaper_buf_destroy (FT_Face face, void *buf)
 
const charaf_shaper_get_cluster (const char *p, AF_StyleMetrics metrics, void *buf_, unsigned int *count)
 
FT_ULong af_shaper_get_elem (AF_StyleMetrics metrics, void *buf_, unsigned int idx, FT_Long *advance, FT_Long *y_offset)
 

Function Documentation

◆ af_shaper_buf_create()

void * af_shaper_buf_create ( FT_Face  face)

Definition at line 592 of file afshaper.c.

593 {
594 FT_UNUSED( face );
595
596 return NULL;
597 }
#define NULL
Definition: types.h:112
#define FT_UNUSED(arg)
Definition: ftconfig.h:100
GLenum GLuint GLint GLenum face
Definition: glext.h:7025

Referenced by af_latin_metrics_check_digits(), af_latin_metrics_init_blues(), and af_latin_metrics_init_widths().

◆ af_shaper_buf_destroy()

void af_shaper_buf_destroy ( FT_Face  face,
void buf 
)

Definition at line 601 of file afshaper.c.

603 {
604 FT_UNUSED( face );
605 FT_UNUSED( buf );
606 }
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751

Referenced by af_latin_metrics_check_digits(), af_latin_metrics_init_blues(), and af_latin_metrics_init_widths().

◆ af_shaper_get_cluster()

const char * af_shaper_get_cluster ( const char p,
AF_StyleMetrics  metrics,
void buf_,
unsigned int count 
)

Definition at line 610 of file afshaper.c.

614 {
615 FT_Face face = metrics->globals->face;
616 FT_ULong ch, dummy = 0;
617 FT_ULong* buf = (FT_ULong*)buf_;
618
619
620 while ( *p == ' ' )
621 p++;
622
623 GET_UTF8_CHAR( ch, p );
624
625 /* since we don't have an engine to handle clusters, */
626 /* we scan the characters but return zero */
627 while ( !( *p == ' ' || *p == '\0' ) )
629
630 if ( dummy )
631 {
632 *buf = 0;
633 *count = 0;
634 }
635 else
636 {
637 *buf = FT_Get_Char_Index( face, ch );
638 *count = 1;
639 }
640
641 return p;
642 }
#define GET_UTF8_CHAR(ch, p)
Definition: afblue.h:31
FT_Get_Char_Index(FT_Face face, FT_ULong charcode)
Definition: ftobjs.c:3711
unsigned long FT_ULong
Definition: fttypes.h:253
GLuint GLuint GLsizei count
Definition: gl.h:1545
GLsizei GLenum const GLvoid GLuint GLsizei GLfloat * metrics
Definition: glext.h:11745
GLfloat GLfloat p
Definition: glext.h:8902

Referenced by af_latin_metrics_check_digits(), af_latin_metrics_init_blues(), and af_latin_metrics_init_widths().

◆ af_shaper_get_coverage()

FT_Error af_shaper_get_coverage ( AF_FaceGlobals  globals,
AF_StyleClass  style_class,
FT_UShort gstyles,
FT_Bool  default_script 
)

Definition at line 577 of file afshaper.c.

581 {
582 FT_UNUSED( globals );
583 FT_UNUSED( style_class );
584 FT_UNUSED( gstyles );
585 FT_UNUSED( default_script );
586
587 return FT_Err_Ok;
588 }
return FT_Err_Ok
Definition: ftbbox.c:527

Referenced by af_face_globals_compute_style_coverage().

◆ af_shaper_get_elem()

FT_ULong af_shaper_get_elem ( AF_StyleMetrics  metrics,
void buf_,
unsigned int  idx,
FT_Long advance,
FT_Long y_offset 
)

Definition at line 646 of file afshaper.c.

651 {
652 FT_Face face = metrics->globals->face;
653 FT_ULong glyph_index = *(FT_ULong*)buf_;
654
655 FT_UNUSED( idx );
656
657
658 if ( advance )
660 glyph_index,
664 advance );
665
666 if ( y_offset )
667 *y_offset = 0;
668
669 return glyph_index;
670 }
_STLP_MOVE_TO_STD_NAMESPACE void _STLP_CALL advance(_InputIterator &__i, _Distance __n)
unsigned int idx
Definition: utils.c:41
#define FT_LOAD_IGNORE_TRANSFORM
Definition: freetype.h:3037
#define FT_LOAD_NO_SCALE
Definition: freetype.h:3027
#define FT_LOAD_NO_HINTING
Definition: freetype.h:3028
FT_Get_Advance(FT_Face face, FT_UInt gindex, FT_Int32 load_flags, FT_Fixed *padvance)
Definition: ftadvanc.c:75

Referenced by af_latin_metrics_check_digits(), af_latin_metrics_init_blues(), and af_latin_metrics_init_widths().