Interface IPlatformFontProvider


  • public interface IPlatformFontProvider
    Platform font provider interface to provide custom font creation for tests.
    • Method Detail

      • getFont

        Font getFont​(String fontName)
        Returns font for the provided font name or null if the name is not appripriate for this font provider.
        Parameters:
        fontName - the font name, cannot be null
        Returns:
        font for the provided font name or null if the name is not appripriate
      • getFontUserData

        default Map<String,​String> getFontUserData​(String fontName)
        Returns custom font user data of the corresponding font EObject provider. Returns empty user data by default.
        Parameters:
        fontName - the font name, cannot be null
        Returns:
        a map of font user data, never null