字体设置
将下载的资源字体放在assets中,
引用设置
edit..setTypeface(Typeface.createFromAsset(getAssets(), "字体名.ttf"));
屏幕截图
private Bitmap getBitmap() {
View view = getWindow().getDecorView();
view.setDrawingCacheEnabled(true);
view.buildDrawingCache();;
return view.getDrawingCache();
}