HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML Forums › Technical questions / Troubleshooting › Where is javadoc for FontCache.generateFontPropertiesFile? › Reply To: Where is javadoc for FontCache.generateFontPropertiesFile?
Hmm… For some reason the method is excluded from Javadoc.
Here is the signature of the main method:
/**
* scan font directory, generate pd4fonts.properties and output it to the given OutputStream.
* @param fontsPath font directory path
* @param bos pd4fonts.properties data output stream
* @param addFontDirReference allows to add the original fonts dir path to pd4fonts.properties. It is useful for a case the generated .properties file
* cannot be saved to the original fonts dir (i.e. system fonts dir).
* @param filter if not null, defines comma-separated list of allowed font name patterns. For example "arial,cour,time"
* @param logLevel log output control bit mask
* @throws IOException
*/
public static void generateFontPropertiesFile(String fontDirPath,
BufferedOutputStream bos, boolean addFontDirReference, String filter, short logLevel) throws IOException {