Interface IPreloadFontResolver

  • All Known Implementing Classes:
    PreloadFontManager
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface IPreloadFontResolver
    Find PreloadFont objects by ID.
    Author:
    Philip Helger
    • Method Detail

      • getPreloadFontOfID

        @Nullable
        default PreloadFont getPreloadFontOfID​(@Nullable
                                               com.helger.font.api.IFontResource aFontRes)
        Get the PreloadFont from the provided font resource.
        Parameters:
        aFontRes - The font resource to be resolved. May be null.
        Returns:
        null if no such PreloadFont exists.
      • getPreloadFontOfID

        @Nullable
        default PreloadFont getPreloadFontOfID​(@Nullable
                                               com.helger.font.api.IHasFontResource aFontResProvider)
        Get the PreloadFont from the provided font resource provider.
        Parameters:
        aFontResProvider - The font resource provided from which to be resolved. May be null.
        Returns:
        null if no such PreloadFont exists.