if (LocaleCompare("push",token) == 0)
{
register const char
- *sentinel;
+ *end,
+ *start;
- sentinel=q-strlen(token)-1;
GetNextToken(q,&q,extent,token);
if (*q == '"')
{
Named macro (e.g. push graphic-context "wheel").
*/
GetNextToken(q,&q,extent,token);
+ start=q;
(void) CopyMagickString(name,token,MagickPathExtent);
n=0;
for (p=q; *q != '\0'; )
continue;
}
if (LocaleCompare(token,"pop") == 0)
- n--;
+ {
+ end=p-strlen(token)-1;
+ n--;
+ }
if (LocaleCompare(token,"push") == 0)
n++;
if (n < 0)
Extract macro.
*/
GetNextToken(p,&p,extent,token);
- macro=AcquireString(sentinel);
- macro[p-sentinel]='\0';
+ macro=AcquireString(start);
+ macro[end-start]='\0';
(void) AddValueToSplayTree(macros,ConstantString(name),
ConstantString(macro));
macro=DestroyString(macro);
{
{ "Undefined", UndefinedStyle, UndefinedOptionFlag, MagickTrue },
{ "Any", AnyStyle, UndefinedOptionFlag, MagickFalse },
+ { "Bold", BoldStyle, UndefinedOptionFlag, MagickFalse },
{ "Italic", ItalicStyle, UndefinedOptionFlag, MagickFalse },
{ "Normal", NormalStyle, UndefinedOptionFlag, MagickFalse },
{ "Oblique", ObliqueStyle, UndefinedOptionFlag, MagickFalse },
NormalStyle,
ItalicStyle,
ObliqueStyle,
- AnyStyle
+ AnyStyle,
+ BoldStyle
} StyleType;
typedef struct _TypeInfo
value);
break;
}
+ if (LocaleCompare(keyword,"font") == 0)
+ {
+ char
+ family[MagickPathExtent],
+ size[MagickPathExtent],
+ style[MagickPathExtent];
+
+ if (sscanf(value,"%2048s %2048s %2048s",style,size,family) != 3)
+ break;
+ (void) FormatLocaleFile(svg_info->file,"font-style \"%s\"\n",style);
+ (void) FormatLocaleFile(svg_info->file,"font-size \"%s\"\n",size);
+ (void) FormatLocaleFile(svg_info->file,"font-family \"%s\"\n",
+ family);
+ break;
+ }
if (LocaleCompare(keyword,"font-family") == 0)
{
(void) FormatLocaleFile(svg_info->file,"font-family \"%s\"\n",
MAGICK_VERSION=7.0.8-2
-MAGICK_GIT_REVISION=14469:13e51d19c:20180617
+MAGICK_GIT_REVISION=14473:578a60bd3:20180617
# Substitute library versioning