2013-05-19 2 views
0

내 응용 프로그램에서 내 textView의 글꼴을 사용자 정의 할 수 있도록 파일 .ttf를 추가하려고합니다.Android 애플리케이션에 특수 글꼴 (.ttf)을 통합하는 방법은 무엇입니까?

어떻게 착취 당했습니까?

DaFont에 파일을 다운로드합니다.

도움을 주셔서 감사합니다.

+1

은 https : // www.google.it/search?q=android+custom+font&aq=f&oq=android+custom+font&aqs=chrome.0.57j65j60j59j60j62.6562j0&sourceid=chrome&ie=UTF-8 첫 번째 결과입니다. – BackSlash

답변

4

, 다음 TextViewTypeface을 설정, 프로젝트에 /assets 폴더에 글꼴 복사, 다음 첫 번째 수행 할 수 있습니다

Typeface myFont = Typeface.createFromAsset(getAssets(), "dafont.ttf"); 
myTextView.setTypeface(myFont); 

편집 : 수정 디렉토리

관련 문제