Package de.xima.fc.common.text.shape
Class HarfbuzzCodePointFallbackFontFinder
- java.lang.Object
-
- de.xima.fc.common.text.shape.HarfbuzzCodePointFallbackFontFinder
-
- All Implemented Interfaces:
IFallbackFontFinder
public final class HarfbuzzCodePointFallbackFontFinder extends Object implements IFallbackFontFinder
AIFallbackFontFinderthat inspects which font supports which codepoints. To reduce the size of the fallback map, finds the Unicode script of the codepoint and stores all fonts that support that script.- Since:
- 8.4.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FontSpecifier[]findFallbackFonts(int[] codePoints, int length)Finds fallback fonts for the given codepoints.
-
-
-
Method Detail
-
findFallbackFonts
public FontSpecifier[] findFallbackFonts(int[] codePoints, int length)
Description copied from interface:IFallbackFontFinderFinds fallback fonts for the given codepoints.- Specified by:
findFallbackFontsin interfaceIFallbackFontFinder- Parameters:
codePoints- The codepoints to find fallback fonts for.length- The number of codepoints in the array.- Returns:
- An array of
font specifiersobjects representing the fallback fonts.
-
-