diff --git a/vendor/kb_text_shape/kb_text_shape_procs.odin b/vendor/kb_text_shape/kb_text_shape_procs.odin index 30ad97500..ab8e885a4 100644 --- a/vendor/kb_text_shape/kb_text_shape_procs.odin +++ b/vendor/kb_text_shape/kb_text_shape_procs.odin @@ -53,8 +53,10 @@ PlaceShapeStateFromSlice :: proc "c" (Memory: []byte) -> ^shape_state { } @(require_results) -DecodeUtf8String :: proc "c" (String: string) -> decode { - return DecodeUtf8(raw_data(String), len(String)) +DecodeUtf8String :: proc "c" (String: string) -> (Codepoint: rune, SourceCharactersConsumed: u32, Valid: b32) { + Decode := DecodeUtf8(raw_data(String), len(String)) + Codepoint, SourceCharactersConsumed, Valid = Decode.Codepoint, Decode.SourceCharactersConsumed, Decode.Valid + return } @@ -92,7 +94,7 @@ FontFromMemory :: proc(Data: []byte, allocator: mem.Allocator) -> (Result: font, delete(Memory, allocator) } - PostReadFontInitializeFromSlice(&Result, Memory) + _ = PostReadFontInitializeFromSlice(&Result, Memory) return } diff --git a/vendor/kb_text_shape/kb_text_shape_types.odin b/vendor/kb_text_shape/kb_text_shape_types.odin index 2868492a2..592766100 100644 --- a/vendor/kb_text_shape/kb_text_shape_types.odin +++ b/vendor/kb_text_shape/kb_text_shape_types.odin @@ -1838,5 +1838,5 @@ decode :: struct { Codepoint: rune, SourceCharactersConsumed: u32, - Valid: u32, + Valid: b32, } \ No newline at end of file