The Text class is a concept class for text-related enum classes. More...
#include <hps.h>
Private Member Functions | |
Text () | |
The Text class is a concept class for text-related enum classes.
|
strong |
Enumeration of the alignments used for text string.
These define what the insertion point for a text string is measured with respect to.
|
strong |
Enumerates the greeking modes.
These define what to draw in place of characters once they fall below the greeking limit.
|
strong |
Enumerates the units for greeking limits.
Enumerator | |
---|---|
ObjectSpace | Object space units ignoring any scaling components in modelling matrices. |
SubscreenRelative | Fraction of the height of the outermost window. |
WindowRelative | Fraction of the height of the local window. |
WorldSpace | Object space units including any scaling components in modelling matrices and cameras. |
Points | Points units typically used for text size. 1 point corresponds to 1/72 inch. |
Pixels | Number of pixels. |
|
strong |
|
strong |
|
strong |
Enumerates the units for background margins.
Enumerator | |
---|---|
ObjectSpace | Object space units ignoring any scaling components in modelling matrices. |
SubscreenRelative | Fraction of the height of the outermost window. |
WindowRelative | Fraction of the height of the local window. |
WorldSpace | Object space units including any scaling components in modelling matrices and cameras. |
Points | Points units typically used for text size. 1 point corresponds to 1/72 inch. |
Pixels | Number of pixels. |
Percent | Percentage of the requested font height. |
|
strong |
|
strong |
|
strong |
Enumerates the alignments for text regions.
These define how text strings will be positioned relative to the line defining the text region.
Enumerator | |
---|---|
Top | Text will be drawn below the region line. |
Center | Text will be drawn such that the region line passes through its center. |
Bottom | Text will be drawn above the region line. |
|
strong |
Enumerates how text is arranged within a region.
Enumerator | |
---|---|
Left | Text will be left-justified on the region line. |
Center | Text will be centered-justified on the region line. |
Right | Text will be right-justified on the region line. |
Spacing | Text will be stretched or squeezed to fill the region line and character width will not change (characters may overlap). |
Width | Text will be stretched or squeezed to fill the region line and character width will change (narrowing or widening as necessary). |
Auto | Text will be stretched or squeezed to fill the region line. This will behave as Width when the text needs to be squeezed, or as Spacing when the text needs to be stretched. |
|
strong |
Enumerates the renderers for text strings.
These define the font-handling subsystems Visualize uses to find and render fonts.
|
strong |
|
strong |
Enumerates the units for size tolerances.
Enumerator | |
---|---|
ObjectSpace | Object space units ignoring any scaling components in modelling matrices. |
SubscreenRelative | Fraction of the height of the outermost window. |
WindowRelative | Fraction of the height of the local window. |
WorldSpace | Object space units including any scaling components in modelling matrices and cameras. |
Points | Points units typically used for text size. 1 point corresponds to 1/72 inch. |
Pixels | Number of pixels. |
Percent | Percentage of the requested font size defining the lower limit on the smallest font size that can be substituted in the requested's place. |
|
strong |
Enumerates the units for font sizes.
Enumerator | |
---|---|
ObjectSpace | Object space units ignoring any scaling components in modelling matrices. |
SubscreenRelative | Fraction of the height of the outermost window. |
WindowRelative | Fraction of the height of the local window. |
WorldSpace | Object space units including any scaling components in modelling matrices and cameras. |
Points | Points units typically used for text size. 1 point corresponds to 1/72 inch. |
Pixels | Number of pixels. |
|
strong |
Enumerates the transform behaviors for text strings.
These define how the entire string will be positioned within 3D space.
Enumerator | |
---|---|
Transformable | Text will be subject to all modelling and projection matrices, essentially acting as a textured quad. Text paths will be act as transformations in 3D space. |
NonTransformable | Only the text insertion point (see also Text::Alignment) will be subject to modelling and projection matrices. Text will always be drawn in screen space. Text paths will act as transformations in screen space. |
CharacterPositionOnly | Text will be subject to all modelling and projection matrices, however characters will always be drawn in screen space. |
CharacterPositionAdjusted | Equivalent to CharacterPositionOnly, but additionally will draw text upright when it would otherwise appear upside down based on the camera. To get this behavior Text::ReferenceFrame::PathAligned and Text::Rotation::FollowPath must be set, otherwise this will be equivalent to CharacterPositionOnly. |
NonScalingTransformable | Text will be subject to all modelling and projection matrices except for size changes, otherwise acting as a textured quad. Text paths will be act as transformations in 3D space. |
|
inlineprivate |