Grandstream Networks, Inc.
XML Application Guide
Page 15 of 24
Last Updated: 3/2009
Note: When this attribute is absent then this string is displayed regardless to the SIP Account 1 registration
states.
NOTE:
Boolean variables have 2 possible values only: “true” and “false”; any other value such as “Yes” or
“No” will result in the string displayed regardless of the SIP Account 1 registration status.
Attribute font
This OPTIONAL attribute specifies the font we will use to render the string.
<
xsd:attribute
name
=
"
font
"
type
=
"
fontType
"
/>
<
xsd:simpleType
name
=
"
fontType
"
>
<
xsd:restriction
base
=
"
xsd:string
"
>
<
xsd:enumeration
value
=
"
f8
"
/>
<
xsd:enumeration
value
=
"
f10
"
/>
<
xsd:enumeration
value
=
"
f13h
"
/>
<
xsd:enumeration
value
=
"
f13b
"
/>
<
xsd:enumeration
value
=
"
f16
"
/>
<
xsd:enumeration
value
=
"
f16b
"
/>
<!--
f18c is a 18 point Comic font
-->
<
xsd:enumeration
value
=
"
f18c
"
/>
</
xsd:restriction
>
</
xsd:simpleType
>
This application supports 1 system font and 7 additional fonts in various sizes as enumerated above. Any
fonts not recognize will default to the system font. When this attribute is absent, default is system font.
Attribute halign
This OPTIONAL attribute specifies the horizontal alignment method used to display the string.
<
xsd:attribute
name
=
"
halign
"
type
=
"
HorizontalAlignmentType
"
/>
<
xsd:simpleType
name
=
"
HorizontalAlignmentType
"
>
<
xsd:restriction
base
=
"
xsd:string
"
>
<
xsd:enumeration
value
=
"
Left
"
/>
<
xsd:enumeration
value
=
"
Center
"
/>
<
xsd:enumeration
value
=
"
Right
"
/>
</
xsd:restriction
>
</
xsd:simpleType
>
We will default to Left when this attribute is absent.
Note: When using the Center alignment you will need to calculate the midpoint for the x-coordinate (4.5.2)
for the width to be considered centered. For instance, element X must be set to 65 (130/2) to display a
string that is aligned to the center of the LCD. Similarly, you will need to specify the right most point to
render if you are using the Right halign method.
Attribute valign
This OPTIONAL attribute specifies the vertical alignment method used to display the string.
<
xsd:attribute
name
=
"
valign
"
type
=
"
VerticalAlignmentType
"
/>
<
xsd:simpleType
name
=
"
VerticalAlignmentType
"
>
<
xsd:restriction
base
=
"
xsd:string
"
>
<
xsd:enumeration
value
=
"
Top
"
/>
<
xsd:enumeration
value
=
"
Center
"
/>
<
xsd:enumeration
value
=
"
Bottom
"
/>
</
xsd:restriction
>
</
xsd:simpleType
>
We will default to Top when this attribute is absent.
Note: When using the Center alignment you will need to calculate the midpoint for the y-coordinate (4.5.3)
for the width to be considered centered. For instance, element Y must be set to 32 to display a string that is
aligned to the center of the LCD. Similarly, you will need to specify the right most point to render if you are
using the Bottom valign method (set to 64).