Interface FontMapping
-
- All Known Implementing Classes:
DefaultFontMapping,ParametersStringFontMapping
public interface FontMappingA font mapping.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceFontMapping.Output<T>The font mapping output.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanapplicableTo(String sourceFont)Checks whether the font mapping is applicable to a source font.booleanapplicableTo(LocalePair pair)Checks whether the font mapping is applicable to a language pair.StringtargetFont()Obtains a target font.<T> TwrittenTo(FontMapping.Output<T> output)Obtains the font mapping output with the written font mapping to it.
-
-
-
Method Detail
-
applicableTo
boolean applicableTo(LocalePair pair)
Checks whether the font mapping is applicable to a language pair.- Parameters:
pair- The language pair- Returns:
trueif the mapping is applicable to the language pair andfalseotherwise
-
applicableTo
boolean applicableTo(String sourceFont)
Checks whether the font mapping is applicable to a source font.- Returns:
trueif the mapping is applicable to the source font andfalseotherwise
-
targetFont
String targetFont()
Obtains a target font.- Returns:
- The target font name
-
writtenTo
<T> T writtenTo(FontMapping.Output<T> output)
Obtains the font mapping output with the written font mapping to it.- Parameters:
output- The output- Returns:
- The output with the written font mapping
-
-