Grandstream Networks GXP-2000 manual Attribute font, Attribute halign, Attribute valign

Models: GXP-2000

1 8
Download 8 pages 61.01 Kb
Page 7
Image 7
Attribute font

XML Based Customizable Screen

When this attribute is present and the value is “false” then the string will be displayed only when SIP Account 1 is NOT in REGISTERED state.

Note: When this attribute is absent then this bitmap is displayed regardless to the SIP Account 1 registration states.

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>

In this version we will support 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 then we will also default to 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"/>

www.grandstream.com

Page 7
Image 7
Grandstream Networks GXP-2000 manual Attribute font, Attribute halign, Attribute valign, XML Based Customizable Screen