Font.xsd
上传用户:xhbjoy
上传日期:2014-10-07
资源大小:38068k
文件大小:3k
源码类别:

游戏引擎

开发平台:

Visual C++

  1. <?xml version="1.0" ?>
  2. <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
  3. <xsd:element name="Font" type="FontType" />
  4. <xsd:complexType name="FontType">
  5. <xsd:sequence>
  6. <xsd:element name="Mapping" type="MapType" maxOccurs="unbounded" minOccurs="0" />
  7. <xsd:element name="GlyphSet" type="GlyphSetType" maxOccurs="unbounded" minOccurs="0" />
  8. <xsd:element name="GlyphRange" type="GlyphRangeType" maxOccurs="unbounded" minOccurs="0" />
  9. <xsd:element name="Glyph" type="GlyphType" maxOccurs="unbounded" minOccurs="0" />
  10. </xsd:sequence>
  11. <xsd:attributeGroup ref="FontAttrs" />
  12. </xsd:complexType>
  13. <xsd:complexType name="MapType">
  14. <xsd:attribute name="Codepoint" type="xsd:nonNegativeInteger" use="required" />
  15. <xsd:attribute name="Image" type="xsd:string" use="required" />
  16. <xsd:attribute name="HorzAdvance" type="xsd:integer" use="optional" default="-1" />
  17. </xsd:complexType>
  18. <xsd:complexType name="GlyphType">
  19. <xsd:attribute name="Codepoint" type="xsd:nonNegativeInteger" use="required" />
  20. </xsd:complexType>
  21. <xsd:complexType name="GlyphRangeType">
  22. <xsd:attribute name="StartCodepoint" type="xsd:nonNegativeInteger" use="required" />
  23. <xsd:attribute name="EndCodepoint" type="xsd:nonNegativeInteger" use="required" />
  24. </xsd:complexType>
  25. <xsd:complexType name="GlyphSetType">
  26. <xsd:attribute name="Glyphs" type="xsd:string" use="required" />
  27. </xsd:complexType>
  28. <xsd:attributeGroup name="FontAttrs">
  29. <xsd:attribute name="Name" type="xsd:string" use="required" />
  30. <xsd:attribute name="Filename" type="xsd:string" use="required" />
  31. <xsd:attribute name="ResourceGroup" type="xsd:string" use="optional"  default="" />
  32. <xsd:attribute name="Type" use="required">
  33. <xsd:simpleType>
  34. <xsd:restriction base="xsd:string">
  35. <xsd:enumeration value="Dynamic" />
  36. <xsd:enumeration value="Static" />
  37. </xsd:restriction>
  38. </xsd:simpleType>
  39. </xsd:attribute>
  40. <xsd:attribute name="Size" type="xsd:nonNegativeInteger" use="optional" default="12" />
  41. <xsd:attribute name="FirstCodepoint" type="xsd:nonNegativeInteger" use="optional" default="32" />
  42. <xsd:attribute name="LastCodepoint" type="xsd:nonNegativeInteger" use="optional" default="127" />
  43. <xsd:attribute name="NativeHorzRes" type="xsd:nonNegativeInteger" use="optional" default="640" />
  44. <xsd:attribute name="NativeVertRes" type="xsd:nonNegativeInteger" use="optional" default="480" />
  45. <xsd:attribute name="AutoScaled" type="xsd:boolean" use="optional" default="false" />
  46. <xsd:attribute name="AntiAlias" type="xsd:boolean" use="optional" default="true" />
  47. </xsd:attributeGroup>
  48. </xsd:schema>