Permalink
Browse files

add font change function

Change-Id: I6fd4e3dfb70a8fc664f3d76ec28ab3ceac250437
  • Loading branch information...
1 parent 538f995 commit e6e9ef355a8ad90c81494c95a07f84fa074d2b7a @yu88my yu88my committed Nov 30, 2012
@@ -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>
@@ -13316,6 +13316,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
@@ -31626,6 +31630,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 e6e9ef3

Please sign in to comment.