DEXTUploadJ
DEXTUploadJ References > ImageTool > Method > setFont

setFont Method

Version
1.0.1.0
Environment
Sun JDK1.4
Target
ImageTool
Signature 1
public void setFont(java.awt.Font _Font)
Signature 2
public void setFont(java.lang.String _FontName,int FontSize)
Signature 3
public void setFont(java.lang.String _FontName, int FontStyle, int FontSize)
Parameters
Name Signature Description
_Fontava.awt.FontFont to be used
_FontNamejava.lang.StringFont Name
FontSizeintFont Size
FontStyleintFont style. The same as the style defined in Font class.
Return value
Throws
java.io.IOException
DEXTUploadException
Description

Set font to be used.

Usage (Signature1)
ImageTool image = ImageTool.getImageTool(file);

image.setFont(font);
							
Usage (Signature2)
ImageTool image = ImageTool.getImageTool(file);
		
image.setFont("Sans", 30);
							
Usage (Signature3)
ImageTool image = ImageTool.getImageTool(file);

image.setFont("Sans", Font.ITALIC, 30);