mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-22 23:41:03 +01:00
[GSUB] Don't erase glyph classes if GDEF does not have glyph classes
This commit is contained in:
1 parent
fd42257f8c
commit
2fca1426ca
1 file changed
+4
-1
@@ -231,7 +231,10 @@ struct hb_apply_context_t
|
||||
|
||||
inline void set_klass_guess (unsigned int klass_guess) const
|
||||
{
|
||||
buffer->cur().props_cache() = has_glyph_classes ? 0 : klass_guess;
|
||||
if (likely (has_glyph_classes))
|
||||
buffer->cur().props_cache() = 0;
|
||||
else if (klass_guess)
|
||||
buffer->cur().props_cache() = klass_guess;
|
||||
}
|
||||
|
||||
inline void output_glyph (hb_codepoint_t glyph_index,
|
||||
|
||||
Reference in new issue
Block a user