Lines Matching refs:info
52 _hb_glyph_info_set_unicode_props (hb_glyph_info_t *info, hb_unicode_funcs_t *unicode)
54 info->unicode_props0() = ((unsigned int) unicode->general_category (info->codepoint)) |
55 (unicode->is_default_ignorable (info->codepoint) ? 0x80 : 0) |
56 (info->codepoint == 0x200C ? 0x40 : 0) |
57 (info->codepoint == 0x200D ? 0x20 : 0);
58 info->unicode_props1() = unicode->modified_combining_class (info->codepoint);
62 _hb_glyph_info_get_general_category (const hb_glyph_info_t *info)
64 return (hb_unicode_general_category_t) (info->unicode_props0() & 0x1F);
68 _hb_glyph_info_set_modified_combining_class (hb_glyph_info_t *info, unsigned int modified_class)
70 info->unicode_props1() = modified_class;
74 _hb_glyph_info_get_modified_combining_class (const hb_glyph_info_t *info)
76 return info->unicode_props1();
80 _hb_glyph_info_is_default_ignorable (const hb_glyph_info_t *info)
82 return !!(info->unicode_props0() & 0x80);
86 _hb_glyph_info_is_zwnj (const hb_glyph_info_t *info)
88 return !!(info->unicode_props0() & 0x40);
92 _hb_glyph_info_is_zwj (const hb_glyph_info_t *info)
94 return !!(info->unicode_props0() & 0x20);
142 set_lig_props_for_ligature (hb_glyph_info_t &info, unsigned int lig_id, unsigned int lig_num_comps)
144 info.lig_props() = (lig_id << 5) | IS_LIG_BASE | (lig_num_comps & 0x0F);
147 set_lig_props_for_mark (hb_glyph_info_t &info, unsigned int lig_id, unsigned int lig_comp)
149 info.lig_props() = (lig_id << 5) | (lig_comp & 0x0F);
152 set_lig_props_for_component (hb_glyph_info_t &info, unsigned int comp)
154 set_lig_props_for_mark (info, 0, comp);
158 get_lig_id (const hb_glyph_info_t &info)
160 return info.lig_props() >> 5;
163 is_a_ligature (const hb_glyph_info_t &info)
165 return !!(info.lig_props() & IS_LIG_BASE);
168 get_lig_comp (const hb_glyph_info_t &info)
170 if (is_a_ligature (info))
173 return info.lig_props() & 0x0F;
176 get_lig_num_comps (const hb_glyph_info_t &info)
178 if ((info.glyph_props() & HB_OT_LAYOUT_GLYPH_PROPS_LIGATURE) && is_a_ligature (info))
179 return info.lig_props() & 0x0F;