Removed test setup, and small clean up.
This commit is contained in:
parent
0f5d46f5a4
commit
6469fe5a0f
|
@ -319,8 +319,7 @@ ft__font_make_face(Arena *arena, Face_Description *description, f32 scale_factor
|
||||||
white.data = white_data;
|
white.data = white_data;
|
||||||
|
|
||||||
Bad_Rect_Pack pack = {};
|
Bad_Rect_Pack pack = {};
|
||||||
// ft__bad_rect_pack_init(&pack, V2i32(1024, 1024));
|
ft__bad_rect_pack_init(&pack, V2i32(1024, 1024));
|
||||||
ft__bad_rect_pack_init(&pack, V2i32(128, 128));
|
|
||||||
ft__glyph_bounds_store_uv_raw(ft__bad_rect_pack_next(&pack, white.dim), white.dim, &face->white);
|
ft__glyph_bounds_store_uv_raw(ft__bad_rect_pack_next(&pack, white.dim), white.dim, &face->white);
|
||||||
for (u16 i = 0; i < index_count; i += 1){
|
for (u16 i = 0; i < index_count; i += 1){
|
||||||
Vec2_i32 dim = glyph_bitmaps[i].dim;
|
Vec2_i32 dim = glyph_bitmaps[i].dim;
|
||||||
|
@ -353,9 +352,6 @@ ft__font_make_face(Arena *arena, Face_Description *description, f32 scale_factor
|
||||||
face->bounds[i].uv.y1 = (face->bounds[i].uv.y0 + face->bounds[i].uv.y1)/texture_dim.y;
|
face->bounds[i].uv.y1 = (face->bounds[i].uv.y0 + face->bounds[i].uv.y1)/texture_dim.y;
|
||||||
face->bounds[i].uv.x0 = face->bounds[i].uv.x0/texture_dim.x;
|
face->bounds[i].uv.x0 = face->bounds[i].uv.x0/texture_dim.x;
|
||||||
face->bounds[i].uv.y0 = face->bounds[i].uv.y0/texture_dim.y;
|
face->bounds[i].uv.y0 = face->bounds[i].uv.y0/texture_dim.y;
|
||||||
#if 0
|
|
||||||
face->bounds[i].w /= texture_dim.z;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue