본문 바로가기
DEBUG/Tools

android studio xml preview창에서 한글이 깨질때 조치방법

by 에디83 2017. 1. 18.

Android Studio의 layout의 Preview 창에서 아래와 같이 한글이 깨질 때 조치방법



한글이 지원되지 않는 font가 설정이 되어 있어서 한글이 깨지게 된다.

아래 경로에 있는 fonts.xml을 열어보면 한글이 지원되지 않는 font가 설정이 되어 있는 것을 확인 할 수 있다.


/Applications/Android Studio.app/Contents/plugins/android/lib/layoutlib/data/fonts/fonts.xml




NotoSansCJK-Regular.ttc -> NanumGothic.ttf로 변경을 하게 되면 한글이 나오는 것을 확인할 수  있다.



댓글