OCCT-Light 0.1
C ABI and C++ veneer for multi-language CAD workflows
Loading...
Searching...
No Matches
occtl_text_metrics Struct Reference

#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
 

Detailed Description

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.

Member Data Documentation

◆ ascender

double occtl_text_metrics::ascender

Font ascender in model units.

◆ bottom

double occtl_text_metrics::bottom

Formatted local bounding box bottom coordinate.

◆ descender

double occtl_text_metrics::descender

Font descender in model units.

◆ height

double occtl_text_metrics::height

Formatted text height in model units.

◆ left

double occtl_text_metrics::left

Formatted local bounding box left coordinate.

◆ line_spacing

double occtl_text_metrics::line_spacing

Baseline-to-baseline distance in model units.

◆ max_symbol_width

double occtl_text_metrics::max_symbol_width

Maximum formatted symbol width in model units.

◆ p_next

const void* occtl_text_metrics::p_next

Reserved for extensions; must be NULL.

◆ right

double occtl_text_metrics::right

Formatted local bounding box right coordinate.

◆ struct_version

uint32_t occtl_text_metrics::struct_version

Must be OCCTL_TEXT_METRICS_VERSION_1.

◆ top

double occtl_text_metrics::top

Formatted local bounding box top coordinate.

◆ width

double occtl_text_metrics::width

Formatted text width in model units.


The documentation for this struct was generated from the following file: