Class FontWeights


  • public final class FontWeights
    extends java.lang.Object
    Font weight values and utility methods
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private FontWeights()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int fromType1FontWeight​(java.lang.String weight)
      Parses font weight constant to corresponding value.
      static int normalizeFontWeight​(int fontWeight)
      Normalize font weight to either THIN or BLACK.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FontWeights

        private FontWeights()
    • Method Detail

      • fromType1FontWeight

        public static int fromType1FontWeight​(java.lang.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