Paint

Paint mPaint = new Paint(Paint.ANTI_ALIAS_FLAG); Typeface mFace = Typeface.createFromAsset(getContext().getAssets(), "fonts/samplefont.ttf"); mPaint.setTypeface(mFace);

你可能感兴趣的:(Paint)