Class PhysicalFont

java.lang.Object
org.docx4j.fonts.PhysicalFont

public class PhysicalFont extends Object
This class represents a font which is available on the system. It essentially wraps fop's EmbedFontInfo, but names it using the name from the triplet. However, it extends that with Panose info. TODO: use reflection, so that things don't fail if the fop jar doesn't include fontInfo.getPanose() or fontInfo.getEmbedFile()
Author:
dev
  • Field Details

    • log

      protected static org.slf4j.Logger log
    • fontResolver

      protected InternalResourceResolver fontResolver
    • loadTypefaceFailed

      protected boolean loadTypefaceFailed
    • typeface

      protected Typeface typeface
  • Method Details

    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getEmbedFontInfo

      public EmbedFontInfo getEmbedFontInfo()
    • getEmbeddedURI

      public URI getEmbeddedURI()
    • setEmbeddedURI

      public void setEmbeddedURI(URI embeddedURI)
    • getPanose

      public Panose getPanose()
    • setPanose

      public void setPanose(Panose panose)
    • getTypeface

      public Typeface getTypeface()