Feeds:
Posts
Comments

Archive for the ‘java’ Category

use bangla font in java

i tried to write bangla font in a text field and have dane this successfully. Here is the source code of using bangla font in java.

     File fontFile = new File(“Boishkhi.ttf”);
     FileInputStream inStream = new FileInputStream(fontFile);
     Font banglaFont =Font.createFont(Font.TRUETYPE_FONT,inStream);
     banglaFont =banglaFont.deriveFont(Font.PLAIN,12);
     textField.setFont(banglaFont);

Here i am using Boisgakhi.tff as an example you can use any font just change font name.

Read Full Post »