Class FontResolver
- 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 class
FontResolver.FontCache
private static class
FontResolver.FontFamiliesCache
-
Constructor Summary
Constructors Modifier Constructor Description private
FontResolver()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
clearFontCache()
private static float
cssWeightToAwtWeight(float weight)
private static @NotNull java.lang.String
findSupportedFontFamily(@NotNull MeasurableFontSpec fontSpec)
static @NotNull SVGFont
resolve(@NotNull MeasurableFontSpec fontSpec, @NotNull MeasureContext measureContext)
static @NotNull SVGFont
resolveWithoutCache(@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()
-
-