xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From senthilkumar A <asenthil...@gmail.com>
Subject Font metric file loaded issue.
Date Wed, 14 Jan 2015 09:10:48 GMT
 After very long search we got this solution from this site.

Thanks you very much....


<font metrics-file="IntroRegular.xml" kerning="yes" embed-
file="IntroRegular.ttf">
                <font-triplet name="Intro" style="normal" weight="normal"/>
                <font-triplet name="Intro" style="normal" weight="bold"/>
                
  </font>  
  <font metrics-file="IntroBold.xml" kerning="yes" embed-
file="IntroBold.ttf">
                <font-triplet name="IntroBold" style="normal" weight="bold"/>
                
  </font>

code snniipet:

Driver driver = new Driver();  
         Options options = new Options();
	 
options.loadUserconfiguration(this.getClass().getResourceAsStream("/fo
nt/userconfig.xml"));
         URL url = this.getClass().getResource("/font/userconfig.xml");
         String extForm = url.toExternalForm(); 
         Configuration.put("baseDir",extForm);
         Configuration.put("fontBaseDir",extForm);


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message