Class NotoSansRegularLayout

java.lang.Object
de.xima.fc.common.text.fonts.NotoSansRegularLayout

public final class NotoSansRegularLayout extends Object
Static methods for accessing the Noto Sans Regular layout font data.
  • Method Details

    • buildFallbackData

      public static void buildFallbackData(OutputStream output) throws IOException
      Builds the fallback font finder data for Noto Sans Regular. This may take up to several minutes to complete. Only use this when you update the font data, and store the result in the /de/xima/fc/common/font-layout/noto-sans-regular-fallback-data.bin file.
      Parameters:
      output - The output stream to write the fallback font finder data to.
      Throws:
      IOException - If an I/O error occurs while writing the data.
    • fallbackFontFinder

      public static IFallbackFontFinder fallbackFontFinder(boolean validateInputData) throws IOException
      Creates a fallback font finder for Noto Sans Regular, with more data for other Unicode code points.
      Parameters:
      validateInputData - Whether to perform certain checks on the input data. May take slightly longer.
      Returns:
      The fallback font finder for Noto Sans Regular.
      Throws:
      IOException - If an I/O error occurs while reading the fallback font finder data.
    • mainFont

      public static FontSpecifier mainFont()
      Gets the font specifier for the main Noto Sans Regular font.
      Returns:
      The font specifier for the main Noto Sans Regular font.