Schema Central > XSL-FO 1.1 > fo.xsd > font
Advanced search
Need XML Help?

Recommended Reading:

Definitive XML Schema

 

Web Service Contract Design and Versioning for SOA

 

Advanced XML Applications

 

font

A shorthand property for setting "font-style", "font-variant", "font-weight", "font-size", "line-height", and "font-family", at the same place in the stylesheet. The syntax of this property is based on a traditional typographical shorthand notation to set multiple properties related to fonts. Value is  [ [ <font-style> || <font-variant> || <font-weight> ]? <font-size> [ / <line-height>]? <font-family> ] | caption | icon | menu | message-box | small-caption | status-bar | inherit  CSS2 Reference: "font" property

See http://www.w3.org/TR/xsl11/#font.

Attribute information

Namespace: None

Schema document: fo.xsd

Type: Anonymous

Properties: Local, Unqualified

Value

  • Union of:
      from type fo:inherit
    • Type based on xsd:token
      • Valid value
        inherit
    • List of:
      • Union of:
          from type fo:font-style
        • Type based on xsd:token
          • Valid valueDescription
            normalA font that is classified as "normal" in the UA's font database.
            italicA font that is classified as "italic" in the UA's font database, or, if that is not available, one labeled 'oblique'. Fonts with Italic, Cursive, or Kursiv in their names will typically be labeled "italic".
            obliqueA font that is classified as "oblique" in the UA's font database. Fonts with Oblique, Slanted, or Incline in their names will typically be labeled "oblique" in the font database. A font that is labeled "oblique" in the UA's font database may actually have been generated by electronically slanting a normal font.
            backslantA font that is classified as "backslant" in the UA's font database.
            inherit
        • from type fo:font-variant
        • Type based on xsd:token
          • Valid valueDescription
            normalA font that is not labeled as a small-caps font.
            small-capsA font that is labeled as a small-caps font. If a genuine small-caps font is not available, user agents should simulate a small-caps font, for example by taking a normal font and replacing the lowercase letters by scaled uppercase characters. As a last resort, unscaled uppercase letter glyphs in a normal font may replace glyphs in a small-caps font so that the text appears in all uppercase letters.
            inherit
        • from type fo:font-weight
        • Type based on xsd:token
          • Valid valueDescription
            normalSame as "400".
            boldSame as "700".
            bolderThe next weight that is assigned to a font that is darker than the inherited one. If there is no such weight, it simply results in the next darker numerical value (and the font remains unchanged), unless the inherited value was "900", in which case the resulting weight is also "900".
            lighterThe next weight that is assigned to a font that is lighter than the inherited one. If there is no such weight, it simply results in the next lighter numerical value (and the font remains unchanged), unless the inherited value was "100", in which case the resulting weight is also "100".
            100
            200
            300
            400
            500
            600
            700
            800
            900
            inherit
        • from type fo:font-size
        • Type based on xsd:token
          • Valid valueDescription
            xx-smallHTML size 1
            x-small
            smallHTML size 2
            mediumHTML size 3
            largeHTML size 4
            x-largeHTML size 5
            xx-largeHTML size 6
        • Type based on xsd:token
          • Valid value
            larger
            smaller
        • from type fo:length
        • Type based on xsd:string
          • Pattern: [\+\-]?\d+(\.?\d+)?(pc|px|pt|mm|cm|in|em)
        • from type fo:percentage
        • Type based on xsd:string
          • Pattern: [\+\-]?\d+(\.?\d+)?%
        • from type fo:inherit
        • Type based on xsd:token
          • Valid value
            inherit
        • from type fo:font-family
        • Type based on xsd:token
          • Valid value
            serif
            sans-serif
            cursive
            fantasy
            monospace
    • Type based on xsd:token
      • Valid valueDescription
        captionThe font used for captioned controls (e.g., buttons, drop-downs, etc.).
        iconThe font used to label icons.
        menuThe font used in menus (e.g., dropdown menus and menu lists).
        message-boxThe font used in dialog boxes.
        small-captionThe font used for labeling small controls.
        status-barThe font used in window status bars.
  • Used in

    Site developed and hosted by Datypic, Inc.

    Please report errors or comments about this site to contrib@functx.com