use crate::buffer::Buffer;
use crate::ot::layout::*;
use crate::plan::ShapePlan;
use crate::ShaperFont;
pub fn substitute(plan: &ShapePlan, font: &ShaperFont<'_, '_>, buffer: &mut Buffer) {
#[cfg(feature = "tracing")]
let tag = crate::ot::map::MessageTag(plan.ot_map.chosen_script(LayoutTableKind::Gsub));
if !buffer_message!(buffer, font, "start table GSUB script tag '{tag:#}'") {
return;
}
let table = font.layout().ot.gsub();
apply_layout_table(plan, font, buffer, table.as_ref());
buffer_message!(buffer, font, "end table GSUB script tag '{tag:#}'");
}