java.lang.Object
org.sejda.sambox.pdmodel.font.FontUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetTag()static Stringstatic booleanisEmbeddingPermitted(org.apache.fontbox.ttf.TrueTypeFont ttf) static booleanisSubsetFontName(String name) static booleanisSubsettingPermitted(org.apache.fontbox.ttf.TrueTypeFont ttf)
-
Field Details
-
BASE25
- See Also:
-
-
Constructor Details
-
FontUtils
private FontUtils()
-
-
Method Details
-
isEmbeddingPermitted
public static boolean isEmbeddingPermitted(org.apache.fontbox.ttf.TrueTypeFont ttf) throws IOException - Returns:
- true if the fsType in the OS/2 table permits embedding.
- Throws:
IOException
-
isSubsettingPermitted
public static boolean isSubsettingPermitted(org.apache.fontbox.ttf.TrueTypeFont ttf) throws IOException - Returns:
- true if the fsType in the OS/2 table permits subsetting.
- Throws:
IOException
-
getTag
- Returns:
- an uppercase 6-character unique tag for the given subset.
-
getTag
- Returns:
- an uppercase 6-character unique tag randomly created
-
isSubsetFontName
- Parameters:
name- a font name- Returns:
- true if the name denotes a subset font Ex. ABCDEF+Verdana
-