Class FontSubstitutions

java.lang.Object
org.docx4j.fonts.substitutions.FontSubstitutions

public class FontSubstitutions 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="replace" maxOccurs="unbounded">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <sequence>
                   <element name="SubstFonts" type="{http://www.w3.org/2001/XMLSchema}string"/>
                   <element name="SubstFontsMS" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
                   <element name="SubstFontsPS" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
                   <element name="SubstFontsHTML" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
                   <element name="FontWeight" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
                   <element name="FontWidth" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
                   <element name="FontType" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
                 </sequence>
                 <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
               </restriction>
             </complexContent>
           </complexType>
         </element>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 
  • Field Details

  • Constructor Details

    • FontSubstitutions

      public FontSubstitutions()
  • Method Details

    • getReplace

      public List<FontSubstitutions.Replace> getReplace()
      Gets the value of the replace 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 replace property.

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

          getReplace().add(newItem);
       

      Objects of the following type(s) are allowed in the list FontSubstitutions.Replace