Emits a tapered line segment as a filled trapezoid. w0 and
w1 are the full stroke widths at the start and end points
respectively; they may differ for a tapered stroke or match
for a uniform one. Pass NaN for w1 to use w0 (uniform
stroke) without repeating the value.
With #HB_DRAW_LINE_CAP_SQUARE each endpoint is extended along
the line direction by half its local stroke width, so four
hb_draw_line() calls form a closed rectangle without gaps
at the corners.
Emits a tapered line segment as a filled trapezoid.
w0andw1are the full stroke widths at the start and end points respectively; they may differ for a tapered stroke or match for a uniform one. PassNaNforw1to usew0(uniform stroke) without repeating the value.With #HB_DRAW_LINE_CAP_SQUARE each endpoint is extended along the line direction by half its local stroke width, so four
hb_draw_line()calls form a closed rectangle without gaps at the corners.