ZenFone3(ZE520KL)のフォントを変更する anchor.png

ZenFone3(ZE520KL)もAndroid 6.0.1でNexus5と同じ日本語フォントのNoto Sans CJK JPが使われている。GoogleとAdobeが共同開発したフォントで,けっこう見やすい。

でも今まで使っているフォントが気に入っているんで,入れ替えちゃう。

Page Top

利用したいフォントを/system/fontsにコピー anchor.png

> adb push CustomFont.ttf /sdcard/
> adb push CustomFont-Bold.ttf /sdcard/
> adb shell
$ su -
# mount -o remount,rw /system
# mv /sdcard/CustomFont.ttf /system/fonts/
# mv /sdcard/CustomFont-Bold.ttf /system/fonts/
# chown root:root /system/fonts/Custom*
# chmod 644 /system/fonts/Custom*
Page Top

/system/etc/fallback_fonts.xmlを変更 anchor.png

NotoSansJP-Regular.otfやMTLmr3m.ttfを削除して,以下のように変更

   <family>
       <fileset>
           <file lang="ja">CustomFont.ttf</file>
           <file lang="ja">CustomFont-Bold.ttf</file>
       </fileset>
   </family>
Page Top

/system/etc/fonts.xmlを変更 anchor.png

NotoSansJP-Regular.otfの部分を,以下のように変更

   <family lang="ja">
       <font weight="400" style="normal">CustomFont.ttf</font>
       <font weight="700" style="normal">CustomFont-Bold.ttf</font>
   </family>
Page Top

/system/fontsのDroidSans-BoldとDroidSansを変更 anchor.png

# rm DroidSans-Bold.ttf
# rm DroidSans.ttf
# ln -s CustomFont-Bold.ttf DroidSans-Bold.ttf
# ln -s CustomFont.ttf DroidSans.ttf

リブートしたら,フォントが変更されている。


新しくコメントをつける

題名
ゲスト名
投稿本文
より詳細なコメント入力フォームへ

トップ   凍結 差分 バックアップ 複製 名前変更 リロード   ページ新規作成 全ページ一覧 単語検索 最新ページの一覧   ヘルプ   最新ページのRSS 1.0 最新ページのRSS 2.0 最新ページのRSS Atom
Counter: 524, today: 1, yesterday: 0
最終更新: 2020-12-26 (土) 16:07:35 (JST) (1216d) by yuji