Class Fonts

java.lang.Object
org.docx4j.convert.out.fopconf.Fonts

public class Fonts extends Object

Java class for anonymous complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType>
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="font" maxOccurs="unbounded" minOccurs="0">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <sequence>
                   <element name="font-triplet" maxOccurs="unbounded">
                     <complexType>
                       <complexContent>
                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                           <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
                           <attribute name="style" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
                           <attribute name="weight" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
                         </restriction>
                       </complexContent>
                     </complexType>
                   </element>
                 </sequence>
                 <attribute name="simulate-style" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" />
                 <attribute name="embed-url" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
                 <attribute name="sub-font" type="{http://www.w3.org/2001/XMLSchema}string" />
               </restriction>
             </complexContent>
           </complexType>
         </element>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 
  • Field Details

  • Constructor Details

    • Fonts

      public Fonts()
  • Method Details

    • getFont

      public List<Fonts.Font> getFont()
      Gets the value of the font property.

      This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the font property.

      For example, to add a new item, do as follows:

          getFont().add(newItem);
       

      Objects of the following type(s) are allowed in the list Fonts.Font