yashsingh1/xdaforums huggingface dataset:
[Magisk] icantlogin:
Hello, I'm new to flashing custom fonts so I played around with this and other Magisk modules and I came to understand they all replace the system font(s) system-wide. What I'm looking to achieve though is making LineageOS look more like Google's Pixel UI by using Google Sans only in the system settings, quick settings and lock screen clock. Kind of like the inverse of the GS=true setting.

Can this be achieved with OMF and/or the GSP module? If not, is there another way, a Magisk or LSPosed module still unknown to me maybe?

GSP module works great on my phone by the way! But I just don't want apps and even many websites to use Google Sans instead of Roboto.
[Magisk] redalm0nd:
Hello I've flash GSP module and I got bootloop, I didn't change the config.

Im using POCO MIUI14 Android 13
[Magisk] nlt_:
you should try installing this module with killgmsfont, tried this on pixel 5 with android 14

Releases · D4rK7355608/GoogleProductSansFont

Systemlessly Google Product Sans Font for Android 12 and 12.1! - D4rK7355608/GoogleProductSansFont

github.com
[Magisk] ZhuSunDev:
Only GoogleSansClock didn't replace on Android 14,how can I fix it?
[Magisk] nongthaihoang:
Since I have been inactive, the thread is closed for now. You could still ask questions in the OhMyFont group (link in the gitlab repo)
[Magisk] nongthaihoang:
I'm pretty sure the script works because it's similar to the one that worked for you before. You don't give me anything (e.g. Magisk log, the script.sh, module version, Magisk version, module folder zip, ss of magisk module, steps that you did) to analyze where the problem is, however. So...
[Magisk] febry_valdy:
I barely can't distinguish my stock font to omf but while I am using SFP with text body font and increase letter-spacing option, the difference is very obvious. Maybe I will stick to your final SFP cos I am happy with this. Cheers.😊
[Magisk] frisaldy:
Can I completely ditch the condensed style from this module?
[Magisk] nongthaihoang:
Yes and no.

Yes, "condensed" is just the name. If you set it to Regular it'll be Regular or whatever you want.

No, condensed is a part of the sans-serif typeface which includes more than 20 different font styles - uprights, italics, condensed uprights, condensed italics.
[Magisk] cocoflais:
"OTF one storey a" working on MIUI?
[Magisk] nongthaihoang:
Nope, because there is no such thing.

Read about OpenType Features before talking nonsense.
[Magisk] cocoflais:
Okay then thx :)
[Magisk] denzi01b:
Thank Dev

It's work for me.

OP7T, OOS 10, Magisk 21.4
[Magisk] eminguc1995:
Files are in the folder in zip that why its not installing from Magisk. You should move every files in folder to directly first directory of zip. @nongthaihoang should edit zip file. (Sorry about my English, I'm Turkish.)

You need to :
[Magisk] nongthaihoang:
I have no idea what you're talking about.

Please take your time to read the first post. The download link is also there.
[Magisk] eminguc1995:
I just talking about new gen san francisco font, i know here is not its topic.
[Magisk] nongthaihoang:
Yes, this is the right place. What do you want to know? Leave your question here.
[Magisk] deysmusic:
Hello! This is really a breakthrough, but I put y miui 12.5 and I haveand my font is visible only in the browser but not in the system itself :(what should I do?If I'm sorry for my English, I'm just Russian)
[Magisk] nongthaihoang:
The module is confirmed to be working on Miui 12.5 EU Weekly Rom. Tell me more about your MIUI 12.5, i.e., device, Android version etc.
[Magisk] deysmusic:
My device Redmi Note 7, android 10, xiaomi eu 20.12.28
[Magisk] nongthaihoang:
Also EU. Interesting. Do you want to be a tester for your specific rom?
[Magisk] deysmusic:
Yes I would like to
[Magisk] nongthaihoang:
Added Extensions where you can download custom scripts for the module.
[Magisk] pleasetouchmenot:
Sorry for being lazy or whatnot but, would you mind if you share your config sir? Looking at screenshot of yours, i know that thats the kind of presets i want to look at my phone.
[Magisk] nongthaihoang:
I've shared my config since I've created this thread. Check 2nd post.

And no, same config doesn't look the same on different phone. it depends on font size, ui size, screen dpi etc.
[Magisk] Ridho1:
I think it doesn't work for me on MIUI EU 12.0.8. I tried to edit as yours, but it looks different in magisk app you shared compared with mine (see the Home and Support Us).
[Magisk] nongthaihoang:
I should add MIUI EU to the blacklist. MIUI official is fine but EU one is a different story. Even if the module works, it only works partially. MIUI EU has its own font settings that overwrites the default font setting on Android.

You should stick with any static font module instead.
[Magisk] Ridho1:
Alright, but would you explain how to make it works like your SFP magisk module? It works like charm on miui eu.

I tried to unzip the tar.xz file but I don't know how to put in the right folder. And I think the number of font files is different from the SFP's zip.
[Magisk] nongthaihoang:
Go to gitlab -> extensions -> download the 'multi-roms support'. Also go to the wiki -> extensions -> follow the instructions.
[Magisk] :
.srt subtitle not showing in VLC, uninstall the module did the trick.

does the Module cause this or VLC ?
[Magisk] nongthaihoang:
VLC doesn't work with variable font. But I don't know why. Because Android has added support for variable font since Android 8 and most apps just work.
[Magisk] :
sad, gonna find VLC alternative since this is the only font that suit for my eye with my config settings...

thanks.
[Magisk] Letzen:
How did you handle linebreaks etc.? AFAIK, SFP has a different height than Roboto, which should cause the UI to break.

There were some guides in Chinese forums that use a fake font with no glyphs with the same metrics as Roboto, and overlays the font via fonts.xml so that the metrics stay the same with Android's expectations but still uses the new font (sadly, the fake Roboto zip is locked behind an invite-only membership, nor do I speak Chinese). Is this the way you handled or have you gone with a different route?

I was doing tests with Segoe UI, editing the metrics to match Roboto, using fontline.py etc. but no results, it doesn't affect how Android calculates font height.

Also, what's the glyph of the lock screen ":"? It seems to be missing in a lot of fonts.
[Magisk] nongthaihoang:
SF works fine by default and I don't need to modify anything regarding "height".

I've took a look at the Segoe UI. It has high font height which will break the UI for sure. You may want to change HHead Ascent to 1900 and HHead Descent to -500.

Lock screen colon of Roboto is in the Private Use Area. So yes, none of other fonts will likely to have it.
[Magisk] denzi01b:
Hello, I update to Android 11 (OOS). I flash module with rom.sh (rename to script.sh), but look like it is not effected. Need help.
[Magisk] nongthaihoang:
Please send more useful info like Magisk log, ss of OMF folder. Make sure you're on latest Magisk (v22) also.
[Magisk] denzi01b:
Yes, I use lastest Magisk (v22). I attached magisk log, but what is "ss of OMF folder"?
[Magisk] denzi01b:
Does anyone see my attachment? I cant see it myself, dont know I upload the file success or not!
[Magisk] nongthaihoang:
No I don't see your attachments. And also send screenshot of the OMF folder.
[Magisk] denzi01b:
Hear the last your message, I take zip and sh file to an empty folder, then flash again... Now I think it work! I see notification texts in status bar has applied. You can check "ss" for me.

Note: before that, I leave 2 files in Download folder, together with other zip modules and many files others. I have seen in install screen show "+Rom" in the last row..
[Magisk] nongthaihoang:
If it works for you then enjoy! 👍
[Magisk] ryandxter:
edit: sorry I didn't read full wiki yet, problem solved

I'm just curious what define "G1"? at example wiki shown
[Magisk] nongthaihoang:
G1 or whatever, just search for it in the config file.
[Magisk] Shashwat Xtremezs:
I've been using SFPlus Font v4.3 module for quite some time now cause that worked best to my taste compared to v4.6, & now I just flashed OMF module one thing I immediately noticed that SF font doesn't apply everywhere! For example status bar, google apps etc,(Pixel Experience Rom 11+) where your module SFPlus module does change them! I wanted to increase letter spacing a bit that's I flashed OMF but can't figure it out!
[Magisk] nongthaihoang:
Read the wiki.
[Magisk] ponichia:
4xl stock android 11

Opsz 21a

GRAD 406

SF with GS headline is great

But I don't know why in Zalo app, some feed post is still on old android robo font. Zz
[Magisk] nongthaihoang:
It's normal. Just like every websites use their own font. So do apps.
[Magisk] Shashwat Xtremezs:
Am I missing something cause I'm still not able to SF font in my status bar, I think I've to stick to your SFPlus Font module (v4.3) with increased letter spacing that works so well, I just wanted same configuration with OMF but with little modification with spacing, width, weight, optical size, grade, (I've attached my own customised one in that toggle control you added, also you can see the status bar it works well with your SFP module not just that except of some google apps (that also happened in latest updates of google apps earlier it used to work) it applies everywhere for eg. lock screen etc.)
[Magisk] ponichia:
GS=false (remove #)
[Magisk] Shashwat Xtremezs:
I'm sorry🙏 I thought I need to use #
[Magisk] nongthaihoang:
Just wanna say, there's new update.

Download
[Magisk] MrCarb0n:
seems like Magisk v20.4 isn't compatible, right?
[Magisk] nongthaihoang:
Why is it not compatible with Magisk 20.4?

As I know the latest Magisk v22.1 still support for v20.4 and up.
[Magisk] MrCarb0n:
ah it's weird, just checked font.xml from modpath and found it's not patched! ._.

OMF v2021.04.19

Magisk Canary fb8000b4 (22104) 21
[Magisk] pleasetouchmenot:
The new update of Google Sans Font (5.0) is so dope. Now with OhMyFont like config file, it is so easy to setup, plus the legible option is so nifty. This is soo good. Thanks for the update @nongthaihoang . I missed your GSP module font so much. Glad that it came back with a new awesome feature.
[Magisk] MrCarb0n:
NVM, it was Magisk issue probably, changed my kernel now Magisk fully functional and OMF also. :)
[Magisk] nongthaihoang:
So it's failed to install on your Magisk. What does the Magisk installation log say?

Edit: Ok, I saw your reply.
[Magisk] nongthaihoang:
Great to see you're still using GSP. BTW, I've just reuploaded a quick fix v5.0.1. Despite I've tested many times, I left a typo in the codes.
[Magisk] Zilla0617:
To get version 5.01 of Google Sans is there any action needed on the user outside flashing the updated module.
[Magisk] nongthaihoang:
Lol your question caught me off guard. That's cute. To get whatever version you need DOWNLOAD it.
[Magisk] pleasetouchmenot:
Yeah because that's the cleanest yet customizable GSP font module that i've used. And the time that you archived it back then, it makes me sad. Not just me, but there's so many users who really liked your font module.

Btw great! If i update the module, do i need to configure the config file again, or flash and forget? Thanks so much for updating it. I'm so happy right now.
[Magisk] nongthaihoang:
👍

You only need to config once. The next time you flash the module, your config will be read and apply automatically.
[Magisk] pleasetouchmenot:
Got it. Again, thank you so much!
[Magisk] BreckZeBoulay:
@nongthaihoang : another powerfull tool. Thx ! The king of fonts :D

But a GUI to set all these parameters could be a big progress :)
[Magisk] nongthaihoang:
OMF is just a font module that you can flash in Magisk app and forget. There's no additional requirements.
[Magisk] MrCarb0n:
seems like they're inverted in OMF.

superscript 4 - XXX⁴
subscript 4 - XXX₄

Config:

OPSZ=23a

GS=false
GS=serif
OTF=high legibility, tabular figures

UR=Regular G3

### 20210418 ###
[Magisk] nongthaihoang:
What do you mean by inverted? And how it should be according to you?

Btw, you have two `GS=` lines. It's redundant. Only the last one takes effect.
[Magisk] MrCarb0n:
[edited]

Paste it on somewhere else in your device.

XDA using its own font, so its not visible here.

XDA:

btw i can only use one GS variable at the same time, right? or should i use them as

GS=false, serif
[Magisk] nongthaihoang:
Then what? I have to ask you a question then another question then another. At first it's your problem. So post your issue in one post explain everything you can as clear as possible. Include your screenshots if needed.
[Magisk] nongthaihoang:
Don't make it up. There are only two options: false or serif (Wiki)
[Magisk] MrCarb0n:
Yeah, just rechecked. I misread previously. (y)
[Magisk] dt0807:
I really enjoy the revived Google Sans Plus module; however, I was wondering if there was a way to be able to use custom emoji. I had been using the Custom Font Installer module to do that, but I believe this module overrides it.
[Magisk] nongthaihoang:
Clean install (without any font modules) -> use CFI to install your Emojis -> reboot -> install GSP.

Usually, you can only use one font module at a time.
[Magisk] Shashwat Xtremezs:
Sorry to disturb, but i have a question, Can I get rid of condensed font? For example I've attached instragram screenshot(1st one) the highlighted text you see I don't know why it's too much condensed can I make it like regular? Something like highlighted in the second screenshot
[Magisk] nongthaihoang:
First thing first, which font module is that?

And the marked text in the 1st ss is not condensed at all. See the picture below to know what condensed is (the left text is condensed, the right one is normal):
[Magisk] Shashwat Xtremezs:
This is the code & the version that I'm using & yeah I mean it's lil bit condensed not too much (sorry😅) if you see in second screen shot the headings are better more regular but in 1st screenshot it's lil bit condensed I want to make it like the heading one in 2nd screenshot, is there any way? May be it's not condensed but it surely looks lil bit condensed that's why! May be it's also related to letter spacing, it's okay everywhere except in Instagram(account name in captions & in search section that mentioned in 1st screenshot)
[Magisk] nongthaihoang:
It's letter-spacing (loose or tight), not condensed, in typography "condensed" means text that has "small width".

And no there's no fix for that. Because the bold text you see is what I call "auto-generated bold text". The app take the Regular style and make it bolder instead of taking real bold styles. You can also see this kind of bold in the Magisk app in the module info, press the (i) button next to the download one.
[Magisk] Shashwat Xtremezs:
Okay, I see, I get it now, Well instragram needs to fix that, Yes it's there in magisk as well I've highlighted it in Screenshots (auto generated bold text) that you mentioned!
[Magisk] nongthaihoang:
There is a report about alignment bug of SF in my private chat. But I think this is an interesting topic so I post the comparison between Roboto and SF for every to see and judge. (The two red squares that are next to each other, one above and one below has the same height)
[Magisk] Shashwat Xtremezs:
I want to have different opsz(letter spacing) value for SF Bold & Regular, I tried doing it(may be totally wrong!) It gets bootlooped, it doesn't get reseted tho while flashing the module, so I thought it must be right but no it's not there's bootloop!(I've attached as of config code!) Anyone help me?
[Magisk] nongthaihoang:
I can only choose between "predefined style" and "manual" method as mentioned in the config file. Please read the wiki.
[Magisk] MrCarb0n:
what about taking automatic backup for old config while installing new version (which have config reset function). I don't like to lose my previously modified config :(
[Magisk] nongthaihoang:
- Install newer version doesn't mean the config will be reset. It is reset when there's newer version of the config file. The config version is different than module version.

- The config need to be reset. Because the old one can't be used or bootloop may happens.
[Magisk] MrCarb0n:
Yeah, but as reference we can keep a backup copy for old config (at same dir, just rename to something else). like last time I forgot what I've changed and config got reset as well :'( if I had any backup then I'd able to track my changes. :D
[Magisk] nongthaihoang:
"Track my changes". That's more reasonable.

Let me see what I can do. But you should backup your config yourself before installing.
[Magisk] MrCarb0n:
Yes, That's what I did on past but last time I forgot and fall in trouble :3
[Magisk] nongthaihoang:
The feature will be added in the next update.
[Magisk] ponichia:
Strangely, I find Robo is more center, SF is a little high
[Magisk] nongthaihoang:
No. Center is not the right place. Roboto's is.
[Magisk] nongthaihoang:
The feature is included but there's no new config version so you won't able to see it works.
[Magisk] Mar-cel:
Is this config so right?
[Magisk] nongthaihoang:
Right or wrong is not easy to answer. Read the wiki or just leave it alone if unsure.
[Magisk] MrCarb0n:
haha Great!! just tried with an Old Config :D and yeah, nicely worked! no more accidental config reset :3

[#] Automatic backup of old config.cfg (renamed to config.cfg~) while upgrading to new version.
[Magisk] sundram.saysss:
Sir how to get exact font like this?
[Magisk] nongthaihoang:
Use the exact same phone 😏
[Magisk] pleasetouchmenot:
Sir may I ask what does slant exactly do on your Google Sans Prime config? Sorry for OT but I'm using your Google Sans Prime rn and it's beautiful. I just wanna know what the other preset can do to make the font more precise based on my preference.
[Magisk] nongthaihoang:
Don't bother to ask me. This is not even the default config. You should ask the genius who edited the config like that.

All information on GitLab. And if you can't understand a single word, don't hesitate to teach yourself a lesson about Variable Font.
[Magisk] pleasetouchmenot:
Sorry sir. I just got it from a random telegram group. Anyways thanks.
[Magisk] OPequenoRomeu:
Sorry for the question, but how does this module work? I installed it, but what now? What do I do?
[Magisk] nongthaihoang:
More specific. What do you want to do?
[Magisk] nongthaihoang:
You might know that the old GSP (Plus) has been taken down. So it's time for the new GSP (Prime).

Check 2nd post.
[Magisk] cbendot:
can flash in twrp without magisk, for non root user?
[Magisk] nongthaihoang:
Nope. The benefit of non-root is that you don't have to enjoy Magisk modules.
[Magisk] lokogan:
Thank you for making this terrific module. I ran into a small issue with the latest zip. Not sure if it is a bug or if I made a mistake somewhere. June 15th zip will not enable "OTF=tailed lowercase L". Re-flashing June 4th zip corrected the issue. Only other option I added to config was "GS=false".
[Magisk] nongthaihoang:
What a quick report! Tks. Fixed.
[Magisk] lokogan:
Super! Thank you.
[Magisk] bounti:
Hey all. If I just wanted to reduce the font size overall and leave everything else as is, what value should I edit in the config?

Sorry for the n00b question.
[Magisk] bounti:
Thanks for the reply. I know how to change the font size via settings, but I still personally find these fonts a bit larger than I'm used to. Is there a way to reduce it's size via the config file?
[Magisk] nongthaihoang:
No. there is not. Font size is controlled by the system ui.
[Magisk] bounti:
Understood. Thanks again for the reply.
[Magisk] Adnaanes:
Hello,

Sorry to bother you I'm a noob in this, I used just to flash your previous SF module in magisk, now I can't understand how it works how to configure the config fil

Could someone please explain to me how to get the san Francisco font working? On a video or just steps ?

Thank you so much
[Magisk] nongthaihoang:
Read wiki.
[Magisk] _labello:
Nice work.

Is it possible to have the font as ttf file 🙈🥺
[Magisk] nongthaihoang:
That's illegal. I only provide Magisk module. You can get fonts from anywhere but not from me nor this thread.
[Magisk] lokogan:
The phone app on Pixel 3 (Android 11) appears to be using its own font and is unaffected by this module. Is this a known scenario with some apps by Google or did I missed something?

The only options I added to config file were GS=false and tailed lowercase L.
[Magisk] nongthaihoang:
You answered your question yourself.
[Magisk] nongthaihoang:
The module changes system font. Not app font nor website font.
[Magisk] lokogan:
Thanks for the clarification.
[Magisk] TheLastJediVII:
There's some way to bring back that "old" lowercase "L" with the top tilted? I really loved that subtle difference.
[Magisk] nongthaihoang:
Not gonna happen. It was my mistake.
[Magisk] TheLastJediVII:
Not even by OTF features in some future update? I'm using tailed lowercase L, but that other one was much more beautiful and elegant
[Magisk] huytoan9882:
Can i have the file for ttf font? I want to install this in PC
[Magisk] nongthaihoang:
Nope. This is not the place to download font files.
[Magisk] j-a-d-z:
Any way to use Google Sans Text for all fonts (body and headlines) in latest GSP release?
[Magisk] nongthaihoang:
Yes and No.

In System UI (i.e. Settings, Notifications, Quick Settings): NO.

In Other apps (except ones that uses its own custom fonts): YES. Achieve that by edit the config file.
[Magisk] j-a-d-z:
Thanks for the answer, worse luck. Nevertheless a wonderful module.
[Magisk] nongthaihoang:
FYI, it's now possible to install both fonts via TWRP (non-root).
[Magisk] wileecoyote7:
Hello,

first off thanks for all your work, I've really appreciated it!

I was wondering if there is any chance of getting the old GSP module available for download?

I just can't accept the styling of the numbers in A12 GSP.. alternatively, is it possible to use Android 11 GSP with the current module?

Thanks in advance!
[Magisk] wileecoyote7:
Basically I'd like to have the optical size to be set at 18 everywhere.. I've done it in the config by changing the 17s in 18s and rebooting, disabling and re-enabling the module and so on but still I get the OPSZ 17 style numbers (I see them in Gboard or Nova Launcher search bar for example).

What am I doing wrong?
[Magisk] nongthaihoang:
Installing it.
[Magisk] wileecoyote7:
I managed to get the result i wanted by editing the fonts.xml file in modules folder manually.

Still I don't get why it's like it doesn't read the config file.. any clue?
[Magisk] nongthaihoang:
Installing the module.
[Magisk] raptor22:
Just to confirm the steps;

- Flash GSP Magisk Module

- Reboot

- Ensure config.cfg is in OMF folder

- Flash GSP module again

What do I need to edit in config.cfg in order for the system font to be GSP? Can't find any info on the wiki on this, and GSP is not being used as system font currently
[Magisk] nongthaihoang:
- You are right. Just INSTALL THE MODULE to apply your changes in the config if any.

- Installing the module is the only what you need. Most of Android ROMs use Roboto by default. But if your ROM uses a custom font, you have to DISABLE it yourself. It's out of my reach.
[Magisk] raptor22:
Thanks for your reply. I'm on stock ROM, Pixel 4Xl, no other font modifier/module installed. However, most system fonts (and apps that rely on it) are still Roboto. The Magisk installation logs don;t indicate anything wrong either? Am I doing something wrong?
[Magisk] nongthaihoang:
Especially, if you're on stock Anroid. All all fonts will change (except apps that has custom font buit-in, e.g., Gapps, Telegram). This module is over 2 years development, despite the name has changed but there's no such issue as it doesn't work for stock Android. Further more, I personally use Pixel, so there's no reason the module doesn't work for you while it works for me.
[Magisk] raptor22:
To update, managed to resolve it. Turns out in my first try, the config file was left over (file manager app did not complete delete) and conflicting with the one that I was installing in my second install. Fixed it and it's all good now. Thanks for the module