1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
#ifndef FREETYPEHARFBUZZ_H
#define FREETYPEHARFBUZZ_H
struct fthb_font_info {
double ascent;
double descent;
double linegap;
};
struct fthb_string_info {
double width;
double height;
double ascent;
double descent;
};
extern
int (*fthb_get_font_info)(const char* font_path,
double font_size,
struct fthb_font_info* metrics_out);
extern
int (*fthb_calc_string_info)(const char* string,
const char* font_path,
double font_size,
struct fthb_string_info* metrics_out);
extern
int (*fthb_calc_string_width)(const char* string,
const char* font_path,
double font_size,
double* width_out);
#endif
|