Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

Custom font

$
0
0
Hi there,
I am trying to integrate some custom font into our templates (Dejavu) and can't understand how.. The following construction doesn't work:

HashMap fontMap = new HashMap();

fontMap.put("sansserif", "DejaVu Sans");  

fontMap.put("serif", "DejaVu Serif");  

fontMap.put("monospaced", "DejaVu Sans Mono");

this.exporter = new JrPdfExporter();

this.exporter.setFontsMap(fontMap);


All the appropriate font jars are added. The code worked perfect without aspose support.


Any help? Thank you in advance!


Viewing all articles
Browse latest Browse all 3131

Trending Articles