From b49bf718965a6e14a38886b8d99c9be27924acbc Mon Sep 17 00:00:00 2001 From: Mike Wey Date: Sun, 4 Sep 2011 20:36:22 +0200 Subject: Add decorate, ellipse, fillColor, fillOpacity, fillRule, font, fontEncodeing, fontFamily, fontSize, fontStretch, fontStyle and fontWeight. --- dmagick/Options.d | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) (limited to 'dmagick/Options.d') diff --git a/dmagick/Options.d b/dmagick/Options.d index 85e1c13..53a4f9f 100644 --- a/dmagick/Options.d +++ b/dmagick/Options.d @@ -342,6 +342,20 @@ class Options return to!(string)(drawInfo.font); } + /** + * Text rendering font point size + */ + void fontSize(double size) + { + imageInfo.pointsize = size; + drawInfo.pointsize = size; + } + ///ditto + double fontSize() const + { + return drawInfo.pointsize; + } + /** * Colors within this distance are considered equal. * A number of algorithms search for a target color. @@ -447,20 +461,6 @@ class Options return Geometry( to!(string)(imageInfo.page) ); } - /** - * Text rendering font point size - */ - void pointSize(double size) - { - imageInfo.pointsize = size; - drawInfo.pointsize = size; - } - ///ditto - double pointSize() const - { - return drawInfo.pointsize; - } - /** * The compression level for JPEG, MPEG, JPEG-2000, * MIFF, MNG, and PNG image format. @@ -872,6 +872,9 @@ class Options return to!(string)(drawInfo.family); } + /** + * Specify the spacing between text characters. + */ void fontStretch(StretchType type) { drawInfo.stretch = type; @@ -896,7 +899,7 @@ class Options } /** - * Specify the font style, i.e. italic, oblique, or normal. + * Specify the font weight. */ void fontWeight(size_t weight) { -- cgit v1.2.3