Cobbletext  0.2.0
Complex text layout and rendering engine
text_properties.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "common.h"
4 #include "script_direction.h"
5 
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9 
27  const char * language;
28 
41  const char * script;
42 
49 
56 
65  double font_size;
66 
73 };
74 
75 #ifdef __cplusplus
76 }
77 #endif
CobbletextCustomPropertyID
uint64_t CobbletextCustomPropertyID
A user-provided integer for custom properties.
Definition: common.h:48
script_direction.h
CobbletextFontID
uint32_t CobbletextFontID
Unique font face ID.
Definition: common.h:18
CobbletextTextProperties
Properties for text runs on a struct CobbletextEngine instance.
Definition: text_properties.h:13
CobbletextTextProperties::script_direction
CobbletextScriptDirection script_direction
The current script direction.
Definition: text_properties.h:48
CobbletextTextProperties::custom_property
CobbletextCustomPropertyID custom_property
The current user-provided custom property.
Definition: text_properties.h:72
common.h
CobbletextTextProperties::language
const char * language
The current language as a BCP 47 language tag.
Definition: text_properties.h:27
CobbletextTextProperties::script
const char * script
The current script as a ISO 15924 string.
Definition: text_properties.h:41
CobbletextScriptDirection
uint8_t CobbletextScriptDirection
Script direction of a run of text.
Definition: script_direction.h:16
CobbletextTextProperties::font_size
double font_size
The current font size in points.
Definition: text_properties.h:65
CobbletextTextProperties::font
CobbletextFontID font
The current font face.
Definition: text_properties.h:55