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 Details

    • findFallbackFonts

      public FontSpecifier[] findFallbackFonts(int[] codePoints, int length)
      Description copied from interface: IFallbackFontFinder
      Finds fallback fonts for the given codepoints.
      Specified by:
      findFallbackFonts in interface IFallbackFontFinder
      Parameters:
      codePoints - The codepoints to find fallback fonts for.
      length - The number of codepoints in the array.
      Returns:
      An array of font specifiers objects representing the fallback fonts.