|
OCCT-Light 0.1
C ABI and C++ veneer for multi-language CAD workflows
|
#include <occtl_text.h>
Public Attributes | |
| uint32_t | struct_version |
| const void * | p_next |
| double | width |
| double | height |
| double | left |
| double | right |
| double | bottom |
| double | top |
| double | ascender |
| double | descender |
| double | line_spacing |
| double | max_symbol_width |
Formatted text metrics returned by occtl_text_measure.
Initialise with OCCTL_TEXT_METRICS_INIT or occtl_text_metrics_init before passing to occtl_text_measure. The caller-owned version field lets future OCCT-Light releases append fields without changing the ABI contract.
| double occtl_text_metrics::ascender |
Font ascender in model units.
| double occtl_text_metrics::bottom |
Formatted local bounding box bottom coordinate.
| double occtl_text_metrics::descender |
Font descender in model units.
| double occtl_text_metrics::height |
Formatted text height in model units.
| double occtl_text_metrics::left |
Formatted local bounding box left coordinate.
| double occtl_text_metrics::line_spacing |
Baseline-to-baseline distance in model units.
| double occtl_text_metrics::max_symbol_width |
Maximum formatted symbol width in model units.
| const void* occtl_text_metrics::p_next |
Reserved for extensions; must be NULL.
| double occtl_text_metrics::right |
Formatted local bounding box right coordinate.
| uint32_t occtl_text_metrics::struct_version |
Must be OCCTL_TEXT_METRICS_VERSION_1.
| double occtl_text_metrics::top |
Formatted local bounding box top coordinate.
| double occtl_text_metrics::width |
Formatted text width in model units.