Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenfont/intern/blf_font.c
| Show First 20 Lines • Show All 498 Lines • ▼ Show 20 Lines | while ((i < len) && str[i]) { | ||||
| } | } | ||||
| if (UNLIKELY(g == NULL)) { | if (UNLIKELY(g == NULL)) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| /* do not return this loop if clipped, we want every character tested */ | /* do not return this loop if clipped, we want every character tested */ | ||||
| blf_glyph_render(font, gc, g, (float)pen_x, (float)pen_y); | blf_glyph_render(font, gc, g, (float)pen_x, (float)pen_y); | ||||
| col = BLI_wcwidth((wchar_t)c); | col = BLI_wcwidth((char32_t)c); | ||||
| if (col < 0) { | if (col < 0) { | ||||
| col = 1; | col = 1; | ||||
| } | } | ||||
| columns += col; | columns += col; | ||||
| pen_x += cwidth * col; | pen_x += cwidth * col; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 854 Lines • Show Last 20 Lines | |||||