Part of https://github.com/harfbuzz/harfbuzz/issues/1652
* Google Author(s): Behdad Esfahbod
*/
+#include "hb.hh"
+
+#ifndef HB_NO_SHAPE_AAT
+
#include "hb-aat-map.hh"
#include "hb-aat-layout.hh"
void hb_aat_map_builder_t::add_feature (hb_tag_t tag,
unsigned int value)
{
-#ifdef HB_NO_SHAPE_AAT
- return;
-#endif
-
if (tag == HB_TAG ('a','a','l','t'))
{
feature_info_t *info = features.push();
void
hb_aat_map_builder_t::compile (hb_aat_map_t &m)
{
-#ifdef HB_NO_SHAPE_AAT
- return;
-#endif
-
/* Sort features and merge duplicates */
if (features.length)
{
hb_aat_layout_compile_map (this, &m);
}
+
+
+#endif
plan.props = props;
plan.shaper = shaper;
map.compile (plan.map, key);
+#ifndef HB_NO_SHAPE_AAT
if (apply_morx)
aat_map.compile (plan.aat_map);
+#endif
#ifndef HB_NO_OT_SHAPE_FRACTIONS
plan.frac_mask = plan.map.get_1_mask (HB_TAG ('f','r','a','c'));
const hb_shape_plan_key_t *key)
{
map.init ();
+#ifndef HB_NO_SHAPE_AAT
aat_map.init ();
+#endif
hb_ot_shape_planner_t planner (face,
&key->props);
shaper->data_destroy (const_cast<void *> (data));
map.fini ();
+#ifndef HB_NO_SHAPE_AAT
aat_map.fini ();
+#endif
}
void