Searched refs:char_width (Results 1 – 5 of 5) sorted by relevance
/aosp12/bootable/recovery/minui/ |
H A D | graphics.cpp | 65 return font->char_width * strlen(s); in gr_measure() 73 *x = font->char_width; in gr_font_size() 172 if (outside(x, y) || outside(x + font->char_width - 1, y + font->char_height - 1)) break; in gr_text() 179 const uint8_t* src_p = font->texture->data() + ((ch - ' ') * font->char_width) + in gr_text() 183 TextBlend(src_p, font->texture->row_bytes, dst_p, row_pixels, font->char_width, in gr_text() 186 x += font->char_width; in gr_text() 331 font->char_width = font->texture->width / 96; in gr_init_font()
|
/aosp12/system/core/healthd/ |
H A D | healthd_draw.cpp | 140 int str_len_px = length * field.font->char_width; in determine_xy() 166 if (!graphics_available || field.font == nullptr || field.font->char_width == 0 || in draw_clock() 199 if (field.font == nullptr || field.font->char_width == 0 || field.font->char_height == 0) { in draw_percent()
|
/aosp12/bootable/recovery/minui/include/minui/ |
H A D | minui.h | 88 int char_width; member
|
/aosp12/frameworks/base/cmds/bootanimation/ |
H A D | BootAnimation.h | 58 int char_width; member
|
H A D | BootAnimation.cpp | 984 font->char_width = font->texture.w / FONT_NUM_COLS; in initFont() 998 const int strWidth = font.char_width * len; in drawText() 1028 drawTexturedQuad(*x, *y, font.char_width, font.char_height); in drawText() 1030 *x += font.char_width; in drawText()
|