Fix sorting font glyphs

This commit is contained in:
luboslenco
2024-09-24 20:37:08 +02:00
parent bd29c672e8
commit cecefcd9bf
+1 -1
View File
@@ -140,7 +140,7 @@ let _translator_init_font_font_path: string;
let _translator_init_font_font_scale: f32;
function translator_init_font(cjk: bool, font_path: string, font_scale: f32) {
array_sort(_g2_font_glyphs, function (pa: u32_ptr, pb: u32_ptr): i32 {
i32_array_sort(_g2_font_glyphs, function (pa: u32_ptr, pb: u32_ptr): i32 {
let a: i32 = (i32)DEREFERENCE(pa);
let b: i32 = (i32)DEREFERENCE(pb);
return a - b;