I am writing a
java print program where i need to print in MICR
(Magnetic Ink Character Reconginition ) E13B fonts.I was succesful in
printing most common fonts (TimesRoman ,Courier ) etc using
Font f = new Font("Courier",Font.PLAIN,10) ; g.setFont(f) ;
Similarly while trying for MICR Fonts its printing the default fonts
only.
** MICR Fonts is installed in my PC. I am able to print the same from
MSWord 2000 correctly.
Also i tried to edit font.properties file by adding MICR font,but still
i am facing the same problem .
Just now i tried using JDK1.3 createFont() method as below
File file = new File("MICR.ttf");
FileInputStream fis = new FileInputStream(file);
Font font = Font.createFont(Font.TRUETYPE_FONT, fis);
here printing is done but font size is one point,so iam not able to recognize just a dot coming for each character.
how to increase font size in above case,i tried font.size=10,but gives error saying that its a priotected variable in font class,then i tried extending Font class still not working.
Can anyone guide me thru this to get my project complete .
Regards ,
Prakash Moily