Package com.helger.pdflayout.spec
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.
Find
PreloadFont objects by ID.- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptiondefault PreloadFontgetPreloadFontOfID(com.helger.font.api.IFontResource aFontRes) Get thePreloadFontfrom the provided font resource.default PreloadFontgetPreloadFontOfID(com.helger.font.api.IHasFontResource aFontResProvider) Get thePreloadFontfrom the provided font resource provider.getPreloadFontOfID(String sID) Get thePreloadFontwith the provided ID.
-
Method Details
-
getPreloadFontOfID
Get thePreloadFontwith the provided ID.- Parameters:
sID- The ID to be resolved. May benull.- Returns:
nullif no suchPreloadFontexists.
-
getPreloadFontOfID
@Nullable default PreloadFont getPreloadFontOfID(@Nullable com.helger.font.api.IFontResource aFontRes) Get thePreloadFontfrom the provided font resource.- Parameters:
aFontRes- The font resource to be resolved. May benull.- Returns:
nullif no suchPreloadFontexists.
-
getPreloadFontOfID
@Nullable default PreloadFont getPreloadFontOfID(@Nullable com.helger.font.api.IHasFontResource aFontResProvider) Get thePreloadFontfrom the provided font resource provider.- Parameters:
aFontResProvider- The font resource provided from which to be resolved. May benull.- Returns:
nullif no suchPreloadFontexists.
-