Package org.docx4j.fonts
Class PhysicalFont
java.lang.Object
org.docx4j.fonts.PhysicalFont
public class PhysicalFont
extends java.lang.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 Summary
Fields Modifier and Type Field Description protected FontResolverfontResolverprotected booleanloadTypefaceFailedprotected static org.slf4j.Loggerlogprotected Typefacetypeface -
Method Summary
Modifier and Type Method Description java.lang.StringgetEmbeddedFile()EmbedFontInfogetEmbedFontInfo()java.lang.StringgetName()PanosegetPanose()TypefacegetTypeface()voidsetEmbeddedFile(java.lang.String embeddedFile)voidsetName(java.lang.String name)voidsetPanose(Panose panose)
-
Field Details
-
log
protected static org.slf4j.Logger log -
fontResolver
-
loadTypefaceFailed
protected boolean loadTypefaceFailed -
typeface
-
-
Method Details
-
getName
public java.lang.String getName() -
setName
public void setName(java.lang.String name) -
getEmbedFontInfo
-
getEmbeddedFile
public java.lang.String getEmbeddedFile() -
setEmbeddedFile
public void setEmbeddedFile(java.lang.String embeddedFile) -
getPanose
-
setPanose
-
getTypeface
-