#include <opennurbs_font.h>
◆ ON_TextBox() [1/3]
ON_TextBox::ON_TextBox |
( |
| ) |
|
|
default |
◆ ~ON_TextBox()
ON_TextBox::~ON_TextBox |
( |
| ) |
|
|
default |
◆ ON_TextBox() [2/3]
◆ ON_TextBox() [3/3]
◆ Dump()
void ON_TextBox::Dump |
( |
class ON_TextLog & |
text_log | ) |
const |
◆ IsSet()
bool ON_TextBox::IsSet |
( |
| ) |
const |
Returns: true if bounding box is set.
◆ operator=()
◆ Scale()
◆ Translate() [1/2]
◆ Translate() [2/2]
Returns: A text box with m_bbmin, m_bbmax, m_max_basepoint are translated by delta. m_advance is not changed.
◆ Union()
Parameters: lhs - [in] lhs.m_advance is ignored rhs - [in] rhs.m_advance is ignored Returns: Returned m_bbmin, m_bbmax, m_max_basepoint are the union of the lhs and rhs bounding box. Returned m_advance = (0,0)
◆ m_advance
m_advance is a vector that specifies where the basepoint should be moved to after the text is rendered. m_advance.i and m_advance.j are always >= 0.
When glyphs are rendered right to left (Arabic and Hebrew being examples) or bottom to top, the rendering code must apply the correct sign. Some reasons for using positive advance values for every glyph is that left to right and right to left languages can be appear on a single line and the sign of y associated with "up" is sometimes positive and sometimes negative. ON_TextBox::Translate does not modify the vector m_advance. ON_TextBox::Union ignored input advance values and returns a box with advance = (0,0). 0 <= m_advance.i will be <= m_max_basepoint.i.
◆ m_bbmax
◆ m_bbmin
The use context determines the length units. Common units include font glyph design units, normalized font design units, various display units. Typically x increases to the right, y increases upwards. For glyph and text run boxes, (0,0) is the horizontal base
◆ m_max_basepoint
m_max_basepoint.i = maximum horizontal delta in any line. Increases to the right, decreases to the left. m_max_basepoint.i = vertical delta to baseline of bottom line. Increases upward, decreases downward.
◆ Unset