August 8, 2016 at 13:32
A usual reason, that it does not generate pd4fonts.properties is insufficient permissions.
For example the command has to index all system font and to generate c:/windows/fonts/pd4fonts.properties :
java -jar pd4ml.jar -configure.fonts c:/windows/fonts
but it does not, as by default (in modern Win versions) it has no permissions to write to c:/windows/fonts
A solution is to generate the properties file somewhere else:
java -jar pd4ml.jar -configure.fonts c:/windows/fonts c:/workspace/fontmap/
The second parameter defined a destination folder or new file name for generated pd4fonts.properties. The .properties will refer to c:/windows/fonts as the actual TTF location.
In your application pass “c:/workspace/fontmap/” as useTTF() parameter.