mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-24 00:11:14 +01:00
[subset/ClassDef] Micro-optimize use_class_zero calc
Probably never matters.
This commit is contained in:
1 parent
b557a84123
commit
ec0fbf8fa6
1 file changed
+7
-4
@@ -1595,10 +1595,13 @@ struct ClassDefFormat1_3
|
||||
orig_klasses.add (klass);
|
||||
}
|
||||
|
||||
unsigned glyph_count = glyph_filter
|
||||
? hb_len (hb_iter (glyph_map.keys()) | hb_filter (glyph_filter))
|
||||
: glyph_map.get_population ();
|
||||
use_class_zero = use_class_zero && glyph_count <= glyph_and_klass.length;
|
||||
if (use_class_zero)
|
||||
{
|
||||
unsigned glyph_count = glyph_filter
|
||||
? hb_len (hb_iter (glyph_map.keys()) | hb_filter (glyph_filter))
|
||||
: glyph_map.get_population ();
|
||||
use_class_zero = glyph_count <= glyph_and_klass.length;
|
||||
}
|
||||
if (!ClassDef_remap_and_serialize (c->serializer,
|
||||
orig_klasses,
|
||||
use_class_zero,
|
||||
|
||||
Reference in new issue
Block a user