Changelog

Code: 28/10/2017 Added fix for boxed font on lockscreen (gianton) Added support for Resurrection Remix ROM Added support for Pixel devices 27/10/2017 Updated Pixel clock Substratum theme for Nougat 7.x and Oreo 8.x (elmkzgirxp)

Tested & Working On

Android Versions - 5.x, 6.x, 7.x, 8.x

MIUI Versions - Global & Beta Builds of MIUI8, MIUI9

MIUI ROMs - Stock, Xiaomi.EU, Mi-Globe, MIUI Pro, Epic ROM

Stock Android ROMs - Sony, OnePlus, Lenovo, Moto devices

Custom ROMs - Some ROMs based on LineageOS & AOSP source

Screenshots

For MIUI8 & MIUI9 with TWRP

Download MIUI_TWRP_GoogleSans.zip

Boot into TWRP > Backup > Select System

Install > Select and flash the zip > Reboot > System

To revert back to original font, restore "system" using TWRP

For MIUI8 & MIUI9 without TWRP

Download MIUI_GoogleSans.mtz

Install MIUI Theme Editor : Playstore

Open Themes app > Themes > Import

Go to Internal Storage > MIUI > Theme > Select GoogleSans.mtz

Select the font from themes list and reboot to apply the font

To revert back to original font, apply default theme and reboot

You wont be able to see bold, italics fonts due to a bug on MIUI

Flashing the MIUI_TWRP_GoogleSans.zip using TWRP will fix this issue

For Stock/LineageOS/AOSP based ROMs with TWRP

Download TWRP_GoogleSans.zip (AOSP/LOS/Stock based ROM)

Download RR_TWRP_GoogleSans.zip (Resurrection Remix ROM)

Download PIXEL_TWRP_GoogleSans.zip (Pixel Devices)

Boot into TWRP > Backup > Select System

Install > Select and flash the zip > Reboot > System

To revert back to original font, restore "system" using TWRP (recommended) or flash TWRP_StockRoboto.zip

Facing boxed font on lockscreen? Flash this zip by gianton

Change the Lockscreen Font only using Magisk Manager and Substratum

This will just change the font on your lockscreen, and not your system font. (Do not flash TWRP font zip if using this method)

Your ROM should support OMS, if its Legacy the SystemUI might crash or phone might bootloop.

Flash the Magisk-GoogleSans.zip module using TWRP > Reboot > System.

Install Substratum Theme Engine : Playstore

Install Pixel+2+Lockscreen+Clock_1.1.apk substratum theme.

Open Substratum and select the theme and your Android Version.

Apply the overlay. Reboot phone if prompted.

If your phone bootloops or system UI crashes, flash the rescue package from Internal storage > Substratum folder using TWRP.



Credits

elmkzgirxp for creating Magisk module and Substratum theme

gianton for his Product Sans font zip which solves boxed font issue on the lockscreen, also check out his awesome thread for more fonts : Link

Google introduced new font "Product Sans" in the Android Oreo 8.1 Developer Preview. This font is by default applied on the Settings app, lockscreen PIN entry and clock on the Pixel 2 series. These fonts are extracted directly from the system images and repacked into suitable files for installing. This should change your fonts system-wide across all apps and typefaces. All font packages are available at the end of the post as attachments.