Class MeasurableFontSpec
java.lang.Object
com.github.weisj.jsvg.attributes.font.FontSpec
com.github.weisj.jsvg.attributes.font.MeasurableFontSpec
-
Field Summary
FieldsFields inherited from class FontSpec
families, sizeAdjust, stretch, style -
Constructor Summary
ConstructorsConstructorDescriptionMeasurableFontSpec(@NotNull String[] families, @Nullable FontStyle style, @Nullable Length sizeAdjust, @NotNull Percentage stretch, int currentWeight, @NotNull Length currentSize) -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull MeasurableFontSpec@NotNull Lengthint@NotNull MeasurableFontSpecderive(@Nullable AttributeFontSpec other) floateffectiveSize(@NotNull MeasureContext context) boolean@NotNull String[]families()inthashCode()@NotNull Percentagestretch()@NotNull FontStylestyle()toString()@NotNull MeasurableFontSpecwithFontSize(@Nullable FontSize size, @Nullable Length sizeAdjust)
-
Field Details
-
currentWeight
private final int currentWeight -
currentSize
-
-
Constructor Details
-
MeasurableFontSpec
MeasurableFontSpec(@NotNull @NotNull String[] families, @Nullable @Nullable FontStyle style, @Nullable @Nullable Length sizeAdjust, @NotNull @NotNull Percentage stretch, int currentWeight, @NotNull @NotNull Length currentSize)
-
-
Method Details
-
createDefault
-
families
-
style
-
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
-