• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[FONT][Magisk Module] Google Sans font - systemlessly

Search This thread

yshibu

Member
Feb 26, 2014
22
2
2 different versions oft product sans

It IS Product Sans.
At least I based it on so-called "Product Sans" fonts that I could find.
And I don't see any difference between my font and Product Sans.

Especially I checked figures and nice rounded shapes of O, Q, G and so on...

Now I'm not a font designer, and I didn't thoroughly checked the hundreds (thousands?) of glyphes it contains one by one....

You can take it as it is and tell me of you find something wrong. I'll be happy merging-in new glyphes if appropriate.

Cheers
First thank you very much for your nice work!
I found 2 mainly different versions online. The difference is most obvious in big letter M and digit 1 (see my screenshots). In online posts about the so called original version it is spoken as of the logo font. So in downloadable TTFs in Fintforge you can find the logo letters with the special e at the end of the character set. In these fonts you'll find this M and 1.
So I'd like to ask whether you could merge the big M and maybe all digits (which are all slightly different I think) into your font set, which has all the special characters that were missing in the others files.
Thanks a lot again!
 

Attachments

  • Screenshot_20201129_130522.jpg
    Screenshot_20201129_130522.jpg
    143.1 KB · Views: 497
  • threema-20201129-121017-201fb516422a7560.jpg
    threema-20201129-121017-201fb516422a7560.jpg
    57 KB · Views: 497

Abnova

Senior Member
Jun 16, 2014
93
20
Hey, Could I get a version that flashes the Google sans font + The Google Android 11 emoji? Most of the emoji modules I try never replace the default system emoji and so create a weird hybrid of HTC emoji and Google emoji.

I've attached a screenshot for clarity
 

Attachments

  • Screenshot_20210105-211009.png
    Screenshot_20210105-211009.png
    468.7 KB · Views: 205
  • Like
Reactions: AxiK.

Abnova

Senior Member
Jun 16, 2014
93
20

Found the problem. Old HTC uses 2 sets of emoji.ttf files -hTC_ColorEmoji.ttf and NotoColorEmoji.ttf

That module seems to add a SamsungColorEmoji.ttf file which cannot I doubt the phone can read, so the phone defaults to the older hTC_ColorEmoji.ttf

I've attached a screenshot


Disregard
 
Last edited:

Abnova

Senior Member
Jun 16, 2014
93
20
Found the problem. Old HTC uses 2 sets of emoji.ttf files -hTC_ColorEmoji.ttf and NotoColorEmoji.ttf

That module seems to add a SamsungColorEmoji.ttf file which cannot I doubt the phone can read, so the phone defaults to the older hTC_ColorEmoji.ttf

I've attached a screenshot



So if a technical person could modify the module and rename the SamsungColorEmoji.ttf to hTC_ColorEmoji.ttf that would be nice 😁. I tried unzipping it and editing it myself but I get an unzip error when I try to flash it on magisk


Disregard
 
Last edited:

Abnova

Senior Member
Jun 16, 2014
93
20
Ex
So if a technical person could modify the module and rename the SamsungColorEmoji.ttf to hTC_ColorEmoji.ttf that would be nice 😁. I tried unzipping it and editing it myself but I get an unzip error when I try to flash it on magisk

Ok this one definitely does the job but the emoji packages are outdated.(only has zip for v0.02 when v0.04 is the newest) Is there a way to create a flashable zip from the GitHub code?

OK- EDIT
It worked. Can confirm this module completely replaces the system emoji as well. :) Sorry for the spam, I just realised its better to edit the same post rather than post multiple.

 
Last edited:

handydandy

Member
Nov 7, 2015
14
1
[Bug Report]
In the Chrome browser, the font adjustment in the accessibility setting doesn't work. On some websites, the font is too small.
 

akilleas

Senior Member
Jan 1, 2014
190
46
Greece
Hello and Happy New Year.
This is what I get to see with Miui 12/Android 10
Can I make them somehow more bold? The second slider doesn't change something.
 

Attachments

  • Screenshot_2021-01-09-21-57-09-492_com.android.settings.jpg
    Screenshot_2021-01-09-21-57-09-492_com.android.settings.jpg
    114.1 KB · Views: 228
  • Screenshot_2021-01-09-21-57-18-602_com.android.settings.jpg
    Screenshot_2021-01-09-21-57-18-602_com.android.settings.jpg
    152.7 KB · Views: 227

lokogan

Member
Dec 1, 2013
43
8
Module works great. Thank you. However, I noticed the " ^ " accent was misplaced in some instances. Hopefully, this issue can be corrected.
Screenshot_20210114-154616.png
 
Hello,
First of all, thanks a lot this module that i love and use since the early begginning of it.
Now, i have a problem with the Twitter App, because the bold font is too "rough", like pixelated on the edge.
I have a Poco F2 Pro on MIUI 12 (android 12), Twitter 8.78.0 but it happens on the last beta as well (black and white mode).
Here is some screens, I hope you can find the problem.
Have a nice day. :)
 

Attachments

  • Screenshot_2021-01-29-16-59-39-880_com.twitter.android.jpg
    Screenshot_2021-01-29-16-59-39-880_com.twitter.android.jpg
    814.4 KB · Views: 172
  • Screenshot_2021-01-29-17-02-48-224_com.twitter.android.jpg
    Screenshot_2021-01-29-17-02-48-224_com.twitter.android.jpg
    722.4 KB · Views: 173

ZioArturone

Member
Dec 10, 2007
30
16
Hi Looki75, any plan to update your gorgeous Magisk module with the brand new Google Sans Text font created for Android 12?
Thanks.
 

aacprime

Member
Aug 16, 2015
40
7
I like google sans, but this module makes it appear literally everywhere, and it's a bit too much in my opinion. Is it possible to make this somewhat google pixel-like? Pixel phones use a mix of product sans and roboto
 

Top Liked Posts

  • There are no posts matching your filters.
  • 147
    Hello,

    This is a module to install Google Sans font (aka Product Sans) systemlessly through Magisk.
    You say: "Yet another Google Sans module"
    Well sure, except that I made an important correction in the font design, read below...

    So I wanted to install Google Sans font on my device.
    You might know that is is not free to use...
    All copies I could find on XDA and other places had the same issue.
    The issue is that when you place a digit before a linebreak, if you click at the end of the line, the cursor is shown in the middle of the digit (see attached). I don't know if this glitch is only present on OnePlus 3T, but it drove me crazy...
    :eek:

    Then I spent hours trying to find different copies of that font....
    All copies had the same glitch on my device...
    So I tried looking for the issue in the font files themselves... and I finally found that the linebreak character (unicode U+0A) had a width defined at 0... whereas in any other font, it has a non-0 value (value depends on the font).
    I corrected this issue and now it is working perfect!!!
    :good:

    Also I corrected the colon for the lockscreen time (U+EE01 in Roboto-light).

    So attached is what I believe to be the only Google Sans (aka Product Sans) font module that doesn't have this issue...

    Tested only on my OnePlus 3T.
    As usual: make backups... blah blah.... I cannot be held responsible... blah blah....
    :)


    Donations:
    www.paypal.me/bulotchka

    Thanks to my generous donators:
    @matheuseduardo

    GitHub:
    Repository: https://github.com/Looki75/looki75productsansfont
    Report an issue / a bug: https://github.com/Looki75/looki75productsansfont/issues/new
    Releases: https://github.com/Looki75/looki75productsansfont/releases/latest

    Changelog:
    * V20: Thicker underlining line
    * V19: Solving underlining issues
    * V18: Solved some hyphens alignment issues
    * V17: Compatibility with Magisk 20.2
    * V16: Correcting the glitches introduced in V15. V16 was generated with my PC which resulted in much lighter files and (hopefully) solving the V15 glitches
    * V15: Improved compatibility with latest versions of MIUI roms + fixed south-east and south-west arrows
    * V14: Getting back to V10 because I found yet other bugs which just add to the list of issues due to the switch from V10 to V11
    * V13: Integrating missing glyphes that I forgot to merge from V10 to V11
    * V12: Correcting lockscreen colon issue on certain ROMs
    * V11: Updated with latest Google Sans font versions + definitely removed EMOJIs from both Magisk and TWRP zip files
    * V10: Correction of small issues with the font itself + removed EMOJIs (the EMOJIs from your ROM will be preserved)
    * V9: Additional fonts RobotoCondensed-Medium, RobotoCondensed-MediumItalic, RobotoNum-3L, RobotoNum-3R
    * V8: Underline FIX for all weights of font (thanks @rocketsauce83)
    * V7: Missing glyphes imported from usual ROBOTO


    How to properly install
    First of all:
    - Install module in Magisk
    - Reboot
    - On some phones (eg OnePlus), there is the possibility to choose a system-wide font from a selection. In this case, you need to make sure you select "default font" or "Roboto".


    How to check if the module works
    1. Open Gboard keyboard and look for capitalized letters Q and O. If they look like perfect circles, the module is probably applied correctly.
    2. Still in Gboard keyboard, look for figures 6 and 9. If they look like a small perfect circle with added straight line, the module is probably applied correctly.
    If checks 1 and 2 failed, double check you did properly install the module.

    If you cannot apply the module, then send me:
    * a screenshot of Gboard "CAPS" and "figures" screens
    * a zip file with the content of your /system/fonts folder
    If there is a font that I didn't take into account, I might be able to identify it and patch my module.


    If the module seems to be applied correctly, then go further:
    3. Look elsewhere in your system. If somewhere Q, O, 6 and 9 don't look like in Gboard, it means a specific font is used in that specific screen/app.

    If you think a specific font is used somewhere, then send me:
    * a screenshot of the place you where you found a specific font is used
    * a zip file with the content of your /system/fonts folder
    If there is a font that I didn't take into account, I might be able to identify it and patch my module.


    Apps known to use a specific font: aCalendar


    Have fun!
    Cheers
    15
    thank you so much! any chance to make a twrp flashable version of the zip? thanks!

    @All,

    UPDATE: V8 with Underline FIX for all weights of font (thanks @RocketSauce83) + TWRP-flashable ZIP made available

    Enjoy ;)
    12
    Guys,

    I'm really sorry... I had to update once more...

    UPDATE: V14 - basically getting back to V10 because I found yet other bugs which just add to the list of issues due to the switch from V10 to V11...

    Better I should have stick with V10 :crying::crying::crying:
    12
    UPDATE: V16 - basically correcting the glitches introduced in V15. V16 was generated with my PC which resulted in much lighter files and (hopefully) solving the V15 glitches

    Download from first post.

    Enjoy :)
    11
    Everyone,

    UPDATE: V13 - integrating missing glyphes that I forgot to merge from V10 to V11... sorry guys...

    @DvLAx3l thanks for your help in troubleshooting the latest remastered version... :eek::good: