Hi, I have problem with Japanese text. My English text work fine but Jp not cut to new line when it longer than length limit. Both texts use the same code.
JP text use font_add to store .tff to global.variable when start game. I try to use this font to draw Eng, still no problem. Only draw JP.
Here result image of Eng/JP dialogue link : https://imgur.com/a/L6A4b9u
Anyone know the cause and how to fix? Thank you
JP text use font_add to store .tff to global.variable when start game. I try to use this font to draw Eng, still no problem. Only draw JP.
Code:
txt = instance_create(argument2,argument3,obj_text);
with (txt)
{
padding = 20;
maxlength = __view_get( e__VW.WView, 0 )-580;
text = argument0;
spd = argument1;
font = global.jap_font;
text_length = string_length(text);
font_size = font_get_size(font);
draw_set_font(font);
text_width = string_width_ext(string_hash_to_newline(text),font_size+(font_size/2), maxlength);
text_height = string_height_ext(string_hash_to_newline(text),font_size+(font_size/2), maxlength);
}
Anyone know the cause and how to fix? Thank you