@@ -0,0 +1,1155 @@
+package ru.noties.markwon.core.spans;%0A%0Aimport android.graphics.Typeface;%0Aimport android.support.annotation.NonNull;%0Aimport android.text.TextPaint;%0Aimport android.text.style.MetricAffectingSpan;%0A%0A/**%0A * A span implementation that allow applying custom Typeface. Although it is%0A * not used directly by the library, it%5C's helpful for customizations.%0A * %3Cp%3E%0A * Please note that this implementation does not validate current paint state%0A * and won%5C't be updating/modifying supplied Typeface.%0A *%0A * @since 3.0.0%0A */%0Apublic class CustomTypefaceSpan extends MetricAffectingSpan %7B%0A%0A    @NonNull%0A    public static CustomTypefaceSpan create(@NonNull Typeface typeface) %7B%0A        return new CustomTypefaceSpan(typeface);%0A    %7D%0A%0A    private final Typeface typeface;%0A%0A    public CustomTypefaceSpan(@NonNull Typeface typeface) %7B%0A        this.typeface = typeface;%0A    %7D%0A%0A    @Override%0A    public void updateMeasureState(@NonNull TextPaint p) %7B%0A        updatePaint(p);%0A    %7D%0A%0A    @Override%0A    public void updateDrawState(TextPaint tp) %7B%0A        updatePaint(tp);%0A    %7D%0A%0A    private void updatePaint(@NonNull TextPaint paint) %7B%0A        paint.setTypeface(typeface);%0A    %7D%0A%7D%0A

Add CustomTypefaceSpan