24 #if defined (HAVE_CONFIG_H) 56 static bool warned =
false;
63 "rendering text (FreeType)");
69 return rep !=
nullptr;
75 static Matrix empty_extent (1, 4, 0.0);
84 static Matrix empty_extent (1, 4, 0.0);
107 int halign,
int valign,
double rotation,
109 bool handle_rotation)
111 static Matrix empty_bbox (1, 4, 0.0);
126 std::list<text_renderer::string>& lst,
127 Matrix& bbox,
int halign,
int valign,
131 static Matrix empty_bbox (1, 4, 0.0);
132 static std::list<text_renderer::string> empty_lst;
virtual void set_font(const std::string &name, const std::string &weight, const std::string &angle, double size)=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
static octave::base_text_renderer * make_text_renderer(void)
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)
virtual Matrix get_extent(text_element *elt, double rotation)=0
nd example oindent opens the file binary numeric values will be read assuming they are stored in IEEE format with the least significant bit and then converted to the native representation Opening a file that is already open simply opens it again and returns a separate file id It is not an error to open a file several though writing to the same file through several different file ids may produce unexpected results The possible values of text mode reading and writing automatically converts linefeeds to the appropriate line end character for the you may append a you must also open the file in binary mode The parameter conversions are currently only supported for and permissions will be set to and then everything is written in a single operation This is very efficient and improves performance c
base_text_renderer * make_ft_text_renderer(void)
nd deftypefn *std::string name
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 set_font(const std::string &name, const std::string &weight, const std::string &angle, double size)
void warn_disabled_feature(const std::string &fcn, const std::string &feature, const std::string &pkg)
void set_color(const Matrix &c)
virtual void set_color(const Matrix &c)=0
Matrix get_extent(text_element *elt, double rotation=0.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
If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the string