mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-19 14:01:10 +01:00
[subset] only preprocess in benchmark when experimental api is enabled.
This commit is contained in:
1 parent
db22bfb3cc
commit
d1bf6c0c26
1 file changed
+4
@@ -101,9 +101,13 @@ void AddGlyphs(unsigned num_glyphs_in_font,
|
||||
// the subsetting operations.
|
||||
static hb_face_t* preprocess_face(hb_face_t* face)
|
||||
{
|
||||
#ifdef HB_EXPERIMENTAL_API
|
||||
hb_face_t* new_face = hb_subset_preprocess(face);
|
||||
hb_face_destroy(face);
|
||||
return new_face;
|
||||
#else
|
||||
return face;
|
||||
#endif
|
||||
}
|
||||
|
||||
/* benchmark for subsetting a font */
|
||||
|
||||
Reference in new issue
Block a user