FontFallBackRule

FontFallBackRule class

Represents font fallback rule

FontFallBackRule

NameDescription
FontFallBackRule(long, long, String)Creates new instance.

Parameters:

NameTypeDescription
startIndexlongStart index of unicode range
endIndexlongEnd index of unicode range
fontNamesStringFont’s name or names (delimited by comma) for FallBack

Returns: FontFallBackRule


FontFallBackRule

NameDescription
FontFallBackRule(long, long, java.lang.String[])Creates new instance.

Parameters:

NameTypeDescription
startIndexlongStart index of unicode range
endIndexlongEnd index of unicode range
fontNamesjava.lang.String[]Font’s name or names (delimited by comma) for FallBack

Returns: FontFallBackRule


addFallBackFonts

NameDescription
addFallBackFonts (String)Adds a new font(s) to the list of FallBack fonts.

Parameters:

NameTypeDescription
fontNameStringFont’s name or names (delimited by comma) for FallBack

Returns: void


addFallBackFonts

NameDescription
addFallBackFonts (java.lang.String[])Adds a new fonts to the list of FallBack fonts.

Parameters:

NameTypeDescription
fontNamesjava.lang.String[]Font’s name or names (delimited by comma) for FallBack

Returns: void


clear

NameDescription
clear ()Removes all fonts from the list.

Returns: void


getCount

NameDescription
getCount ()Gets the number of fonts actually defined for range. Read-only int.

Returns: int


getRangeEndIndex

NameDescription
getRangeEndIndex ()Get last index of continuous unicode range.

Returns: long


getRangeStartIndex

NameDescription
getRangeStartIndex ()Get first index of continuous unicode range.

Returns: long


get_Item

NameDescription
get_Item (int)Gets the font name at the specified index. Read-only IFontFallBackRule.

Returns: String


indexOf

NameDescription
indexOf (String)Returns an index of the specified rule in the collection.

Parameters:

NameTypeDescription
fontNameStringFont’s name to find.

Returns: int


remove

NameDescription
remove (String)Removes the first occurrence of a specific FallBack font from the list.

Parameters:

NameTypeDescription
fontNameStringThe font’s name to remove from the list.

Returns: void


removeAt

NameDescription
removeAt (int)Removes the FallBack font at the specified index of the list.

Parameters:

NameTypeDescription
indexintThe zero-based index of the font to remove.

Returns: void


setRangeEndIndex

NameDescription
setRangeEndIndex (long)Get last index of continuous unicode range.

Returns: void


setRangeStartIndex

NameDescription
setRangeStartIndex (long)Get first index of continuous unicode range.

Returns: void


toArray

NameDescription
toArray ()Creates and returns an array with all FallBack fonts for this rule.

Returns: String


toArray

NameDescription
toArray (int, int)Creates and returns an array with all FallBack fonts from the specified range in list. // Create a rule contains a list of fonts. IFontFallBackRule newRule = new FontFallBackRule(0x3040, 0x309F, “MS Mincho, MS Gothic, Tahoma, Times New Roman”); // Get a last two font names as array. String[] fontNames = newRule.toArray(2, 2);

Parameters:

NameTypeDescription
startIndexintAn index of a first font to add.
countintA number of fonts to add.

Returns: String