Class FontStretches


  • public final class FontStretches
    extends java.lang.Object
    Font stretch constants and ids
    • Constructor Detail

      • FontStretches

        private FontStretches()
    • Method Detail

      • fromOpenTypeWidthClass

        public static java.lang.String fromOpenTypeWidthClass​(int fontWidth)
        Convert from Open Type font width class notation.

        https://www.microsoft.com/typography/otspec/os2.htm#wdc

        Parameters:
        fontWidth - Open Type font width.
        Returns:
        one of the FontStretches constants.