mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-19 14:01:10 +01:00
[ot-font] Mark a function hot
This commit is contained in:
1 parent
57083f26cb
commit
fed65c8bf8
4 files changed
+9
-1
No files matched your search
@@ -619,6 +619,7 @@ hb_ot_get_glyph_v_advances (hb_font_t* font, void* font_data,
|
||||
#endif
|
||||
|
||||
#ifndef HB_NO_VERTICAL
|
||||
HB_HOT
|
||||
static hb_bool_t
|
||||
hb_ot_get_glyph_v_origins (hb_font_t *font,
|
||||
void *font_data,
|
||||
|
||||
@@ -384,6 +384,7 @@ struct HVARVVAR
|
||||
hvar_plan.index_map_plans.as_array ()));
|
||||
}
|
||||
|
||||
HB_ALWAYS_INLINE
|
||||
float get_advance_delta_unscaled (hb_codepoint_t glyph,
|
||||
const int *coords, unsigned int coord_count,
|
||||
hb_scalar_cache_t *store_cache = nullptr) const
|
||||
@@ -446,9 +447,10 @@ struct VVAR : HVARVVAR {
|
||||
|
||||
bool subset (hb_subset_context_t *c) const { return HVARVVAR::_subset<VVAR> (c); }
|
||||
|
||||
HB_ALWAYS_INLINE
|
||||
float get_vorg_delta_unscaled (hb_codepoint_t glyph,
|
||||
const int *coords, unsigned int coord_count,
|
||||
hb_scalar_cache_t *store_cache = nullptr) const
|
||||
hb_scalar_cache_t *store_cache = nullptr) const
|
||||
{
|
||||
if (!vorgMap) return 0.f;
|
||||
uint32_t varidx = (this+vorgMap).map (glyph);
|
||||
|
||||
@@ -61,6 +61,7 @@ struct VORG
|
||||
|
||||
bool has_data () const { return version.to_int (); }
|
||||
|
||||
HB_ALWAYS_INLINE
|
||||
int get_y_origin (hb_codepoint_t glyph) const
|
||||
{
|
||||
unsigned int i;
|
||||
|
||||
Reference in new issue
Block a user