|
|
@@ -26,6 +26,16 @@ public class TextUtil {
|
|
|
textView.setTypeface(textView.getTypeface(), Typeface.BOLD);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 기존 텍스트 typeface 유지하면서 font-weight Bold 처리
|
|
|
+ *
|
|
|
+ * @param typeface
|
|
|
+ * @param textView
|
|
|
+ */
|
|
|
+ public static void toBold(Typeface typeface, TextView textView) {
|
|
|
+ textView.setTypeface(typeface, Typeface.BOLD);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 현재 속성 유지하면서 font-weight Normal 처리
|
|
|
*
|
|
|
@@ -35,6 +45,17 @@ public class TextUtil {
|
|
|
textView.setTypeface(Typeface.create(textView.getTypeface(), Typeface.NORMAL));
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 기존 xprtmxm typeface 유지하면서 font-weight Normal 처리
|
|
|
+ *
|
|
|
+ * @param typeface
|
|
|
+ * @param textView
|
|
|
+ */
|
|
|
+ public static void toNormal(Typeface typeface, TextView textView) {
|
|
|
+ textView.setTypeface(typeface, Typeface.NORMAL);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 은/는/이/가 등 조사를 단어의 받침에따라 결정해준다.
|
|
|
* - `ㄹ`로 끝나는 단어에는 `으로` 가 아니라 `로`를 붙인다. 예: 화장실로, 집으로
|