mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-14 17:13:40 +00:00
[face] Use max numGlyphs of maxp and loca
This commit is contained in:
parent
c8fd8c1337
commit
f567b55619
1 changed files with 2 additions and 4 deletions
|
@ -85,12 +85,10 @@ hb_face_t::load_num_glyphs () const
|
|||
unsigned ret = 0;
|
||||
|
||||
#ifndef HB_NO_BORING_EXPANSION
|
||||
if (!ret)
|
||||
ret = load_num_glyphs_from_loca (this);
|
||||
ret = hb_max (ret, load_num_glyphs_from_loca (this));
|
||||
#endif
|
||||
|
||||
if (!ret)
|
||||
ret = load_num_glyphs_from_maxp (this);
|
||||
ret = hb_max (ret, load_num_glyphs_from_maxp (this));
|
||||
|
||||
num_glyphs.set_relaxed (ret);
|
||||
return ret;
|
||||
|
|
Loading…
Add table
Reference in a new issue