From 18d0a08aceb11e7784aae83d72a4c390e9ff2557 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Sun, 18 Aug 2019 18:11:17 +0300 Subject: [PATCH] freetype: fix utf crash --- vlib/freetype/freetype.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vlib/freetype/freetype.v b/vlib/freetype/freetype.v index 5f03dcc2cb..2913f6efaa 100644 --- a/vlib/freetype/freetype.v +++ b/vlib/freetype/freetype.v @@ -255,8 +255,8 @@ fn (ctx mut Context) init_utf8_runes() { // fn (ctx &GG) render_text(text string, x, y, scale f32, color gx.Color) { pub fn (ctx &Context) draw_text(_x, _y int, text string, cfg gx.TextCfg) { - utext := text.ustring_tmp() - // utext := text.ustring() + //utext := text.ustring_tmp() + utext := text.ustring() ctx._draw_text(_x, _y, utext, cfg) // utext.free() // # glScissor(0,0,ctx->width*2,ctx->height*2);