GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
FreeType2.cc File Reference
#include "GameApi_h.hh"
#include <ft2build.h>
#include <string>
#include "FreeType2.hh"
Include dependency graph for FreeType2.cc:

Classes

struct  GlyphData
struct  K
struct  OutlineContext

Functions

std::string glyph_key (std::string ttf_filename, int sx, int sy)
Point2d lerp2 (Point2d a, Point2d b, float t)
double bezierY (const FontInterfaceImpl::Bezier2d &b, double t)
double bezierDY (const FontInterfaceImpl::Bezier2d &b, double t)
std::pair< double, bool > solveBezierY_orig (const FontInterfaceImpl::Bezier2d &bez, double y)
void split (std::vector< FontInterfaceImpl::Bezier2d > &vec, FontInterfaceImpl::Bezier2d orig, float t, bool emit_left, bool emit_right)
K find_loaded (std::string filename, bool &success)
Point2d pt (const FT_Vector *v)
int move_to (const FT_Vector *to, void *user)
int line_to (const FT_Vector *to, void *user)
int conic_to (const FT_Vector *control, const FT_Vector *to, void *user)
int cubic_to (const FT_Vector *control1, const FT_Vector *control2, const FT_Vector *to, void *user)

Variables

bool g_is_outline =false
std::map< std::string, std::map< long, GlyphData * > * > global_glyph_data
std::vector< K > loaded_vec

Function Documentation

◆ bezierDY()

double bezierDY ( const FontInterfaceImpl::Bezier2d & b,
double t )
inline

◆ bezierY()

double bezierY ( const FontInterfaceImpl::Bezier2d & b,
double t )
inline

◆ conic_to()

int conic_to ( const FT_Vector * control,
const FT_Vector * to,
void * user )
Here is the caller graph for this function:

◆ cubic_to()

int cubic_to ( const FT_Vector * control1,
const FT_Vector * control2,
const FT_Vector * to,
void * user )
Here is the caller graph for this function:

◆ find_loaded()

K find_loaded ( std::string filename,
bool & success )
Here is the caller graph for this function:

◆ glyph_key()

std::string glyph_key ( std::string ttf_filename,
int sx,
int sy )
Here is the caller graph for this function:

◆ lerp2()

Point2d lerp2 ( Point2d a,
Point2d b,
float t )
Here is the caller graph for this function:

◆ line_to()

int line_to ( const FT_Vector * to,
void * user )
Here is the caller graph for this function:

◆ move_to()

int move_to ( const FT_Vector * to,
void * user )
Here is the caller graph for this function:

◆ pt()

Point2d pt ( const FT_Vector * v)

◆ solveBezierY_orig()

std::pair< double, bool > solveBezierY_orig ( const FontInterfaceImpl::Bezier2d & bez,
double y )
Here is the caller graph for this function:

◆ split()

void split ( std::vector< FontInterfaceImpl::Bezier2d > & vec,
FontInterfaceImpl::Bezier2d orig,
float t,
bool emit_left,
bool emit_right )
Here is the caller graph for this function:

Variable Documentation

◆ g_is_outline

bool g_is_outline =false

◆ global_glyph_data

std::map<std::string,std::map<long,GlyphData*>*> global_glyph_data

◆ loaded_vec

std::vector<K> loaded_vec