|
|
@ -496,7 +496,7 @@ VkResult load_font(VkDevice device, VmaAllocator allocator, VkDescriptorSetLayou
|
|
|
|
symbols[i].width = width;
|
|
|
|
symbols[i].width = width;
|
|
|
|
symbols[i].height = height;
|
|
|
|
symbols[i].height = height;
|
|
|
|
symbols[i].left = face->glyph->bitmap_left;
|
|
|
|
symbols[i].left = face->glyph->bitmap_left;
|
|
|
|
symbols[i].top = ((face->bbox.yMax*size)/face->units_per_EM) - face->glyph->bitmap_top;
|
|
|
|
symbols[i].top = face->glyph->bitmap_top;
|
|
|
|
symbols[i].advance = face->glyph->advance.x*16/face->units_per_EM;
|
|
|
|
symbols[i].advance = face->glyph->advance.x*16/face->units_per_EM;
|
|
|
|
max_width = width > max_width ? width : max_width;
|
|
|
|
max_width = width > max_width ? width : max_width;
|
|
|
|
max_height = height > max_height ? height : max_height;
|
|
|
|
max_height = height > max_height ? height : max_height;
|
|
|
|