26 #if defined (HAVE_CONFIG_H)
53 static bool warned =
false;
60 "rendering text (FreeType)");
66 return m_rep !=
nullptr;
72 static Matrix empty_extent (1, 4, 0.0);
74 return ok () ? m_rep->
get_extent (elt, rotation) : empty_extent;
81 static Matrix retval (1, 4, 0.0);
111 const std::string& angle,
double size)
115 m_rep->
set_font (name, weight, angle, size);
116 m_latex_rep->
set_font (name, weight, angle, size);
133 int halign,
int valign,
double rotation,
135 bool handle_rotation)
137 static Matrix empty_bbox (1, 4, 0.0);
141 m_latex_rep->
text_to_pixels (txt, pxls, bbox, halign, valign, rotation,
155 std::list<text_renderer::string>& lst,
156 Matrix& bbox,
int halign,
int valign,
160 static Matrix empty_bbox (1, 4, 0.0);
161 static std::list<text_renderer::string> empty_lst;
164 m_latex_rep->
text_to_strlist (txt, lst, bbox, halign, valign, rotation,
176 OCTAVE_END_NAMESPACE(
octave)
virtual Matrix get_extent(text_element *elt, double rotation)=0
virtual void text_to_pixels(const std::string &txt, uint8NDArray &pxls, Matrix &bbox, int halign, int valign, double rotation, const caseless_str &interpreter, bool handle_rotation)=0
virtual void text_to_strlist(const std::string &txt, std::list< text_renderer::string > &lst, Matrix &box, int halign, int valign, double rotation, const caseless_str &interpreter="tex")=0
virtual void set_color(const Matrix &c)=0
virtual void set_anti_aliasing(bool val)=0
virtual octave_map get_system_fonts()=0
virtual void set_font(const std::string &name, const std::string &weight, const std::string &angle, double size)=0
void text_to_strlist(const std::string &txt, std::list< string > &lst, Matrix &box, int halign, int valign, double rotation=0.0, const caseless_str &interpreter="tex")
void text_to_pixels(const std::string &txt, uint8NDArray &pxls, Matrix &bbox, int halign, int valign, double rotation=0.0, const caseless_str &interpreter="tex", bool handle_rotation=true)
void set_anti_aliasing(bool val)
octave_map get_system_fonts()
Matrix get_extent(text_element *elt, double rotation=0.0)
void set_color(const Matrix &c)
void set_font(const std::string &name, const std::string &weight, const std::string &angle, double size)
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
void warn_disabled_feature(const std::string &fcn, const std::string &feature, const std::string &pkg)
base_text_renderer * make_ft_text_renderer()
base_text_renderer * make_latex_text_renderer()