如何将True type字体文件放在android studio的assets文件夹中 [英] how to put True type font file in assets folder in android studio

查看:29
本文介绍了如何将True type字体文件放在android studio的assets文件夹中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个包含 Rockwell 字体的 True type Fonts 文件.我需要把它放在 android studio 的 assets 文件夹中.但我不能把它.谁能告诉我怎么做?

I have a True type Fonts file which contains fonts of Rockwell.I need to put it in assets folder in android studio.But i am not able to put it.Can anyone tell how to do this?

推荐答案

只需在项目的 main 目录 (src/main/assets) 下创建 assets 目录即可.将其复制并粘贴到该文件夹​​中并使用它.
这些链接可能对完整信息有用:基于 gradle 的项目

Just create assets directory under your main directory of your project (src/main/assets). copy and paste it in that folder and use it.
these links maybe useful for complete information : gradle based projects


这篇关于如何将True type字体文件放在android studio的assets文件夹中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆