User guide

SD/CD Series Card Printers OpenCard Data Format Guide 31
Font-Weight Attribute
The font-weight attribute specifies the rendering weight of text characters as “normal” or
“bold”. The default is “normal” if the attribute is not defined.
Fill Attribute
The fill attribute defines the text color. Find the list of color keyword names (for example,
fill=”blue”) at:
http://www.w3.org/TR/SVG11/types.html#ColorKeywords
Transform Attribute (Rotating Text)
The transform attribute is an SVG means of performing operations on the entire text element.
The most likely used transformation for card format designers is rotating a text element. SVG
allows rotation to any degree.
x=”100” y=”400” transform=”rotate(90 100, 400)”
datacard:staticElement Attribute
When data for the text element is static this attribute must be set to “true”. The static data
content must be added at the end of the element and the end-of-text element (</text>) must be
included after the last static data character.
Valid values are “true” and “false”. The default is “false” if this attribute is not defined.
<g><text id="NameHeader" fill="black" x="75" y="300" font-size="12pt" font-weight="bold"
font-family="DejaVu Serif” datacard:staticElement="true">Name:</text></g>
datacard:appendData Attribute
When the first part of the personalization data for the text element is static and the remainder
comes from the OpenCard data stream, this attribute must be set to “true”. The static data
content part must be added at the end of the element and the end-of-text element (</text>)
must be included after the last static data character.
Color has full effect when used in a GRAPHIC_COLOR personalization
operation, but also has an effect on intensity in a GRAPHIC_MONOCHROME
operation even though the hue is not printed.
datacard:staticElement Example