- java.lang.Object
-
- com.github.weisj.jsvg.attributes.font.FontParser
-
public final class FontParser extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description privateFontParser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static voidcanonicalizeFontFamily(@NotNull java.lang.String[] fontFamilies)static @Nullable FontSizeparseFontSize(@NotNull AttributeNode node)static @NotNull AttributeFontSpecparseFontSpec(@NotNull AttributeNode node)(package private) static @Nullable FontStyleparseFontStyle(@NotNull AttributeNode node)static @Nullable LengthparseSizeAdjust(@NotNull AttributeNode node)static @NotNull PercentageparseStretch(@NotNull AttributeNode node)static @Nullable FontWeightparseWeight(@NotNull AttributeNode node)private static @NotNull java.lang.StringstripQuotes(@NotNull java.lang.String str, char quoteChar)
-
-
-
Method Detail
-
parseFontSpec
@NotNull public static @NotNull AttributeFontSpec parseFontSpec(@NotNull @NotNull AttributeNode node)
-
stripQuotes
@NotNull private static @NotNull java.lang.String stripQuotes(@NotNull @NotNull java.lang.String str, char quoteChar)
-
canonicalizeFontFamily
private static void canonicalizeFontFamily(@NotNull @NotNull java.lang.String[] fontFamilies)
-
parseWeight
@Nullable public static @Nullable FontWeight parseWeight(@NotNull @NotNull AttributeNode node)
-
parseStretch
@NotNull public static @NotNull Percentage parseStretch(@NotNull @NotNull AttributeNode node)
-
parseFontSize
@Nullable public static @Nullable FontSize parseFontSize(@NotNull @NotNull AttributeNode node)
-
parseSizeAdjust
@Nullable public static @Nullable Length parseSizeAdjust(@NotNull @NotNull AttributeNode node)
-
parseFontStyle
@Nullable static @Nullable FontStyle parseFontStyle(@NotNull @NotNull AttributeNode node)
-
-