32 INLINE
void PNMTextMaker::
33 set_align(PNMTextMaker::Alignment align_type) {
42 INLINE PNMTextMaker::Alignment PNMTextMaker::
63 if (_interior_flag != interior_flag) {
64 _interior_flag = interior_flag;
74 INLINE
bool PNMTextMaker::
75 get_interior_flag()
const {
76 return _interior_flag;
113 _interior = interior;
const wstring & get_wtext() const
Returns the text associated with the TextEncoder, as a wide-character string.
const LColor & get_interior() const
Returns the color that will be used to render the interior portions of hollow fonts.
The name of this class derives from the fact that we originally implemented it as a layer on top of t...
int calc_width(const string &text)
Returns the width in pixels of the indicated line of text.
This class can be used to convert text between multiple representations, e.g.
int generate_into(const string &text, PNMImage &dest_image, int x, int y)
Generates a single line of text into the indicated image at the indicated position; the return value ...
void set_interior(const LColor &interior)
Sets the color that will be used to render the interior portions of hollow fonts in future calls to g...
bool is_valid() const
Returns true if the PNMTextMaker is valid and ready to generate text, false otherwise.
void set_interior_flag(bool interior_flag)
Sets the flag that indicates whether the interior of hollow fonts is identified as a preprocess as ea...
This is the base class for all three-component vectors and points.
void set_fg(const LColor &fg)
Sets the foreground color of text that will be generated by future calls to generate_into().
void set_text(const string &text)
Changes the text that is stored in the encoder.
const LColor & get_fg() const
Returns the foreground color of text that will be generated by future calls to generate_into().