return(constOptions()->font());
}
+void Magick::Image::fontFamily(const std::string &family_)
+{
+ modifyImage();
+ options()->fontFamily(family_);
+}
+
+std::string Magick::Image::fontFamily(void) const
+{
+ return(constOptions()->fontFamily());
+}
+
void Magick::Image::fontPointsize(const double pointSize_)
{
modifyImage();
void font(const std::string &font_);
std::string font(void) const;
+ // Font family
+ void fontFamily(const std::string &family_);
+ std::string fontFamily(void) const;
+
// Font point size
void fontPointsize(const double pointSize_);
double fontPointsize(void) const;
void font(const std::string &font_);
std::string font(void) const;
+ // Font name
+ void fontFamily(const std::string &family_);
+ std::string fontFamily(void) const;
+
// Font point size
void fontPointsize(double pointSize_);
double fontPointsize(void) const;
return(std::string());
}
+void Magick::Options::fontFamily(const std::string &family_)
+{
+ if (family_.length() == 0)
+ {
+ _drawInfo->family=(char *) RelinquishMagickMemory(_drawInfo->font);
+ (void) RemoveImageOption(imageInfo(),"family");
+ }
+ else
+ {
+ Magick::CloneString(&_drawInfo->family,family_);
+ (void) SetImageOption(imageInfo(),"family",family_.c_str());
+ }
+}
+
+std::string Magick::Options::fontFamily(void) const
+{
+ if (_drawInfo->family)
+ return(std::string(_drawInfo->family));
+
+ return(std::string());
+}
+
void Magick::Options::fontPointsize(double pointSize_)
{
_imageInfo->pointsize=pointSize_;
option=GetImageOption(clone_info,"encoding");
if (option != (const char *) NULL)
(void) CloneString(&draw_info->encoding,option);
+ option=GetImageOption(clone_info,"family");
+ if (option != (const char *) NULL)
+ (void) CloneString(&draw_info->family,option);
option=GetImageOption(clone_info,"fill");
if (option != (const char *) NULL)
(void) QueryColorCompliance(option,AllCompliance,&draw_info->fill,
}
case 'f':
{
+ if (LocaleCompare("family",option+1) == 0)
+ {
+ if (*option != '+')
+ (void) SetImageOption(image_info,option+1,argv[i+1]);
+ break;
+ }
if (LocaleCompare("fill",option+1) == 0)
{
if (*option == '+')