W3C WOFF File Format 1.0 support in Opera Presto 2.7

W3C reference
W3C WOFF File Format 1.0

The primary purpose of the WOFF format is to package fonts linked to web documents by means of CSS @font-face rules. Opera Presto provides support for the WOFF format with the following exception:

Extended metadata block

<metadata> element

Element Attributes Descriptions Support
<metadata> version <metadata>: The main element
  • version: The format version of the metadata element, currently 1.0
Yes

<metadata> child elements

Child Element /
attributes
Subelements /
attributes
Descriptions Support
<uniqueid>
  • id
<uniqueid>: A unique identifier string for the font
  • id: The identification string
Yes
<vendor>
  • name
  • url
<vendor>: Information about the font vendor
  • name: The name of the font vendor
  • url: The url for the font vendor
Yes
<credits> <credit>
  • name
  • url
  • role
<credits>: Credit information for the font
  • <credit>: A single credit record
    • name: The name of the entity being credited
    • url: The url for the entity being credited
    • role: The role of the entity being credited
Yes
<description>
  • url
<description>: An arbitrary text description of the font's design, its history, etc.
  • url: The url for more information about the font design, history, etc.
Yes
<license>
  • url
  • id
<license>: Licensing information for the font
  • url: The url for the license, more information about the license, etc.
  • id: An identifying string for the license
Yes
<copyright> The copyright for the font Yes
<trademark> The trademark for the font Yes
<licensee>
  • name
<licensee>: The licensee of the font
  • name: The name of the licensee
Yes
<extension>
  • id
<name>
  • lang
<item>
  • id
    • <name>
      • lang
    • <value>
      • lang
<extension>: A container element for extended metadata provided by the vendor
  • id: An arbitrary identifier defined by the vendor
    • <name>: Zero or more name elements may be used to provide a human-friendly name for the collection of extended metadata items
      • lang: A language tag as defined in the IANA Subtag Registry
    • <item>: At least one item element MUST be present in each extension container
      • id: An arbitrary identifier defined by the vendor
        • <name>: One or more name elements are used to provide a human-friendly name for a specific extended metadata item
          • lang: A language tag as defined in the IANA Subtag Registry.
        • <value>: One or more value elements are used to provide the value of a specific extended metadata item
          • lang: A language tag as defined in the IANA Subtag Registry.
Yes

Extended metadata example

<?xml version="1.0" encoding="UTF-8"?>
<metadata version="1.0">
  <uniqueid id="com.example.fontvendor.demofont.rev12345" />
  <vendor name="Font Vendor" url="http://fontvendor.example.com" />
  <credits>
    <credit
      name="Font Designer"
      url="http://fontdesigner.example.com"
      role="Lead" />
    <credit
      name="Another Font Designer"
      url="http://anotherdesigner.example.org"
      role="Contributor" />
    <credit
      name="Yet Another"
      role="Hinting" />
  </credits>
  <description>
    <text lang="en">
      A member of the Demo font family.
      This font is a humanist sans serif style designed
      for optimal legibility in low-resolution environments.
      It can be obtained from fontvendor.example.com.
    </text>
  </description>
  <license url="http://fontvendor.example.com/license"
       id="fontvendor-Web-corporate-v2">
    <text lang="en">A license goes here.</text>
    <text lang="fr">Un permis va ici.</text>
  </license>
  <copyright>
    <text lang="en">Copyright ©2009 Font Vendor"</text>
  </copyright>
  <trademark>
    <text lang="en">Demo Font is a trademark of Font Vendor</text>
    <text lang="de">Demo Font ist ein eingetragenes Warenzeichen der Font Vendor</text>
  </trademark>
  <licensee name="Wonderful Websites, Inc." />
  <extension id="org.example.fonts.metadata.v1">
    <name lang="en">Additional font information</name>
    <item id="org.example.fonts.metadata.v1.why">
      <name lang="en">Purpose</name>
      <value lang="en">This font exists as an example of WOFF packaging.</value>
    </item>
 </extension>
</metadata>

Documentation

Opera Help

Need help? Hit F1 anytime while using Opera to access our online help files, or go here.