mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-28 17:19:17 +01:00
Use hb_face_get_upem() instead of face->get_upem()
Such that hmtx accelerator can be used from libharfbuzz-subset.
This commit is contained in:
1 parent
3d66f441cc
commit
96f1f52ea3
2 files changed
+2
-2
No files matched your search
@@ -377,7 +377,7 @@ struct CBDT
|
||||
{
|
||||
inline void init (hb_face_t *face)
|
||||
{
|
||||
upem = face->get_upem();
|
||||
upem = hb_face_get_upem (face);
|
||||
|
||||
cblc_blob = Sanitizer<CBLC>().sanitize (face->reference_table (HB_OT_TAG_CBLC));
|
||||
cbdt_blob = Sanitizer<CBDT>().sanitize (face->reference_table (HB_OT_TAG_CBDT));
|
||||
|
||||
@@ -69,7 +69,7 @@ struct hmtxvmtx
|
||||
inline void init (hb_face_t *face,
|
||||
unsigned int default_advance_ = 0)
|
||||
{
|
||||
default_advance = default_advance_ ? default_advance_ : face->get_upem ();
|
||||
default_advance = default_advance_ ? default_advance_ : hb_face_get_upem (face);
|
||||
|
||||
bool got_font_extents = false;
|
||||
if (T::os2Tag)
|
||||
|
||||
Reference in new issue
Block a user