java.lang.Object
com.github.weisj.jsvg.attributes.font.FontResolver
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static enum
private static enum
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
private static float
cssWeightToAwtWeight
(float weight) private static @NotNull 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)
-
Constructor Details
-
FontResolver
private FontResolver()
-
-
Method Details
-
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 String findSupportedFontFamily(@NotNull @NotNull MeasurableFontSpec fontSpec) -
supportedFonts
-