Class FontWeights

java.lang.Object
com.itextpdf.io.font.constants.FontWeights

public final class FontWeights extends Object
Font weight values and utility methods
  • Field Details

  • Method Details

    • fromType1FontWeight

      public static int fromType1FontWeight (String weight)
      Parses font weight constant to corresponding value.
      Parameters:
      weight - weight constant
      Returns:
      corresponding weight int value
    • normalizeFontWeight

      public static int normalizeFontWeight (int fontWeight)
      Normalize font weight to either THIN or BLACK.
      Parameters:
      fontWeight - font weight int value
      Returns:
      either THIN or BLACK based on a given weight value