The vgfx engine is aware of some meta tags.
More...
The vgfx engine is aware of some meta tags.
In general, any tags beginning with "vgfx" are reserved! Don't use tags that begin with the vgfx
prefix unless the vgfx library is supposed to know about them.
Note that tags are recursively applied. So if a group specifies a color (for instance), that color will be applied to all subobjects within the group unless they in turn override with an explicit color setting of their own.
Here are the supported vgfx meta tags:
- vgfxClipHeight use this clip height
- vgfxClipWidth use this clip width
- vgfxColor change the line color to the value specified
- vgfxDrawBounds if true, groups will draw a rectangle around themselves using the current pen color and thickness. false by default.
- vgfxFillColor shapes will be filled with this color
- vgfxFont declares the font to be used for text primitives (see below).
- vgfxPath this is a persisted polygon path (a set of xy points).
- vgfxPrintable if true, this group will be printed. Note that if a group has no vgfxPrintable tag, it is assumed to be printable. So this flag is usually only interesting if set to false.
- vgfxTextFlags declares flags to be used when rendering text (see below).
- vgfxThickness change the pen thickess to this value (cm)
Fonts
Font tags (vgfxFont
) have a special value. It is a single string that contains font information such as:
- faceName the face name of the font
- size the size of the font in points
Text Flags
Text flags (vgfxTextFlags
) are a string that contain a list of flags, such as:
- center text should be centered
- left text should be left-justified
- right text should be right-justified