Class ParametersStringFontMapping

  • All Implemented Interfaces:
    FontMapping

    public final class ParametersStringFontMapping
    extends Object
    implements FontMapping
    Parameters string font mapping implementation.
    • Constructor Detail

      • ParametersStringFontMapping

        public ParametersStringFontMapping​(ParametersString parametersString)
    • Method Detail

      • applicableTo

        public boolean applicableTo​(LocalePair pair)
        Checks whether the font mapping is applicable to a locale pair.

        Empty target font name values are ignored.

        Specified by:
        applicableTo in interface FontMapping
        Parameters:
        pair - The locale pair
        Returns:
        true if the mapping is applicable to the locale pair and false otherwise
      • applicableTo

        public boolean applicableTo​(String sourceFont)
        Description copied from interface: FontMapping
        Checks whether the font mapping is applicable to a source font.
        Specified by:
        applicableTo in interface FontMapping
        Returns:
        true if the mapping is applicable to the source font and false otherwise
      • targetFont

        public String targetFont()
        Description copied from interface: FontMapping
        Obtains a target font.
        Specified by:
        targetFont in interface FontMapping
        Returns:
        The target font name
      • writtenTo

        public <T> T writtenTo​(FontMapping.Output<T> output)
        Description copied from interface: FontMapping
        Obtains the font mapping output with the written font mapping to it.
        Specified by:
        writtenTo in interface FontMapping
        Parameters:
        output - The output
        Returns:
        The output with the written font mapping