aboutsummaryrefslogtreecommitdiff
path: root/vendor
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2025-06-20 09:59:25 +0100
committergingerBill <bill@gingerbill.org>2025-06-20 09:59:25 +0100
commite5a4f3bcae39f467c3f613874b14356a90efe11d (patch)
treeb52da7d44d227082f632f6def8f8f8f199691381 /vendor
parent41e3bda2a9a359819d7a22ce7fbcc2f3a0a1e528 (diff)
More type corrections/improvements
Diffstat (limited to 'vendor')
-rw-r--r--vendor/kb_text_shape/kb_text_shape_types.odin22
1 files changed, 13 insertions, 9 deletions
diff --git a/vendor/kb_text_shape/kb_text_shape_types.odin b/vendor/kb_text_shape/kb_text_shape_types.odin
index 700f2b765..e0ca1580d 100644
--- a/vendor/kb_text_shape/kb_text_shape_types.odin
+++ b/vendor/kb_text_shape/kb_text_shape_types.odin
@@ -1607,7 +1607,9 @@ glyph :: struct {
// Unicode properties filled in by CodepointToGlyph.
JoiningType: unicode_joining_type,
- Script: u8,
+ using _: bit_field u8 {
+ Script: script | 8,
+ },
UnicodeFlags: unicode_flags,
SyllabicClass: u8,
SyllabicPosition: u8,
@@ -1783,8 +1785,8 @@ break_type :: struct {
bracket :: struct {
Codepoint: rune,
- Direction: u8,
- Script: u8,
+ using _: bit_field u8 { Direction: direction | 8 },
+ using _: bit_field u8 { Script: script | 8 },
}
break_state_flags :: distinct bit_set[break_state_flag; u32]
@@ -1868,13 +1870,15 @@ break_state :: struct {
LineBreak2PositionOffset: i16,
LineBreak3PositionOffset: i16,
- LastDirection: u8,
- BidirectionalClass2: u8,
- BidirectionalClass1: u8,
+ using LastDirectionBitField: bit_field u8 {
+ LastDirection: direction | 8,
+ },
+ BidirectionalClass2: unicode_bidirectional_class,
+ BidirectionalClass1: unicode_bidirectional_class,
JapaneseLineBreakStyle: japanese_line_break_style,
GraphemeBreakState: u8,
- LastLineBreakClass: u8,
- LastWordBreakClass: u8,
- LastWordBreakClassIncludingIgnored: u8,
+ LastLineBreakClass: line_break_class,
+ LastWordBreakClass: word_break_class,
+ LastWordBreakClassIncludingIgnored: word_break_class,
}