Class WindowsFontDirFinder
java.lang.Object
org.apache.fontbox.util.autodetect.WindowsFontDirFinder
- All Implemented Interfaces:
FontDirFinder
FontFinder for native Windows platforms. This class is based on a class provided by Apache FOP. see
org.apache.fop.fonts.autodetect.WindowsFontDirFinder
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
WindowsFontDirFinder
public WindowsFontDirFinder()
-
-
Method Details
-
getWinDir
Attempts to read windir environment variable on windows (disclaimer: This is a bit dirty but seems to work nicely).- Throws:
IOException
-
find
Finds a list of font files.- Specified by:
find
in interfaceFontDirFinder
- Returns:
- a list of detected font files
-