package o;

import android.text.TextPaint;
import android.text.style.MetricAffectingSpan;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.jd, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C1588jd extends MetricAffectingSpan {
    public final /* synthetic */ int l;
    public final float m;

    public /* synthetic */ C1588jd(int i, float f) {
        this.l = i;
        this.m = f;
    }

    @Override // android.text.style.CharacterStyle
    public final void updateDrawState(TextPaint textPaint) {
        switch (this.l) {
            case 0:
                textPaint.baselineShift += (int) Math.ceil(textPaint.ascent() * this.m);
                break;
            default:
                textPaint.setTextSkewX(textPaint.getTextSkewX() + this.m);
                break;
        }
    }

    @Override // android.text.style.MetricAffectingSpan
    public final void updateMeasureState(TextPaint textPaint) {
        switch (this.l) {
            case 0:
                textPaint.baselineShift += (int) Math.ceil(textPaint.ascent() * this.m);
                break;
            default:
                textPaint.setTextSkewX(textPaint.getTextSkewX() + this.m);
                break;
        }
    }
}
