public class PD4Util extends Object
Constructor and Description |
---|
PD4Util() |
Modifier and Type | Method and Description |
---|---|
static void |
generateFontPropertiesFile(String fontsPath,
BufferedOutputStream bos,
boolean addFontDirReference)
scan font directory, generate pd4fonts.properties and output it to the given OutputStream.
|
static void |
generateFontPropertiesFile(String fontsPath,
String fontConfigFileLocation)
scan font directory and generate pd4fonts.properties
|
public static void generateFontPropertiesFile(String fontsPath, String fontConfigFileLocation) throws IOException
fontsPath
- fonts directory pathfontConfigFileLocation
- a target directory to store pd4fonts.properties. If null, the file is stored in fontsPath.IOException
- general IO errorpublic static void generateFontPropertiesFile(String fontsPath, BufferedOutputStream bos, boolean addFontDirReference) throws IOException
fontsPath
- font directory pathbos
- pd4fonts.properties data output streamaddFontDirReference
- if true it writes to the resulting .properties file an
absolute path to the font directoryIOException
- general IO errorRevision 4.0.15 / 20220727-0149