@@ -0,0 +1,1031 @@
+package com.vinexs.tool;%0A%0Aimport android.content.Context;%0Aimport android.graphics.Typeface;%0Aimport android.text.TextPaint;%0Aimport android.text.style.MetricAffectingSpan;%0A%0Aimport java.io.File;%0A%0Apublic class TypefaceSpan extends MetricAffectingSpan %7B%0A%0A    private Context context;%0A    private Typeface typeface;%0A%0A    public TypefaceSpan(Context context) %7B%0A        this.context = context;%0A    %7D%0A%0A    public TypefaceSpan(Context context, File typefaceFile) %7B%0A        typeface = Typeface.createFromFile(typefaceFile);%0A    %7D%0A%0A    public void fromAsset(String typefacepath) %7B%0A        typeface = Typeface.createFromAsset(context.getApplicationContext().getAssets(), typefacepath);%0A    %7D%0A%0A    public void fromPath(String typefacepath) %7B%0A        typeface = Typeface.createFromFile(typefacepath);%0A    %7D%0A%0A    @Override%0A    public void updateMeasureState(TextPaint textPaint) %7B%0A        textPaint.setTypeface(typeface);%0A    %7D%0A%0A    @Override%0A    public void updateDrawState(TextPaint textPaint) %7B%0A        textPaint.setTypeface(typeface);%0A    %7D%0A%7D%0A

Add typeface span to control font family.