#include "text-renderer.h"
Classes | |
class | font |
class | string |
Public Member Functions | |
text_renderer (const text_renderer &)=delete | |
text_renderer (void) | |
~text_renderer (void) | |
Matrix | get_extent (const std::string &txt, double rotation=0.0, const caseless_str &interpreter="tex") |
Matrix | get_extent (text_element *elt, double rotation=0.0) |
octave_map | get_system_fonts (void) |
bool | ok (void) const |
text_renderer & | operator= (const text_renderer &)=delete |
void | set_anti_aliasing (bool val) |
void | set_color (const Matrix &c) |
void | set_font (const std::string &name, const std::string &weight, const std::string &angle, double size) |
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 | 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") |
Private Attributes | |
base_text_renderer * | rep |
Definition at line 44 of file text-renderer.h.
octave::text_renderer::text_renderer | ( | void | ) |
Definition at line 46 of file text-renderer.cc.
|
delete |
octave::text_renderer::~text_renderer | ( | void | ) |
Definition at line 50 of file text-renderer.cc.
References rep.
Matrix octave::text_renderer::get_extent | ( | const std::string & | txt, |
double | rotation = 0.0 , |
||
const caseless_str & | interpreter = "tex" |
||
) |
Definition at line 83 of file text-renderer.cc.
References octave::base_text_renderer::get_extent(), ok(), and rep.
Matrix octave::text_renderer::get_extent | ( | text_element * | elt, |
double | rotation = 0.0 |
||
) |
Definition at line 75 of file text-renderer.cc.
References octave::base_text_renderer::get_extent(), ok(), and rep.
octave_map octave::text_renderer::get_system_fonts | ( | void | ) |
Definition at line 99 of file text-renderer.cc.
References octave::base_text_renderer::get_system_fonts(), ok(), rep, and retval.
Referenced by F__get_system_fonts__().
bool octave::text_renderer::ok | ( | void | ) | const |
Definition at line 56 of file text-renderer.cc.
References rep, and warn_disabled_feature().
Referenced by get_extent(), get_system_fonts(), octave::opengl_renderer::render_text(), set_anti_aliasing(), set_color(), set_font(), text_to_pixels(), and text_to_strlist().
|
delete |
void octave::text_renderer::set_anti_aliasing | ( | bool | val | ) |
Definition at line 92 of file text-renderer.cc.
References ok(), rep, and octave::base_text_renderer::set_anti_aliasing().
Referenced by octave::opengl_renderer::set_font().
void octave::text_renderer::set_color | ( | const Matrix & | c | ) |
Definition at line 118 of file text-renderer.cc.
References ok(), rep, and octave::base_text_renderer::set_color().
Referenced by octave::opengl_renderer::set_color().
void octave::text_renderer::set_font | ( | const std::string & | name, |
const std::string & | weight, | ||
const std::string & | angle, | ||
double | size | ||
) |
Definition at line 110 of file text-renderer.cc.
References name, ok(), rep, and octave::base_text_renderer::set_font().
Referenced by octave::opengl_renderer::set_font().
void octave::text_renderer::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 |
||
) |
Definition at line 125 of file text-renderer.cc.
References ok(), rep, and octave::base_text_renderer::text_to_pixels().
Referenced by octave::opengl_renderer::text_to_pixels().
void octave::text_renderer::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" |
||
) |
Definition at line 145 of file text-renderer.cc.
References ok(), rep, and octave::base_text_renderer::text_to_strlist().
Referenced by octave::opengl_renderer::text_to_strlist().
|
private |
Definition at line 230 of file text-renderer.h.
Referenced by ~text_renderer(), get_extent(), get_system_fonts(), ok(), set_anti_aliasing(), set_color(), set_font(), text_to_pixels(), and text_to_strlist().