- inner_bottom_curve.translate (Offset (0.0, +thickness));
- Molecule bottom_edge =
- Lookup::bezier_sandwich (bottom_curve, inner_bottom_curve);
- molecule.add_molecule(bottom_edge);
-
- // TODO: Use horizontal slope with proper slope value rather
- // than filled box for left edge, since the filled box stands
- // out from the flexa shape if the interval is big and the line
- // thickness small. The difficulty here is to compute a proper
- // slope value, as it should roughly be equal with the slope of
- // the left end of the bezier curve.
- Box left_edge_box (Interval (0, thickness),
- Interval (-0.5*left_height, +0.5*left_height));
- Molecule left_edge = Lookup::filledbox (left_edge_box);
- molecule.add_molecule(left_edge);
-
- Box right_edge_box (Interval (-thickness, 0),
- Interval (-0.5*right_height, +0.5*right_height));
- Molecule right_edge = Lookup::filledbox (right_edge_box);
+ inner_bottom_curve.translate (Offset (0.0, +line_thickness));
+ Stencil bottom_edge
+ = Lookup::bezier_sandwich (bottom_curve, inner_bottom_curve);
+ stencil.add_stencil (bottom_edge);
+
+ /*
+ * TODO: Use horizontal slope with proper slope value rather
+ * than filled box for left edge, since the filled box stands
+ * out from the flexa shape if the interval is big and the line
+ * thickness small. The difficulty here is to compute a proper
+ * slope value, as it should roughly be equal with the slope of
+ * the left end of the bezier curve.
+ */
+ Box left_edge_box (Interval (0, line_thickness),
+ Interval (-0.5 * left_height, +0.5 * left_height));
+ Stencil left_edge = Lookup::filled_box (left_edge_box);
+ stencil.add_stencil (left_edge);
+
+ Box right_edge_box (Interval (-line_thickness, 0),
+ Interval (-0.5 * right_height, +0.5 * right_height));
+ Stencil right_edge = Lookup::filled_box (right_edge_box);