java.lang.Object
com.github.weisj.jsvg.attributes.font.FontSpec
com.github.weisj.jsvg.attributes.font.MeasurableFontSpec
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @NotNull Length
private final int
static final @NotNull String
Fields inherited from class com.github.weisj.jsvg.attributes.font.FontSpec
families, sizeAdjust, stretch, style
-
Constructor Summary
ConstructorsConstructorDescriptionMeasurableFontSpec
(@NotNull String[] families, @Nullable FontStyle style, @Nullable Length sizeAdjust, float stretch, int currentWeight, @NotNull Length currentSize) -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull MeasurableFontSpec
@NotNull Length
int
@NotNull MeasurableFontSpec
derive
(@Nullable AttributeFontSpec other) float
effectiveSize
(@NotNull MeasureContext context) boolean
@NotNull String[]
families()
int
hashCode()
float
stretch()
@NotNull FontStyle
style()
toString()
@NotNull MeasurableFontSpec
withFontSize
(@Nullable FontSize size, @Nullable Length sizeAdjust)
-
Field Details
-
DEFAULT_FONT_FAMILY_NAME
- See Also:
-
currentWeight
private final int currentWeight -
currentSize
-
-
Constructor Details
-
MeasurableFontSpec
-
-
Method Details
-
createDefault
-
families
-
style
-
stretch
public float stretch() -
currentWeight
public int currentWeight() -
currentSize
-
effectiveSize
-
withFontSize
@NotNull public @NotNull MeasurableFontSpec withFontSize(@Nullable @Nullable FontSize size, @Nullable @Nullable Length sizeAdjust) -
derive
-
toString
-
equals
-
hashCode
public int hashCode()
-