#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 * | m_latex_rep |
base_text_renderer * | m_rep |
Definition at line 44 of file text-renderer.h.
text_renderer::text_renderer | ( | void | ) |
Definition at line 39 of file text-renderer.cc.
|
delete |
text_renderer::~text_renderer | ( | void | ) |
Definition at line 44 of file text-renderer.cc.
References m_latex_rep, and m_rep.
Matrix text_renderer::get_extent | ( | const std::string & | txt, |
double | rotation = 0.0 , |
||
const caseless_str & | interpreter = "tex" |
||
) |
Definition at line 78 of file text-renderer.cc.
References base_text_renderer::get_extent(), m_latex_rep, m_rep, base_text_renderer::ok(), and ok().
Matrix text_renderer::get_extent | ( | text_element * | elt, |
double | rotation = 0.0 |
||
) |
Definition at line 70 of file text-renderer.cc.
References base_text_renderer::get_extent(), m_rep, and ok().
octave_map text_renderer::get_system_fonts | ( | void | ) |
Definition at line 99 of file text-renderer.cc.
References base_text_renderer::get_system_fonts(), m_rep, and ok().
bool text_renderer::ok | ( | void | ) | const |
Definition at line 51 of file text-renderer.cc.
References m_rep, and warn_disabled_feature().
Referenced by get_extent(), get_system_fonts(), opengl_renderer::render_text(), set_anti_aliasing(), set_color(), set_font(), text_to_pixels(), and text_to_strlist().
|
delete |
void text_renderer::set_anti_aliasing | ( | bool | val | ) |
Definition at line 92 of file text-renderer.cc.
References m_rep, ok(), and base_text_renderer::set_anti_aliasing().
Referenced by opengl_renderer::set_font().
void text_renderer::set_color | ( | const Matrix & | c | ) |
Definition at line 121 of file text-renderer.cc.
References m_latex_rep, m_rep, ok(), and base_text_renderer::set_color().
Referenced by opengl_renderer::set_color().
void 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 m_latex_rep, m_rep, ok(), and base_text_renderer::set_font().
Referenced by opengl_renderer::set_font().
void 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 131 of file text-renderer.cc.
References m_latex_rep, m_rep, base_text_renderer::ok(), ok(), and base_text_renderer::text_to_pixels().
Referenced by opengl_renderer::text_to_pixels().
void 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 154 of file text-renderer.cc.
References m_latex_rep, m_rep, base_text_renderer::ok(), ok(), and base_text_renderer::text_to_strlist().
Referenced by opengl_renderer::text_to_strlist().
|
private |
Definition at line 238 of file text-renderer.h.
Referenced by ~text_renderer(), get_extent(), set_color(), set_font(), text_to_pixels(), and text_to_strlist().
|
private |
Definition at line 237 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().