Class MeasurableFontSpec

java.lang.Object
com.github.weisj.jsvg.attributes.font.FontSpec
com.github.weisj.jsvg.attributes.font.MeasurableFontSpec

@Immutable public final class MeasurableFontSpec extends FontSpec
  • Field Details

    • DEFAULT_FONT_FAMILY_NAME

      @NotNull public static final @NotNull String DEFAULT_FONT_FAMILY_NAME
      See Also:
    • currentWeight

      private final int currentWeight
    • currentSize

      @NotNull private final @NotNull Length currentSize
  • Constructor Details

    • MeasurableFontSpec

      MeasurableFontSpec(@NotNull @NotNull String[] families, @Nullable @Nullable FontStyle style, @Nullable @Nullable Length sizeAdjust, float stretch, int currentWeight, @NotNull @NotNull Length currentSize)
  • Method Details

    • createDefault

      @NotNull public static @NotNull MeasurableFontSpec createDefault()
    • families

      @NotNull public @NotNull String[] families()
    • style

      @NotNull public @NotNull FontStyle style()
    • stretch

      public float stretch()
    • currentWeight

      public int currentWeight()
    • currentSize

      @NotNull public @NotNull Length currentSize()
    • effectiveSize

      public float effectiveSize(@NotNull @NotNull MeasureContext context)
    • withFontSize

      @NotNull public @NotNull MeasurableFontSpec withFontSize(@Nullable @Nullable FontSize size, @Nullable @Nullable Length sizeAdjust)
    • derive

      @NotNull public @NotNull MeasurableFontSpec derive(@Nullable @Nullable AttributeFontSpec other)
    • toString

      public String toString()
      Overrides:
      toString in class FontSpec
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class FontSpec
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class FontSpec