mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-15 01:18:13 +00:00
[hvar] Rename lsb function for clarity
This commit is contained in:
parent
ab5ce64313
commit
9f974cae4a
2 changed files with 5 additions and 5 deletions
|
@ -242,8 +242,8 @@ struct hmtxvmtx
|
|||
return side_bearing;
|
||||
|
||||
float lsb;
|
||||
if (var_table->get_side_bearing_var (glyph, font->coords, font->num_coords, &lsb))
|
||||
return side_bearing + lsb;
|
||||
if (var_table->get_lsb_delta_unscaled (glyph, font->coords, font->num_coords, &lsb))
|
||||
return side_bearing + roundf (lsb);
|
||||
|
||||
return _glyf_get_side_bearing_var (font, glyph, T::tableTag == HB_OT_TAG_vmtx);
|
||||
#else
|
||||
|
|
|
@ -329,9 +329,9 @@ struct HVARVVAR
|
|||
store_cache);
|
||||
}
|
||||
|
||||
bool get_side_bearing_var (hb_codepoint_t glyph,
|
||||
const int *coords, unsigned int coord_count,
|
||||
float *lsb) const
|
||||
bool get_lsb_delta_unscaled (hb_codepoint_t glyph,
|
||||
const int *coords, unsigned int coord_count,
|
||||
float *lsb) const
|
||||
{
|
||||
if (!lsbMap) return false;
|
||||
uint32_t varidx = (this+lsbMap).map (glyph);
|
||||
|
|
Loading…
Add table
Reference in a new issue