ReactOS 0.4.16-dev-2358-g0df3463
afshaper.c File Reference
#include <freetype/freetype.h>
#include <freetype/ftadvanc.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 591 of file afshaper.c.

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

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 600 of file afshaper.c.

602 {
603 FT_UNUSED( face );
604 FT_UNUSED( buf );
605 }
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 609 of file afshaper.c.

613 {
614 FT_Face face = metrics->globals->face;
615 FT_ULong ch, dummy = 0;
616 FT_ULong* buf = (FT_ULong*)buf_;
617
618
619 while ( *p == ' ' )
620 p++;
621
622 GET_UTF8_CHAR( ch, p );
623
624 /* since we don't have an engine to handle clusters, */
625 /* we scan the characters but return zero */
626 while ( !( *p == ' ' || *p == '\0' ) )
628
629 if ( dummy )
630 {
631 *buf = 0;
632 *count = 0;
633 }
634 else
635 {
637 *count = 1;
638 }
639
640 return p;
641 }
#define GET_UTF8_CHAR(ch, p)
Definition: afblue.h:31
unsigned char ch[4][2]
Definition: console.c:118
FT_Get_Char_Index(FT_Face face, FT_ULong charcode)
Definition: ftobjs.c:3731
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 576 of file afshaper.c.

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

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 645 of file afshaper.c.

650 {
651 FT_Face face = metrics->globals->face;
652 FT_ULong glyph_index = *(FT_ULong*)buf_;
653
654 FT_UNUSED( idx );
655
656
657 if ( advance )
659 glyph_index,
663 advance );
664
665 if ( y_offset )
666 *y_offset = 0;
667
668 return glyph_index;
669 }
_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:3032
#define FT_LOAD_NO_SCALE
Definition: freetype.h:3022
#define FT_LOAD_NO_HINTING
Definition: freetype.h:3023
FT_Get_Advance(FT_Face face, FT_UInt gindex, FT_Int32 load_flags, FT_Fixed *padvance)
Definition: ftadvanc.c:74

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