#include "base-text-renderer.h"
Public Types | |
enum | { ROTATION_0 = 0 , ROTATION_90 = 1 , ROTATION_180 = 2 , ROTATION_270 = 3 } |
Public Member Functions | |
base_text_renderer (const base_text_renderer &)=delete | |
base_text_renderer (void) | |
virtual | ~base_text_renderer (void)=default |
void | fix_bbox_anchor (Matrix &bbox, int halign, int valign, int rot_mode, bool handle_rotation) const |
virtual Matrix | get_extent (const std::string &txt, double rotation, const caseless_str &interpreter)=0 |
virtual Matrix | get_extent (text_element *elt, double rotation)=0 |
virtual octave_map | get_system_fonts (void)=0 |
virtual bool | ok (void) |
base_text_renderer & | operator= (const base_text_renderer &)=delete |
virtual void | reset (void) |
void | rotate_pixels (uint8NDArray &pixels, int rot_mode) const |
int | rotation_to_mode (double rotation) const |
virtual void | set_anti_aliasing (bool val)=0 |
virtual void | set_color (const Matrix &c)=0 |
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 |
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 | visit (text_element_color &) |
virtual void | visit (text_element_combined &) |
virtual void | visit (text_element_fontname &) |
virtual void | visit (text_element_fontsize &) |
virtual void | visit (text_element_fontstyle &) |
virtual void | visit (text_element_list &e) |
virtual void | visit (text_element_string &) |
virtual void | visit (text_element_subscript &e) |
virtual void | visit (text_element_superscript &e) |
virtual void | visit (text_element_symbol &) |
Definition at line 43 of file base-text-renderer.h.
anonymous enum |
Enumerator | |
---|---|
ROTATION_0 | |
ROTATION_90 | |
ROTATION_180 | |
ROTATION_270 |
Definition at line 48 of file base-text-renderer.h.
|
inline |
Definition at line 56 of file base-text-renderer.h.
|
delete |
|
virtualdefault |
void base_text_renderer::fix_bbox_anchor | ( | Matrix & | bbox, |
int | halign, | ||
int | valign, | ||
int | rot_mode, | ||
bool | handle_rotation | ||
) | const |
Definition at line 109 of file base-text-renderer.cc.
References ROTATION_180, ROTATION_270, and ROTATION_90.
Referenced by ft_text_renderer::text_to_pixels(), and latex_renderer::text_to_pixels().
|
pure virtual |
Implemented in latex_renderer, and ft_text_renderer.
|
pure virtual |
Implemented in ft_text_renderer, and latex_renderer.
Referenced by text_renderer::get_extent().
|
pure virtual |
Implemented in latex_renderer, and ft_text_renderer.
Referenced by text_renderer::get_system_fonts().
|
inlinevirtual |
Reimplemented in latex_renderer.
Definition at line 81 of file base-text-renderer.h.
Referenced by text_renderer::get_extent(), text_renderer::text_to_pixels(), and text_renderer::text_to_strlist().
|
delete |
|
inlinevirtualinherited |
Reimplemented in ft_text_renderer.
Definition at line 363 of file text-engine.h.
void base_text_renderer::rotate_pixels | ( | uint8NDArray & | pixels, |
int | rot_mode | ||
) | const |
Definition at line 35 of file base-text-renderer.cc.
References Array< T, Alloc >::dim2(), Array< T, Alloc >::dim3(), Array< T, Alloc >::index(), MArray< T >::permute(), ROTATION_0, ROTATION_180, ROTATION_270, and ROTATION_90.
Referenced by ft_text_renderer::render(), and latex_renderer::text_to_pixels().
int base_text_renderer::rotation_to_mode | ( | double | rotation | ) | const |
Definition at line 88 of file base-text-renderer.cc.
References ROTATION_0, ROTATION_180, ROTATION_270, and ROTATION_90.
Referenced by ft_text_renderer::get_extent(), ft_text_renderer::text_to_pixels(), and latex_renderer::text_to_pixels().
|
pure virtual |
Implemented in latex_renderer, and ft_text_renderer.
Referenced by text_renderer::set_anti_aliasing().
|
pure virtual |
Implemented in latex_renderer, and ft_text_renderer.
Referenced by text_renderer::set_color().
|
pure virtual |
Implemented in ft_text_renderer, and latex_renderer.
Referenced by text_renderer::set_font().
|
pure virtual |
Implemented in latex_renderer, and ft_text_renderer.
Referenced by text_renderer::text_to_pixels().
|
pure virtual |
Implemented in latex_renderer, and ft_text_renderer.
Referenced by text_renderer::text_to_strlist().
|
inlinevirtualinherited |
Reimplemented in ft_text_renderer.
Definition at line 361 of file text-engine.h.
|
inlinevirtualinherited |
Reimplemented in ft_text_renderer.
Definition at line 353 of file text-engine.h.
|
inlinevirtualinherited |
Reimplemented in ft_text_renderer.
Definition at line 357 of file text-engine.h.
|
inlinevirtualinherited |
Reimplemented in ft_text_renderer.
Definition at line 359 of file text-engine.h.
|
inlinevirtualinherited |
Reimplemented in ft_text_renderer.
Definition at line 355 of file text-engine.h.
|
inlinevirtualinherited |
Reimplemented in ft_text_renderer.
Definition at line 339 of file text-engine.h.
|
inlinevirtualinherited |
Reimplemented in ft_text_renderer.
Definition at line 335 of file text-engine.h.
Referenced by ft_text_renderer::visit().
|
inlinevirtualinherited |
Reimplemented in ft_text_renderer.
Definition at line 347 of file text-engine.h.
References text_element::accept(), and text_element_subscript::get_element().
|
inlinevirtualinherited |
Reimplemented in ft_text_renderer.
Definition at line 350 of file text-engine.h.
References text_element::accept(), and text_element_superscript::get_element().
|
inlinevirtualinherited |
Reimplemented in ft_text_renderer.
Definition at line 337 of file text-engine.h.