23 #if ! defined (txt_eng_ft_h)
24 #define txt_eng_ft_h 1
32 #include FT_FREETYPE_H
89 int rotation = ROTATION_0);
92 Matrix get_extent (
const std::string& txt,
double rotation = 0.0,
95 void set_font (
const std::string& name,
const std::string& weight,
96 const std::string& angle,
double size);
100 void set_mode (
int m);
102 void text_to_pixels (
const std::string& txt,
104 int halign,
int valign,
double rotation,
108 int rotation_to_mode (
double rotation)
const;
122 : name (), weight (), angle (),
size (0), face (0) { }
124 ft_font (
const std::string& nm,
const std::string& wt,
125 const std::string& ang,
double sz, FT_Face
f = 0)
126 : name (nm), weight (wt), angle (ang),
size (sz), face (
f) { }
148 FT_Face get_face (
void)
const;
158 void push_new_line (
void);
160 void update_line_bbox (
void);
162 void compute_bbox (
void);
164 int compute_line_xoffset (
const Matrix& lb)
const;
166 FT_UInt process_character (FT_ULong code, FT_UInt previous = 0);
208 #endif // HAVE_FREETYPE
Matrix get_boundingbox(void) const
uint8NDArray get_pixels(void) const
OCTINTERP_API octave_value box(JNIEnv *jni_env, jobject jobj, jclass jcls=0)
bool is_valid(void) const
std::list< Matrix > line_bbox
std::string get_name(void) const
std::string get_weight(void) const
std::string get_angle(void) const
ft_font(const std::string &nm, const std::string &wt, const std::string &ang, double sz, FT_Face f=0)
F77_RET_T const double const double * f
size_t size(T const (&)[z])
double get_size(void) const