Skip to main content

DXFontRepository Class

Stores registered fonts.

Declaration

public class DXFontRepository extends JavaObject implements IDisposable

Implements

com.devexpress.system.IDisposable

Inherited Members

com.devexpress.system.JavaObject.clone()
com.devexpress.system.JavaObject.equals(java.lang.Object)
com.devexpress.system.JavaObject.hashCode()
com.devexpress.system.JavaObject.initFields()
com.devexpress.system.JavaObject.memberwiseClone()
com.devexpress.system.JavaObject.toString()
java.lang.Object.finalize()
java.lang.Object.getClass()
java.lang.Object.notify()
java.lang.Object.notifyAll()
java.lang.Object.wait()
java.lang.Object.wait(long)
java.lang.Object.wait(long,int)

Inheritance

Object
com.devexpress.system.JavaObject
DXFontRepository

Methods

addFont(byte[] fontData) Method

Adds a font from the specified byte array.

Declaration

public void addFont(byte[] fontData)

Parameters

Name Type Description
fontData byte[]

The font data byte array.

addFont(InputStream fontStream) Method

Adds a font from the specified stream.

Declaration

public void addFont(InputStream fontStream)

Parameters

Name Type Description
fontStream InputStream

The font data stream.

addFont(ReadableByteChannel channel) Method

Adds a font from the specified channel.

Declaration

public void addFont(ReadableByteChannel channel)

Parameters

Name Type Description
channel ReadableByteChannel

The readable byte channel for the font data.

addFont(String fontFileName) Method

Adds a font from the specified file path.

Declaration

public void addFont(String fontFileName)

Parameters

Name Type Description
fontFileName String

The font file path.

addQueryNotFoundFontEventHandler(String key, GenericEventHandler<NotFoundFontEventArgs> value) Method

Adds the specified event handler.

Declaration

public static void addQueryNotFoundFontEventHandler(String key, GenericEventHandler<NotFoundFontEventArgs> value)

Parameters

Name Type Description
key String

The handler key.

value com.devexpress.system.GenericEventHandler<NotFoundFontEventArgs>

The event handler.

clear() Method

Removes all fonts from the repository.

Declaration

public void clear()

close() Method

Releases resources used by this font repository.

Declaration

public void close()

getFonts() Method

Returns registered fonts.

Declaration

public List<DXFontData> getFonts()

Returns

Type Description
java.util.List<DXFontData>

Registered fonts.

getInstance() Method

Returns the font repository instance.

Declaration

public static DXFontRepository getInstance()

Returns

Type Description
DXFontRepository

The font repository instance.

getIsEmpty() Method

Returns whether the repository contains any fonts.

Declaration

public boolean getIsEmpty()

Returns

Type Description
boolean

true if the repository contains no fonts; otherwise, false.

removeQueryNotFoundFontEventHandler(String key) Method

Removes the specified event handler.

Declaration

public static void removeQueryNotFoundFontEventHandler(String key)

Parameters

Name Type Description
key String

The handler key.