{"id":1725,"date":"2015-09-23T21:27:00","date_gmt":"2015-09-23T12:57:00","guid":{"rendered":"http:\/\/sunphiz.me\/wp\/?p=1725"},"modified":"2015-09-23T22:38:12","modified_gmt":"2015-09-23T14:08:12","slug":"%ec%95%88%eb%93%9c%eb%a1%9c%ec%9d%b4%eb%93%9c-textview%ec%9d%98-fontfamily-%ec%86%8d%ec%84%b1","status":"publish","type":"post","link":"https:\/\/sunphiz.me\/wp\/archives\/1725","title":{"rendered":"\uc548\ub4dc\ub85c\uc774\ub4dc TextView\uc758 fontfamily \uc18d\uc131"},"content":{"rendered":"<p>\uc548\ub4dc\ub85c\uc774\ub4dc\uc758 TextView\uc5d0\ub294 \uae00\uc790\uccb4\ub97c \ubc14\uafc0 \uc218 \uc788\ub294 <a href=\"http:\/\/developer.android.com\/reference\/android\/widget\/TextView.html#attr_android:fontFamily\">fontFamily<\/a>\ub77c\ub294 \uc18d\uc131\uc774 \uc788\ub2e4. Android 4.1+ \ubd80\ud130 \ucd94\uac00\ub41c <a href=\"https:\/\/www.google.com\/fonts\/specimen\/Roboto\">Roboto<\/a>\u00a0\ub098 <a href=\"https:\/\/www.google.com\/get\/noto\/\">Noto<\/a> \ud3f0\ud2b8\ub4f1\uc744 \uc5ec\uae30\uc5d0 \uc4f8 \uc218 \uc788\ub2e4.<\/p>\n<p>\uadf8\ub7f0\ub370 \ud3f0\ud2b8\ub97c \uc4f0\uae30 \uc704\ud55c \ubc29\ubc95\uc744 \ubcf4\uba74 \uc774\uc0c1\ud558\ub2e4.<\/p>\n<pre class=\"lang:default decode:true\">android:fontFamily=\"sans-serif\"           \/\/ roboto regular\r\nandroid:fontFamily=\"sans-serif-light\"     \/\/ roboto light\r\nandroid:fontFamily=\"sans-serif-condensed\" \/\/ roboto condensed\r\nandroid:fontFamily=\"sans-serif-thin\"      \/\/ roboto thin (android 4.2)\r\nandroid:fontFamily=\"sans-serif-medium\"    \/\/ roboto medium (android 5.0)<\/pre>\n<p>fontFamily\uc5d0 sans-serif-*\ub85c \uc368\uc57c Roboto \ud3f0\ud2b8\ub97c \uc4f8 \uc218 \uc788\ub2e4. \uadf8\uac78 \uc5b4\ub5bb\uac8c \uc54c \uc218 \uc788\uc744\uae4c? \uc5b4\ub518\uac00 \uc815\ub9ac\ub418\uc5b4 \uc788\uc9c0\ub294 \uc54a\uc744\uae4c?<\/p>\n<p>\ubcf4\ud1b5\uc740 \uad6c\uae00\uc744 \ub4a4\uc9c0\ub2e4\ubcf4\uba74 \ub098\uc624\ub294 \uc798 \uc815\ub9ac\ub41c \uae00\ub4e4\uc744 \ucc38\uc870\ud55c\ub2e4. \ud558\uc9c0\ub9cc, \uc774 \ubc29\ubc95 \ubcf4\ub2e4\ub294 \ub354 \uc815\ud655\ud558\uac8c \ud655\uc778\ud560 \uc218 \uc788\ub294 \ubc29\ubc95\uc774 \uc788\ub294\ub370, \ub2e8\ub9d0\uc5d0 \uc800\uc7a5\ub41c system_fonts.xml \ud30c\uc77c\uc774\ub2e4.<\/p>\n<pre class=\"lang:default highlight:0 decode:true\">&gt;adb shell cat \/system\/etc\/system_fonts.xml<\/pre>\n<p>\uc704\uc758 \uba85\ub839\uc744 \ud1b5\ud574 \uc544\ub798\uc640 \uac19\uc740 xml \ud30c\uc77c\uc758 \ub0b4\uc6a9\uc744 \ud655\uc778\ud560 \uc218 \uc788\uc73c\uba70, \uc774 \ud30c\uc77c\uc5d0 \ud604\uc7ac \ub2e8\ub9d0\uc5d0\uc11c \uc81c\uacf5\ud558\ub294 \ud3f0\ud2b8\uc758 \ubaa9\ub85d\uacfc \uc815\ubcf4\ub97c \uc77c \uc218 \uc788\ub2e4.<\/p>\n<pre class=\"lang:default decode:true\">&lt;familyset&gt;\r\n    &lt;family&gt;\r\n        &lt;nameset&gt;\r\n            &lt;name&gt;sans-serif&lt;\/name&gt;\r\n            &lt;name&gt;arial&lt;\/name&gt;\r\n            &lt;name&gt;helvetica&lt;\/name&gt;\r\n            &lt;name&gt;tahoma&lt;\/name&gt;\r\n            &lt;name&gt;verdana&lt;\/name&gt;\r\n        &lt;\/nameset&gt;\r\n        &lt;fileset&gt;\r\n            &lt;file&gt;Roboto-Regular.ttf&lt;\/file&gt;\r\n            &lt;file&gt;Roboto-Bold.ttf&lt;\/file&gt;\r\n            &lt;file&gt;Roboto-Italic.ttf&lt;\/file&gt;\r\n            &lt;file&gt;Roboto-BoldItalic.ttf&lt;\/file&gt;\r\n        &lt;\/fileset&gt;\r\n    &lt;\/family&gt;\r\n    ...\r\n&lt;\/familyset&gt;<\/pre>\n<p>\uc774 \ud30c\uc77c\uc758 &lt;name&gt;&lt;\/name&gt; \uac12\uc744 fontfamily\uc5d0 \uc0ac\uc6a9\ud558\uba74 font\ub97c \uc0ac\uc6a9\ud558\uba74 \ub41c\ub2e4.<\/p>\n<p>\uc608\ub97c \ub4e4\uc5b4, system_fonts.xml \ud30c\uc77c\uc758 \ub0b4\uc6a9\uc774 \uc704\uc640 \uac19\ub2e4\uba74, sans-serif\ub098 arial, helvetica, tahoma, verdana\ub97c \u00a0android:fontFamily\uc5d0 \uc785\ub825\ud558\uba74 \ubaa8\ub450 Roboto \ud3f0\ud2b8\ub97c \uc0ac\uc6a9\ud558\uac8c \ub41c\ub2e4.<\/p>\n<p>&lt;fileset&gt;&lt;\/fileset&gt; \ubd80\ubd84\uc744 \ubcf4\uba74 \ud3f0\ud2b8\uac00 \uc5ec\ub7ec\uac1c \ub4e4\uc5b4 \uc788\ub294\ub370, \uc774\ub294 android:fontStyle\uc758 normal, bold, italic\uacfc\u00a0bold|italic\uc5d0 \uac01\uac01 \ub300\uc751\ud55c\ub2e4.<\/p>\n<pre class=\"lang:default decode:true\">android:textStyle=\"normal\"\r\nandroid:textStyle=\"bold\"\r\nandroid:textStyle=\"italic\"\r\nandroid:textStyle=\"bold|italic\"<\/pre>\n<p>\uc774\uc81c \ub2e4\uc74c\uc758 \uadf8\ub9bc\ucc98\ub7fc, \ud3f0\ud2b8\ub97c \uc790\uc720\uc790\uc7ac\ub85c \uc0ac\uc6a9\ud574\ubcf4\uc790.<\/p>\n<p><a href=\"https:\/\/sunphiz.me\/wp\/wp-content\/uploads\/2015\/09\/device-2015-09-23-213322.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-1726\" src=\"https:\/\/sunphiz.me\/wp\/wp-content\/uploads\/2015\/09\/device-2015-09-23-213322-169x300.png\" alt=\"device-2015-09-23-213322\" width=\"169\" height=\"300\" srcset=\"https:\/\/sunphiz.me\/wp\/wp-content\/uploads\/2015\/09\/device-2015-09-23-213322-169x300.png 169w, https:\/\/sunphiz.me\/wp\/wp-content\/uploads\/2015\/09\/device-2015-09-23-213322-576x1024.png 576w, https:\/\/sunphiz.me\/wp\/wp-content\/uploads\/2015\/09\/device-2015-09-23-213322.png 1080w\" sizes=\"auto, (max-width: 169px) 100vw, 169px\" \/><\/a><\/p>\n<p><strong>\uadf8 \ubc16\uc5d0<\/strong><\/p>\n<pre class=\"lang:default highlight:0 decode:true \">&gt;adb shell cat \/system\/etc\/fonts.xml<\/pre>\n<p>\ub97c \ud1b5\ud574\uc11c\ub3c4 font \uad00\ub828 \uc815\ubcf4\ub97c \uc5bb\uc744 \uc218 \uc788\ub2e4. \u00a0\ud558\uc9c0\ub9cc, \uc0ac\uc6a9 \uac00\ub2a5\ud55c \ud3f0\ud2b8\uc758 \uc774\ub984\uc744 \ucc3e\ub294\uac70\ub77c\uba74 system_fonts.xml \ud30c\uc77c\uc774 \ub354 \uc720\uc6a9\ud558\ub2e4.<\/p>\n<p><strong>\ucc38\uc870<\/strong><\/p>\n<ul>\n<li><a href=\"http:\/\/www.cheatersedge.org\/android\/m919\/system\/etc\/system_fonts.xml\">http:\/\/www.cheatersedge.org\/android\/m919\/system\/etc\/system_fonts.xml<\/a><\/li>\n<li><a href=\"http:\/\/stackoverflow.com\/questions\/12128331\/how-to-change-fontfamily-of-textview-in-android\">http:\/\/stackoverflow.com\/questions\/12128331\/how-to-change-fontfamily-of-textview-in-android<\/a><\/li>\n<li><a href=\"http:\/\/developer.android.com\/reference\/android\/widget\/TextView.html#attr_android:fontFamily\">http:\/\/developer.android.com\/reference\/android\/widget\/TextView.html#attr_android:fontFamily<\/a><\/li>\n<li><a href=\"http:\/\/stackoverflow.com\/questions\/19113420\/roboto-font-for-android-4\">http:\/\/stackoverflow.com\/questions\/19113420\/roboto-font-for-android-4<\/a><\/li>\n<li><a href=\"https:\/\/www.google.com\/fonts\/specimen\/Roboto\">https:\/\/www.google.com\/fonts\/specimen\/Roboto<\/a><\/li>\n<li><a href=\"https:\/\/www.google.com\/get\/noto\/\">https:\/\/www.google.com\/get\/noto\/<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\uc548\ub4dc\ub85c\uc774\ub4dc\uc758 TextView\uc5d0\ub294 \uae00\uc790\uccb4\ub97c \ubc14\uafc0 \uc218 \uc788\ub294 fontFamily\ub77c\ub294 \uc18d\uc131\uc774 \uc788\ub2e4. Android 4.1+ \ubd80\ud130 \ucd94\uac00\ub41c Roboto\u00a0\ub098 Noto \ud3f0\ud2b8\ub4f1\uc744 \uc5ec\uae30\uc5d0 \uc4f8 \uc218 \uc788\ub2e4. \uadf8\ub7f0\ub370 \ud3f0\ud2b8\ub97c \uc4f0\uae30 \uc704\ud55c \ubc29\ubc95\uc744 \ubcf4\uba74 \uc774\uc0c1\ud558\ub2e4. android:fontFamily=&#8221;sans-serif&#8221; \/\/ roboto regular android:fontFamily=&#8221;sans-serif-light&#8221; \/\/ roboto light android:fontFamily=&#8221;sans-serif-condensed&#8221; \/\/ roboto condensed android:fontFamily=&#8221;sans-serif-thin&#8221; \/\/ roboto thin (android 4.2) android:fontFamily=&#8221;sans-serif-medium&#8221; \/\/ roboto medium (android 5.0) fontFamily\uc5d0 sans-serif-*\ub85c \uc368\uc57c Roboto [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[6,69],"tags":[374,373,22,375],"class_list":["post-1725","post","type-post","status-publish","format-standard","hentry","category-android","category-software","tag-fontfamily","tag-textview","tag-22","tag-375"],"_links":{"self":[{"href":"https:\/\/sunphiz.me\/wp\/wp-json\/wp\/v2\/posts\/1725","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sunphiz.me\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sunphiz.me\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sunphiz.me\/wp\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sunphiz.me\/wp\/wp-json\/wp\/v2\/comments?post=1725"}],"version-history":[{"count":3,"href":"https:\/\/sunphiz.me\/wp\/wp-json\/wp\/v2\/posts\/1725\/revisions"}],"predecessor-version":[{"id":1729,"href":"https:\/\/sunphiz.me\/wp\/wp-json\/wp\/v2\/posts\/1725\/revisions\/1729"}],"wp:attachment":[{"href":"https:\/\/sunphiz.me\/wp\/wp-json\/wp\/v2\/media?parent=1725"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sunphiz.me\/wp\/wp-json\/wp\/v2\/categories?post=1725"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sunphiz.me\/wp\/wp-json\/wp\/v2\/tags?post=1725"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}