I have a program using iTextSharp that includes the code
FontFactory.RegisterDirectories();
foreach (string fontname in FontFactory.RegisteredFonts)
{
Log.Info("**** Found registered font: " + fontname);
}
When I run it (using Mono on a CentOS box), the log shows only the core PostScript fonts:
- zapfdingbats
- times-roman
- times-italic
- helvetica-boldoblique
- courier-boldoblique
- helvetica-bold
- helvetica
- courier-oblique
- helvetica-oblique
- courier-bold
- times-bolditalic
- courier
- times-bold
- symbol
But I have 156 TTF files under my /usr/share/fonts directory tree (which is one of the directories mentioned in the code for the RegisterDirectories function). Why aren't these being registered?