Class HarfbuzzCodePointFallbackFontFinder
java.lang.Object
de.xima.fc.common.text.shape.HarfbuzzCodePointFallbackFontFinder
- All Implemented Interfaces:
IFallbackFontFinder
public final class HarfbuzzCodePointFallbackFontFinder
extends Object
implements IFallbackFontFinder
A
IFallbackFontFinder that 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
Modifier and TypeMethodDescriptionfindFallbackFonts(int[] codePoints, int length) Finds fallback fonts for the given codepoints.
-
Method Details
-
findFallbackFonts
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.
-