- java.lang.Object
-
- com.github.weisj.jsvg.attributes.font.FontResolver
-
public final class FontResolver extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classFontResolver.FontCacheprivate static classFontResolver.FontFamiliesCache
-
Constructor Summary
Constructors Modifier Constructor Description privateFontResolver()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidclearFontCache()private static floatcssWeightToAwtWeight(float weight)private static @NotNull java.lang.StringfindSupportedFontFamily(@NotNull MeasurableFontSpec fontSpec)static @NotNull SVGFontresolve(@NotNull MeasurableFontSpec fontSpec, @NotNull MeasureContext measureContext)static @NotNull SVGFontresolveWithoutCache(@NotNull MeasurableFontSpec fontSpec, @NotNull MeasureContext measureContext)static @NotNull java.util.List<@NotNull java.lang.String>supportedFonts()
-
-
-
Method Detail
-
clearFontCache
public static void clearFontCache()
-
resolve
@NotNull public static @NotNull SVGFont resolve(@NotNull @NotNull MeasurableFontSpec fontSpec, @NotNull @NotNull MeasureContext measureContext)
-
resolveWithoutCache
@NotNull public static @NotNull SVGFont resolveWithoutCache(@NotNull @NotNull MeasurableFontSpec fontSpec, @NotNull @NotNull MeasureContext measureContext)
-
cssWeightToAwtWeight
private static float cssWeightToAwtWeight(float weight)
-
findSupportedFontFamily
@NotNull private static @NotNull java.lang.String findSupportedFontFamily(@NotNull @NotNull MeasurableFontSpec fontSpec)
-
supportedFonts
@NotNull public static @NotNull java.util.List<@NotNull java.lang.String> supportedFonts()
-
-