1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-09-19 13:50:06 +00:00
pdf2htmlEX/src/include/ffw.h

45 lines
933 B
C
Raw Normal View History

2012-09-17 12:40:10 +00:00
/*
* ffw.h : Fontforge Wrapper
*
* Processing fonts using Fontforge
*
* fontforge.h cannot be included in C++
* So this wrapper in C publishes several functions we need
*
* by WangLu
* 2012.09.03
*/
#ifdef __cplusplus
#include <cstdint>
namespace pdf2htmlEX {
extern "C" {
#else
#include <stdint.h>
#endif
void ffw_init(int debug);
void ffw_fin(void);
void ffw_load_font(const char * filename);
void ffw_reencode_glyph_order(void);
void ffw_reencode_raw(int32_t * mapping, int mapping_len, int force);
void ffw_reencode_raw2(char ** mapping, int mapping_len, int force);
void ffw_cidflatten(void);
void ffw_save(const char * filename);
void ffw_close(void);
2012-09-23 17:55:35 +00:00
int ffw_get_em_size(void);
2012-09-17 12:40:10 +00:00
// fix metrics and get them
2012-09-23 17:55:35 +00:00
void ffw_metric(double * ascent, double * descent);
2012-09-30 16:37:53 +00:00
void ffw_set_widths(int * width_list, int mapping_len, int stretch_narrow, int squeeze_wide);
2012-09-17 12:40:10 +00:00
2012-09-20 15:40:44 +00:00
void ffw_auto_hint(void);
2012-09-17 12:40:10 +00:00
#ifdef __cplusplus
}
}
#endif