yashsingh1/xdaforums huggingface dataset:
[Xposed Framework Modules] zst123:
Could you try choosing the font folder from /sdcard/or /mnt/sdcard/ or /storage/sdcard/

don't choose from /storage/emulated/* or /sdcard/emulated/*

Tell me how it goes..
[Xposed Framework Modules] zenosteam:
Thé font folder load corectely for me but the font don't want to change

Envoyé de mon GT-I9500 en utilisant Tapatalk
[Xposed Framework Modules] natezire71:
Yeah, I can see me custom fonts, but when they are applied, it doesn't change anything.

Whenever I change the loading folder, no matter if I manually select it to load from "/mnt/sdcard/fonts" or "/sdcard/fonts" .... it always says the selected path is "/storage/emulated/legacy/fonts"
[Xposed Framework Modules] s.jinesh02:
Dint wrk 4 me too...

Changed evry posible path difrntly

Still atlast..path shown 4 me is

Storage/sdcard0/....

Not e1 4 android system ,the font changes
[Xposed Framework Modules] osuki9x:
small trick on APK to apply external font

I just have a bit knowledge about apk file so I think my trick could work and it DID

I rename the external font with the same name as the fonts already in the apk (PerAppFont.apk\assets\font). In my case I reaname it to Storopia.ttf and then singed the apk, reinstall it and now in the application it recognize the Storopia font with the new font that I want to change.

Therefor i could apply it (external font) to every app, including System UI.

I just though that instead the user put font in sd card and the application load the font from sd card why don't you let set the direction to the root/... folder and the app can load fonts there. No need to worry about permission.
[Xposed Framework Modules] zst123:
I still need to worry about permission. Other apps CANNOT access the root folder of PerAppFonts. /assets/fonts can only be used when

compiling

which defeats the purpose. (you have to compile and recompile for every single font.

The current problem is NOT permissions now. It is the directory that the fonts are being stored. /sdcard/ , /mnt/sdcard/ and /storage/sdcard/ are the directories that is usable by the system in the boot process. However, due to multi-user capabilities in Android 4.2+, Android has /storage/emulated/<UserNumber>/ which is initialized after PerAppFonts attempts to find the fonts.
[Xposed Framework Modules] natezire71:
Did you see my post? I can't even change the path.
[Xposed Framework Modules] osuki9x:
So does the problem solve if you load all the fonts stored in sd card instead of specific location (like some apps do). This is just my idea. Is possible?
[Xposed Framework Modules] zst123:
Try this

<b>Version 0.3 (04 January 2013 / 1345 / GMT+8)</b>

• Add Russian Translation (By Teinharm from 4pda.ru)

• Hardcode the starting folder to be /sdcard/

(Prevents users from choosing /storage/emulated/0/ which is linked to

the sdcard but is not a symbolic link. Therefore, it will "not exist"

when booting up the system.)

• Show Warning if Emulated path is selected
[Xposed Framework Modules] natezire71:
Someone is on fire with their modules. :P

I'll let ya know of this works.

---------- Post added at 12:57 AM ---------- Previous post was at 12:50 AM ----------

It's force closing and none of my fonts loaded upon a reboot. :/
[Xposed Framework Modules] claytonjn:
Same here, even after wiping data.

Also, this is in the Xposed log:

java.lang.NoClassDefFoundError: com/zst/xposed/perappfonts/Common
at com.zst.xposed.perappfonts.hooks.MainXposed.initZygote(MainXposed.java:24)
at de.robv.android.xposed.XposedBridge.loadModule(XposedBridge.java:364)
at de.robv.android.xposed.XposedBridge.loadModules(XposedBridge.java:317)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:114)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.zst.xposed.perappfonts.Common" on path: /data/app/com.zst.xposed.perappfonts-2.apk
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:64)
at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
... 5 more

-Sent from my Developer Edition Galaxy S4 using Tapatalk
[Xposed Framework Modules] Droidphilev:
Same here. Immediate FC. I use a gt-i9205 with 4.4.2 Slimkat.
[Xposed Framework Modules] zst123:
Haizz.. The APK is corrupted or the APK was signed wrongly...

(Happened 3 times for this module already... This is getting weird)
[Xposed Framework Modules] Droidphilev:
Downloaded the latest 1.3. It opens up but again: only the included (gray) fonts work.
[Xposed Framework Modules] Mchasard:
I gave a try but by me it doesn't work there's an error each way I open it . . xposed is already installed i have other modules

Envoyé de mon Tender en utilisant Tapatalk
[Xposed Framework Modules] Droidphilev:
There's a new version in xposed repo that doesn't crash but doesn't work either
[Xposed Framework Modules] zst123:
Did both of you receive a warning that the folder you have selected is emulated? Also, what is the the path that is shown after selecting the folder
[Xposed Framework Modules] Droidphilev:
Haven't seen a warning (it was using emulated on startup). i forced to use sdcard/fonts.

Only included fonts work.
[Xposed Framework Modules] s.jinesh02:
Dint work 4 me either.

Default folder got selected to be - storage/sdcard0/fonts

Xternal fonts not working.!
[Xposed Framework Modules] natezire71:
Still isn't working.
[Xposed Framework Modules] zenosteam:
Unfortunately not working for me too

Envoyé de mon GT-I9500 en utilisant Tapatalk
[Xposed Framework Modules] p0izn:
Failed to use custom fonts, only preinstalled work fine.

Tried paths (all without emulation warning):

sdcard/fonts

storage/sdcard0/fonts

mnt/sdcard/fonts

4.4 AOSP

But... Five stars! Great module. Must have. Thank you.

Edit: tried to put my files in assets/fonts and then sign .apk. Installed successfully, but now have FC when opening font list. :)
[Xposed Framework Modules] Kyle C:
What format should the font fines be in to load? I have a zip of the font I want to use (Roboto Light) but don't know what forget it needs to be in.
[Xposed Framework Modules] p0izn:
Kyle, try to rename files as .ttf , but probably you will fail to use custom fonts, read previous msgs.
[Xposed Framework Modules] dpeddi:
Do you think it might be possible to fork your app to allow changing background color and invert text color per app basis?

I have an amoled screen and I'd like if google currents and gmail would be with black background with white text...

Regards
[Xposed Framework Modules] natezire71:
Not possible without knowing the drawables for every app that's ever existed.
[Xposed Framework Modules] jaspreet997:
I have a low res screen on ma device ( qvga ) and fonts don't look great...Any ideas for specifc fonts which look fine for qvgas?

Sent from Samsung Chat
[Xposed Framework Modules] natezire71:
Dood, get a better phone. That's gotta be hella old. It's not so much what font will look good, it's how your software renders it. It's really the screen that's holding it back though.
[Xposed Framework Modules] Ninolina:
[MENTION=5402474]zst123[/MENTION],

Can you add option to increase font size per app?

Great mod. :)

Thanks in advance...:)
[Xposed Framework Modules] natezire71:
AppSettings does this.
[Xposed Framework Modules] Ninolina:
I know it has that option but it doesn't work on Opera Mini where I need that. :( But thank you for your answer. :)
[Xposed Framework Modules] Skilover:
Is there any way to lighten or darken the font color for certain apps? There are a number of inverted apps where the font is too dark relative to the background and not readable. This also seems to be a problem with the Xposed themer engine or perhaps the themes themselves.
[Xposed Framework Modules] natezire71:
Again, no way to do such a thing.
[Xposed Framework Modules] WACOMalt:
This is not working for me with Dogecoin wallet (on play store) I downloaded comic sans TTF, put it in my font folder, set the app to use it, and also tried force. Neither changed anything. I downloaded the font from here

http://www.911fonts.com/font-download/download_ComicSansMSRegular_2086.htm

Maybe the font file is bad?
[Xposed Framework Modules] hamsup1o:
this is not working for Twitter and Press apps from the play store.
[Xposed Framework Modules] der_sascha:
can somebody tell me where i can find font which are working with this module?
[Xposed Framework Modules] zst123:
http://xdaforums.com/showpost.php?p=47751130&postcount=2

below the downloads. If none of them works, then this module is not compatible with your phone.

Not all apps will work. Try using the Force Fonts option. If it doesn't work, then the app is taking the font directly from the system font folder and there is no way to prevent that.

Not all apps will work. Try using the Force Fonts option. If it doesn't work, then the app is taking the font directly from the system font folder and there is no way to prevent that.

Not all apps will work. Try using the Force Fonts option. If it doesn't work, then the app is taking the font directly from the system font folder and there is no way to prevent that.

No. Fonts need a high resolution to render properly (or smoothly) onto the screen. Even Roboto looks terrible on a low res screen.
[Xposed Framework Modules] natezire71:
Are you still developing this?
[Xposed Framework Modules] Rumman Shaikh:
This is a great module(idea for now).....module will be such a hit if he could finally make it work... Still waiting :D
[Xposed Framework Modules] zst123:
I have been researching for quite a while but I can't find a suitable way to load the fonts.

The current way it does is to load all the fonts in the font folder at boot up in the system. New apps will then fork the system process when they are created and the fonts will be together with it. I did this is because not all apps have READ_EXTERNAL_STORAGE permission so it will not work for quite a number of apps.

Some people suggested placing it in the /data/ partition. However, Android limits the permissions for files stored to each individual app. That way, other apps cannot modify it unless it is modified in code to do so. So if I were to do this, I would have to have a copy of a font in every single app's data folder.

Currently, the only main issue with fonts not loading on the external storage is present on Android 4.2 and above only. This is due to multi-user capabilities in Android 4.2+. (Even if you have one user on the device). Each user has a dedicated directory which points to the same external storage. (You can read more here). Because of this, it has broke /sdcard/, /storage/sdcard/ and other external storage locations on bootup. (I don't exactly know why)

I would really love to continue this, but it seems that it is working on all my devices and I don't understand much about these parts of the system.

(I think it is because my device is a legacy device and multi-user is disabled)
[Xposed Framework Modules] Droidphilev:
In other words: i should put my .ttf's in system/fonts and then it should work, or am i wrong?
[Xposed Framework Modules] Ninolina:
[MENTION=5402474]zst123[/MENTION],

it's not working on 4.4.2 android? I used your mod on 4.3 and it worked great. When I tried it on 4.4.2 I have a FC and font doesn't work. :(
[Xposed Framework Modules] DREWHAMM974:
Just thought I should let you know on the modules download page in the Xposed app your version 0.2 is dated as December 15 2012 while the 0.3 version is dated January 4 2013. You may want to correct the date if you are OCD like me. Thanks for the app anyways. Im loving it.
[Xposed Framework Modules] Rumman Shaikh:
Can you (or someone who knows how to compile and sign apk's) include all the fonts from the link you've suggested into your apk's >>assests>>fonts?? :rolleyes:

I'm sure that this should work and we would have enough fonts to play with... Size of the apk will be large but can't help at this stage :(

I tried it(compile thing,signing apk,etc) but it was just very confusing for me:p

Edit: just realised it isn't that easy :p

XDA Y U SO AWESOME?? ლ(ಠ益ಠლ)
[Xposed Framework Modules] natezire71:
The way his source is set up, I can't get custom fonts to build and work. It should have been easier.
[Xposed Framework Modules] cheveguerra:
IT WORKS!!

Ok [MENTION=5402474]zst123[/MENTION], you said that the problem was the path at boot, so I tried to set the fonts path to «/data/media/0/fonts», but from the app it would not allow it, so I edited «/data/data/com.zst.xposed.perappfonts/shared_prefs/main.xml» and set it there, and after reboot IT WORKS, now I can use the fonts it loads from the fonts directory, in most of them I had to set the «force» param, but not on all of them.

The only problem now is that IF I open the perAppFonts app, it resets the path to «/mount/sdcard/fonts», it will continue to work fine because it already loaded the fonts at boot, but if I reboot, it will try to use again the wrong path, and I need to set it manually again and reboot, BUT if I do not open the perAppFonts app, it sets the fonts fine and it does not reset the path.

So now if you could only please make it so it does not modify the main.xml every time the perAppFonts UI runs, or if directly from the app UI it could be set to «/data/media/0/fonts»

I'm running a GS3 with android 4.4 and Omnirom and after setting the path manually, everything works as advertised! :good:

Edit: The path «/data/media» for the sdcard is implemented in most —if not all— of the recent Samsung models, I don't know if it is valid for other brands.

Best regards
[Xposed Framework Modules] Ainnir:
I tried the above and set the path manually to /data/media/0/fonts on my S4 and it works perfectly. The app does not override the xml and it persists through boot.
[Xposed Framework Modules] dimm0k:
would like to change the font for the actual contents of e-mail messages... is this possible? changing the font for the e-mail app looks like it only applies to the font used for the e-mail app and not what's inside each physical e-mail.
[Xposed Framework Modules] davidroid1:
Lol

Edit main.xml Data/media/0/fonts

Working in htc one

Thanks

Enviado desde mi One mediante Tapatalk
[Xposed Framework Modules] dimm0k:
where do I find main.xml and would this change only the email contents only or does it change it globally?
[Xposed Framework Modules] atemkevin:
this is simple way to change font

great sir :good:
[Xposed Framework Modules] zst123:
Enable "Force Fonts".

If it still doesn't work, it means the email app is rendering the fonts directly from the system font folder. In that case, there is nothing we can do other than using flashable zip fonts

It seems like you are right! :good: However, « /data/ » is not accessible without root access. I'll probably add in soon in the next update. Also, I thought of an idea to detect the folders that are visible at boot (using Xposed hooks) and then indicate it on the folder chooser. If it goes out well, I'll also add it in the next version.

Thanks a lot!
[Xposed Framework Modules] cheveguerra:
Hi there,

I thought that to install xposed framework it was necessary to have root, and since this is a module for the xposed framework to use it you should have root already!

Best Regards

---------- Post added at 10:15 AM ---------- Previous post was at 10:10 AM ----------

Hi Ainnir,

Yes, the "data/media/0/fonts" directory persists after reboot, but in my case if I open the app to add some app it resets the fonts dir, as if it checks if the configured dir is available and if not just sets it back a to a default.

Best Regards

---------- Post added at 10:21 AM ---------- Previous post was at 10:15 AM ----------

Hi [MENTION=5687667]dimm0k[/MENTION],

The file is in this path:

«/data/data/com.zst.xposed.perappfonts/shared_prefs/main.xml»
[Xposed Framework Modules] ubuntujason:
Hey all~

So I scanned the thread, and didn't see anything on this question I have. I could have missed it though [15 pages, not the most I've seen but still a lot lol]

background: we rooted one of my best friends samsung phones, then changed the font and got stuck in a boot loop. after researching we learned it was common, something with samsung and how the stock rom looks for specific files [for the font] etc.

question:

I have a galaxy s3 running CM 10.2 [android 4.3] and would LOVE to change some fonts. On a per app basis [hence wanting to use this mod]

has anyone tested it on an s3 in general? what about running CM 10.2? What about that combo? I don't want to soft brick the phone if I can help it ... I hate restoring NANDroid backups lol

Thanks!

~j
[Xposed Framework Modules] natezire71:
If you're using the latest Xposed, you can just disable Xposed if you softbrick the phone. There should be a "Disable-Xposed.zip" installer in the root of your sdcard; also, you can long-press some combo of buttons to disable Xposed on boot. More on that here
[Xposed Framework Modules] ubuntujason:
Well now, that's a great suggestion. Something I didn't even think about lol, thanks!
[Xposed Framework Modules] zenosteam:
in main.xml what should i change exactly ? thanks
[Xposed Framework Modules] cheveguerra:
You have to modify the "folder_font" tag, it says:

"/sdcard/Fonts"

and you have to change it to:

"data/media/0/fonts"

It seems to be working on:

SGS i9300

SCH-I545

htc one

I guess this path it should work on most of recent android phones

Best Regards
[Xposed Framework Modules] RadarNyan:
At first I can see my custom fonts on /sdcard/fonts in the list and have their previews but can't get them working in any apps, thought this module doesn't work on my app/rom so tried different apps and during the process find that build-in fonts works fine. So checked all posts in this thread and found some useful information from zst123's and cheveguerra's posts:

Oh... so that's why all my custom fonts doesn't work (I'm running 4.4.2 CM11)

So I just created a folder under /data/ (since I can't find any linked directly to my sdcard) and put all my custom fonts there, then edited /data/com.zst.xposed.perappfonts/shared_prefs/main.xml to that folder, after reboot it WORKS. Thank you guys.
[Xposed Framework Modules] dankoman:
congrats on making the portal, buddy!
[Xposed Framework Modules] natezire71:
Too bad this module doesn't work properly...
[Xposed Framework Modules] Random Username:
[MENTION=1768997]cheveguerra[/MENTION]'s hack works fine on my Xperia Z1 Compact, thanks for the tip! And the font folder doesn't change for me :)
[Xposed Framework Modules] K-alz:
Is there any way I can add the fonts I want, not the ones already come with the app? I have a file with all kinds of fonts apks and I chose it, but still didn't show. Is there a specific kind of files(fonts) I need to download so they can show up in fonts menu? Thank you.

from my 3rd note...!
[Xposed Framework Modules] Random Username:
You need TTF fonts :)
[Xposed Framework Modules] K-alz:
No idea what that is, but I'll look it up. If you wanna make it easier for a brother, I'd appreciate it. lol

from my 3rd note...!
[Xposed Framework Modules] Random Username:
Here is the link to the fonts mentioned in OP: https://docs.google.com/file/d/0B_BCUzxx-leRcUhLZnlzN2FsWmc/edit

You can just extract it and move the fonts you want onto your phone.

Other locations where you will find fonts is the C:/Windows/Fonts folder and the Internets ;)
[Xposed Framework Modules] K-alz:
Thank you very much. You da man.

from my 3rd note...!
[Xposed Framework Modules] K-alz:
Sorry to bug you again. I pushed some of the TTF files to system/fonts and they're still not showing in the app's(font per app) menu. Am I doing something wrong?

from my 3rd note...!
[Xposed Framework Modules] Random Username:
You need to open the app, go to settings, and there you can set the directory where to put the fonts! But to get the fonts working, that's another thing...

You could wait for a fix or you could try this:
[Xposed Framework Modules] K-alz:
Ok so here is data/data/com............main XML. What did the guy edit in it? I wanna do the same. Which part should be changed?

from my 3rd note...!
[Xposed Framework Modules] Random Username:
OK, just change "/storage/sdcard0/Download/Fonts" to "/data/media/0/Download/Fonts", save and reboot. I can not guarantee it, but it worked for me.
[Xposed Framework Modules] K-alz:
I did it and it changed in settings like this

But when I try to choose the fonts I've placed into "fonts" which are Arial and sonysketch, they don't show up. I still get whatever came with the module.

Man, I'm sorry if I'm making a long discussion out of it. I can just wait for a fix or something.

from my 3rd note...!
[Xposed Framework Modules] SherlooSkye:
cant use other fonts

Good day to all. I cant seem to use other fonts except for those that are bundled with the app. Followed the steps in loading other fonts and applying reapplying them.:silly::confused:

Am I doing something wrong????

Sony Xperia z1 c6903 stock.757 rooted.
[Xposed Framework Modules] Random Username:
Are you sure you chose the correct folder, in your case /sdcard/Download/Fonts?

I have put my fonts in the folder /sdcard/Fonts, so I changed the directory in the xml file to /data/media/0/Fonts, and everything works.
[Xposed Framework Modules] K-alz:
yes i did, but I'll recheck.

OK it worked. Thanks so much for helping.

from my 3rd note...!
[Xposed Framework Modules] LubbeSGS:
Hi!

I can confirm that I experience the same bugs... using stock 4.3 SGS3.

I am only able to apply the pre-loaded fonts that came with the app.

For all other fonts, I have tried the .ttf files in the default internalSD Font directory. The App correctly lists them all, but they never get applied successfully.

I then moved the folder to the externalSD and changed the directory within the app, but same problem: the app correctly lists the fonts in the folder, but they are not being applied.

Hope for a fix a soon as this module is really great!!
[Xposed Framework Modules] hamsup1o:
Could you please tell me how you changed the keyboard font? Or are you using a different keyboard app? I can't seem to get the font to change on stock keyboard. I'm also on a Note 3. TIA
[Xposed Framework Modules] K-alz:
it comes with my ROM. I'm using dynamic ROM for AT&T galaxy note 3. I have the apk for it if you think it could work on whatever phone you're using. Also, you CAN change the keyboard font by either using kii keyboard in the play store. Or through this font per app module. You just need to go to the list of apps and pick Samsung ime then choose a font for it.
[Xposed Framework Modules] hamsup1o:
thanks for the detail. it appears the rom is using a swype beta and google keyboard. PerAppFonts does not appear to work on the stock samsung keyboard.
[Xposed Framework Modules] Lord Childe:
Like others I can get just the stock fonts to change, even though user fonts are displayed and applied. The user fonts were on external storage, so I copy/paste them into the system font folder using Root Explorer, but still only the systems fonts are greyed-out or active in PerAppFonts. Only the font weight can be changed (in a few apps) when applying user fonts.

Still, switching from the boring system font to the more formal Serif adds a touch of class - though it's not universally applied in some apps, sub-sections stubbornly refuse to change.
[Xposed Framework Modules] droid_cyborg:
does it work on Android 4.4.2??
[Xposed Framework Modules] Rumman Shaikh:
Thanks a lot for the workaround, Finally it's working!! :D

What I did:

1) copied all the fonts to system/fonts with correct permissions (rw-r--r--)

2) set the path in

/data/data/com.zst.xposed.perappfonts/shared_prefs/main.xml

To

system/fonts

3) Reboot

Result: All fonts applied successfully, but Path does revert back, after opening Per app fonts app,but fonts still work!:)

XDA Y U SO AWESOME?? ლ(ಠ益ಠლ)
[Xposed Framework Modules] XieTzu:
Helo! First of all, congratulations for your great work! A suggestion: I would like to see the app list sorted alphabetically, like now, but with the configured apps first. Also I think that Force setting for fonts can be an option that can be set in the main settings. Almost all apps I've tried to change the font, I've needed to change this setting.

Enviado desde mi bq Aquaris 5 HD mediante Tapatalk