diff options
| author | Mike Wey | 2011-09-04 20:36:22 +0200 |
|---|---|---|
| committer | Mike Wey | 2011-09-04 20:36:22 +0200 |
| commit | b49bf718965a6e14a38886b8d99c9be27924acbc (patch) | |
| tree | 412221e28dc239d0b93276a1987b2ad338787bfa /dmagick/Options.d | |
| parent | a3a2d3901217e0bfa5875e1a037ee3c13d432183 (diff) | |
Add decorate, ellipse, fillColor, fillOpacity, fillRule, font, fontEncodeing, fontFamily, fontSize, fontStretch, fontStyle and fontWeight.
Diffstat (limited to 'dmagick/Options.d')
| -rw-r--r-- | dmagick/Options.d | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/dmagick/Options.d b/dmagick/Options.d index 85e1c13..53a4f9f 100644 --- a/dmagick/Options.d +++ b/dmagick/Options.d @@ -343,6 +343,20 @@ class Options } /** + * 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. * By default the color must be exact. Use this option to match @@ -448,20 +462,6 @@ class Options } /** - * 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. * The default is 75 @@ -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) { |
