[TS] Fix SVG emoji placement.

This commit is contained in:
bruvzg 2023-08-29 08:46:15 +03:00
parent 541674d106
commit 29bad2928a
No known key found for this signature in database
GPG key ID: 7960FCF39844EC38
2 changed files with 4 additions and 4 deletions

View file

@ -187,8 +187,8 @@ FT_Error tvg_svg_in_ot_preset_slot(FT_GlyphSlot p_slot, FT_Bool p_cache, FT_Poin
ERR_FAIL_V_MSG(FT_Err_Invalid_SVG_Document, "Failed to get SVG bounds.");
}
gl_state.bmp_y = -min_y * gl_state.h / new_h;
gl_state.bmp_x = min_x * gl_state.w / new_w;
gl_state.bmp_y = gl_state.h + metrics.descender / 64.f;
gl_state.bmp_x = 0;
gl_state.ready = true;
}

View file

@ -187,8 +187,8 @@ FT_Error tvg_svg_in_ot_preset_slot(FT_GlyphSlot p_slot, FT_Bool p_cache, FT_Poin
ERR_FAIL_V_MSG(FT_Err_Invalid_SVG_Document, "Failed to get SVG bounds.");
}
gl_state.bmp_y = -min_y * gl_state.h / new_h;
gl_state.bmp_x = min_x * gl_state.w / new_w;
gl_state.bmp_y = gl_state.h + metrics.descender / 64.f;
gl_state.bmp_x = 0;
gl_state.ready = true;
}