Class MeasurableFontSpec


  • @Immutable
    public final class MeasurableFontSpec
    extends FontSpec
    • Field Detail

      • DEFAULT_FONT_FAMILY_NAME

        @NotNull
        public static final @NotNull java.lang.String DEFAULT_FONT_FAMILY_NAME
        See Also:
        Constant Field Values
      • currentWeight

        private final int currentWeight
      • currentSize

        @NotNull
        private final @NotNull Length currentSize
    • Constructor Detail

      • MeasurableFontSpec

        MeasurableFontSpec​(@NotNull
                           @NotNull java.lang.String[] families,
                           @Nullable
                           @Nullable FontStyle style,
                           @Nullable
                           @Nullable Length sizeAdjust,
                           float stretch,
                           int currentWeight,
                           @NotNull
                           @NotNull Length currentSize)
    • Method Detail

      • families

        @NotNull
        public @NotNull java.lang.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)
      • toString

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

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class FontSpec