From 4a80616f7507c9034df73ebb9409cc94566f1f28 Mon Sep 17 00:00:00 2001 From: Dimitry Ivanov Date: Fri, 20 Jul 2018 20:14:49 +0300 Subject: [PATCH] Add small version clarifications --- .../ru/noties/markwon/spans/SpannableTheme.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/library/src/main/java/ru/noties/markwon/spans/SpannableTheme.java b/library/src/main/java/ru/noties/markwon/spans/SpannableTheme.java index 678cf1ab..10c4c762 100644 --- a/library/src/main/java/ru/noties/markwon/spans/SpannableTheme.java +++ b/library/src/main/java/ru/noties/markwon/spans/SpannableTheme.java @@ -178,10 +178,12 @@ public class SpannableTheme { protected final int headingBreakColor; // by default, whatever typeface is set on the TextView + // @since 1.1.0 protected final Typeface headingTypeface; // by default, we use standard multipliers from the HTML spec (see HEADING_SIZES for values). // this library supports 6 heading sizes, so make sure the array you pass here has 6 elements. + // @since 1.1.0 protected final float[] headingTextSizeMultipliers; // by default `SCRIPT_DEF_TEXT_SIZE_RATIO` @@ -666,12 +668,23 @@ public class SpannableTheme { return this; } + /** + * @param headingTypeface Typeface to use for heading elements + * @return self + * @since 1.1.0 + */ @NonNull public Builder headingTypeface(@NonNull Typeface headingTypeface) { this.headingTypeface = headingTypeface; return this; } + /** + * @param headingTextSizeMultipliers an array of multipliers values for heading elements. + * The base value for this multipliers is TextView\'s text size + * @return self + * @since 1.1.0 + */ @NonNull public Builder headingTextSizeMultipliers(@Size(6) @NonNull float[] headingTextSizeMultipliers) { this.headingTextSizeMultipliers = headingTextSizeMultipliers;