Permalink
Browse files

add font change function

Change-Id: I70b2f16b50043ed3dc074b8e02c3258e6024675e
  • Loading branch information...
1 parent 2b23078 commit 46cd19239a51aac75ca8596a1c2ed641a79a9c45 @yu88my yu88my committed Nov 30, 2012
View
2 ThemeManager/res/values/bools.xml.part
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
- <bool name="support_font_replacement">false</bool>
+ <bool name="support_font_replacement">true</bool>
</resources>
View
8 framework.jar.out/smali/android/widget/TextView.smali
@@ -12907,6 +12907,10 @@
packed-switch p1, :pswitch_data_0
:goto_0
+ invoke-static {v0, p1, p2}, Landroid/graphics/MiuiTypeface;->getChangedTypeface(Landroid/graphics/Typeface;II)Landroid/graphics/Typeface;
+
+ move-result-object v0
+
invoke-virtual {p0, v0, p2}, Landroid/widget/TextView;->setTypeface(Landroid/graphics/Typeface;I)V
return-void
@@ -31158,6 +31162,10 @@
invoke-virtual {v2, v3}, Landroid/text/TextPaint;->setTextSkewX(F)V
+ invoke-static {p1}, Landroid/graphics/MiuiTypeface;->getDefaultTypeface(Landroid/graphics/Typeface;)Landroid/graphics/Typeface;
+
+ move-result-object p1
+
invoke-virtual {p0, p1}, Landroid/widget/TextView;->setTypeface(Landroid/graphics/Typeface;)V
goto :goto_3

0 comments on commit 46cd192

Please sign in to comment.