FontFactory

Inheritance: java.lang.Object

public class FontFactory

包含打开不同类型字体的功能以及用于创建各种对象的其他方法。

构造函数

构造函数描述
FontFactory()构造函数

方法

方法描述
equals(Object arg0)
getClass()
hashCode()
notify()
notifyAll()
open(FontDefinition fontDefinition)打开字体,使用 FontDefinition 对象。
open(FontType fontType, byte[] fontData)打开字体,使用字体类型和字体数据字节数组。
open(FontType fontType, StreamSource fontStreamSource)打开字体,使用字体类型和流源。
open(FontType fontType, String fileName)打开字体,使用字体类型和字体文件名。
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

FontFactory()

public FontFactory()

构造函数

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

参数类型描述
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

open(FontDefinition fontDefinition)

public Font open(FontDefinition fontDefinition)

打开字体,使用 FontDefinition 对象。

Parameters:

参数类型描述
fontDefinitionFontDefinition字体定义对象。

Returns: Font - Font loaded.

open(FontType fontType, byte[] fontData)

public Font open(FontType fontType, byte[] fontData)

打开字体,使用字体类型和字体数据字节数组。

Parameters:

参数类型描述
fontTypeFontType字体类型。
fontDatabyte[]用于加载字体的字节数组。

Returns: Font - Font loaded.

open(FontType fontType, StreamSource fontStreamSource)

public Font open(FontType fontType, StreamSource fontStreamSource)

打开字体,使用字体类型和流源。

Parameters:

参数类型描述
fontTypeFontType字体类型。
fontStreamSourceStreamSource字体的流来源。

Returns: Font - Font loaded.

open(FontType fontType, String fileName)

public Font open(FontType fontType, String fileName)

打开字体,使用字体类型和字体文件名。

Parameters:

参数类型描述
fontTypeFontType字体类型。
文件名java.lang.String字体文件名。

Returns: Font - Font loaded.

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

参数类型描述
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

参数类型描述
arg0long
arg1int