David PHAM-VAN

Add Bézier Curve primitive

... ... @@ -4,6 +4,7 @@
* Mark some internal functions as protected
* Fix annotations
* Implement default fonts bounding box
* Add Bézier Curve primitive
# 1.0.8
* Fix monospace TTF font loading
... ...
... ... @@ -199,6 +199,12 @@ class PdfGraphics {
buf.putString("$x $y m\n");
}
/// Draw a bézier curve
void curveTo(
double x1, double y1, double x2, double y2, double x3, double y3) {
buf.putString("$x1 $y1 $x2 $y2 $x3 $y3 c\n");
}
void drawShape(String d) {
var sb = StringBuffer();
... ...