[How To] Manually Change System (And Other) Fonts - Motorola Droid RAZR

[FONT=verdana,geneva,sans-serif]Hello all, I'll start this off with the usual...[/FONT]
[FONT=verdana,geneva,sans-serif]If you break your $!#7, it ain't my fault! No one twisted your arm here. [/FONT]
[FONT=verdana,geneva,sans-serif]Anyway, I've noticed a few instances in these forums where someone will have questions about changing fonts so, I thought I would reprise my old[/FONT]
[FONT=verdana,geneva,sans-serif]Sense 3.0/3.5 Thunderbolt tutorial and adapt it to our RAZRs and MAXXes, for those who would like to know the ins and outs of it. This will likely work for many devices in general and, I'm fairly certain it will work for both the CDMA/xt912 and the GSM/xt910 RAZRs. I can't guarantee this though so, check for similarities on your GSM device before diving in.
Of course, it's not necessary to go the manual route but, I think it's beneficial to anyone in the sense that it can give you a slightly more intimate understanding of how things work behind the scenes, AND it will allow you to show more consistency, when changing your fonts, than you would while using an app such as Rom Toolbox or the more specialized font changing apps.[/FONT]
[FONT=verdana,geneva,sans-serif]A quick warning here, before you get started:[/FONT]
[FONT=verdana,geneva,sans-serif]You SHALL find yourself in a bootloop if you fail to follow instructions!![/FONT]
[FONT=verdana,geneva,sans-serif]But, this is absolutely nothing to worry about, as long as you're prepared. Create a backup in SafeStrap (or whatever recovery applies in your case) prior to moving forward, if you haven't already. Should you find yourself in the bootloop, of which you were warned, there are merely two things you need to do:[/FONT]
[FONT=verdana,geneva,sans-serif]1. (And this is HUGELY important) Shut the hell up! I hear you blaming me! I promise, YOU screwed up! lol[/FONT]
[FONT=verdana,geneva,sans-serif]2. All you need to do is to perform an advanced restore from SafeStrap. Simply restore the System partition and don't worry about anything else. This should take less time than a full restore, which is unnecessary here.[/FONT]
[FONT=verdana,geneva,sans-serif]So, here we go...[/FONT]
[FONT=verdana,geneva,sans-serif]You'll need a root-enabled file explorer to do this. Root Explorer is my old stand-by but, Rom Toolbox also has one included. Another excellent option (coincidentally, a FREE option) is ES File Explorer. Any of these will work fine here.[/FONT]​
To begin, I'll give you an idea of what you'll see in the "System/fonts" folder, as well as, offer an explanation for the purpose of the ones I know.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
​
AndroidClock.ttf = Stock Digital Clock Widget & Dock/Desk Clock ("Clock" in App Drawer).
AndroidClock_Highlight.ttf = Lock Screen Clock.
AndroidClock_Solid.ttf = Unsure of its purpose.
Clockopia.ttf = Former Stock clock font but, seems unused by the system in Android 4.0+.
DroidSans.ttf = Apparently unused in Android 4.0+. System font from previous Android versions.
DroidSans-Bold = Apparently unused in Android 4.0+. Bold system font from previous Android versions.
Roboto-Regular.ttf = This is the one always referred to as the "System Font." It yields the most noticeable results and, is the one all the font changer apps alter. Affects almost all text on your device.
Roboto-Bold = The bold version of Roboto. Not seen everywhere but it is seen. Opening your Gmail app to an email in your inbox will allow you to see Regular and Bold in the same occurrence. The sender's name will be in bold and their address will be in Regular. I recommend changing if you have a bold version of your replacement font.
Roboto-Italic = Unsure of its frequency of use but, it's not often. However, if you have a matching Italic font, it can't hurt to use it.
Roboto-BoldItalic = Unsure of its frequency of use but, it's not often. However, if you have a matching Bold Italic font, it can't hurt to use it.
There are also various other languages of the Roboto font in the "System/fonts" folder. If a particular language is your default, I'm sure it's obvious what adjustments you would need to make with regards to font replacement.
Now that you have an idea of the fonts you may want to replace, you've reached a crossroads. If you ONLY feel the need to change Roboto-Regular, then you may want to consider aborting here and using one of the apps.
If however, you want more, this may be your thing. Here's what you do next. And it doesn't have to be done this way precisely but, I've found it to be much simpler than the alternatives.
1. You'll want to open your file explorer and navigate to the root of your SD-Ext card. Here you'll create a folder. Name it something you'll remember. It will contain copies of your personal fonts that you'll be wanting to use - just the ones which correspond to the System fonts you wish to be changed. Make the copies of your fonts and place them in this folder.
2. Re-name your fonts to PRECISELY match the names of their System font counterparts. P-R-E-C-I-S-E-L-Y!
IMPORTANT NOTE: Android DOES NOT recognize fonts with the "otf" or "open type font" file extension. It ONLY recognizes fonts with the "ttf" or "Truetype Font" file extension. In my experience though, you may simply change "otf" to "ttf" while re-naming them and they'll work fine.
Just so we're clear, here's an example.
If you're replacing Roboto-Bold.ttf,
with a font named Neutraface-Bold.otf,
you don't JUST change it to "Roboto-Bold.otf". You change it to "Roboto-Bold.ttf"​
3. Now that you have all your fonts re-named to match their System Font counterparts, it's time to multi-select them all and either copy or move/cut (COPY is safer).
4. Navigate to the System folder, which is ABOVE the root of your SD card in the hierarchy. Within this folder, you'll find the "fonts" folder. Make sure your file explorer is set to "R/W" or "Read/Write" rather than the "RO" or "Read Only" setting. Once you've done this, paste your fonts within the "fonts" folder. When it asks you, select the box that says something to the effect of "do this for all" then allow it to overwrite the existing files.
​
5. We're almost there now! Next thing to do is to change permissions (Usually a long-press option) for each of the pasted font files. Right now their permissions read something like this - "rwxr-x".
It needs to read like this - "rw-r-r".
Bringing up the permissions options will probably look like nine check boxes arranged neatly in a square or rectangular pattern. That's three rows of three boxes.
​
Currently it looks like this:
x= a check
o= unchecked
o o o
x x x
x o x
OWNER= No Permissions
GROUP= Read and Write and Execute
OTHERS= Read and Execute
It needs to look like this when you're done. And it needs to be done for EVERY file you pasted in this folder.
x x o
x o o
x o o
OWNER= Read and Write
GROUP= Read
OTHERS= Read
6. Reboot and enjoy your triumph over The Man! :victory:

great work... thanks....

This might be exactly what I've long been searching for.
Question. I have fonts I've downloaded. Can I rename a regular typeface font to "bold" and replace roboto-bold?

redheadplantguy said:
This might be exactly what I've long been searching for.
Question. I have fonts I've downloaded. Can I rename a regular typeface font to "bold" and replace roboto-bold?
Click to expand...
Click to collapse
That should work just fine, redhead. It isn't too picky about the fonts you actually use. It mainly cares only about whether you name them appropriately for your intended purpose. Basically, you can name your fonts in whatever combination you like, as long as you use Google's established naming convention and, you understand that whatever the font is, renaming it will do only just that. It will not change the type of font in any way. Bold will not change to italic simply because one renames it, etc. With that understanding, go for it my friend.
Sent from my XT912 using Tapatalk 2

c_live_lee said:
That should work just fine, redhead. It isn't too picky about the fonts you actually use. It mainly cares only about whether you name them appropriately for your intended purpose. Basically, you can name your fonts in whatever combination you like, as long as you use Google's established naming convention and, you understand that whatever the font is, renaming it will do only just that. It will not change the type of font in any way. Bold will not change to italic simply because one renames it, etc. With that understanding, go for it my friend.
Sent from my XT912 using Tapatalk 2
Click to expand...
Click to collapse
Hmm, tried that and went into soft brick.
Restored fine, but i REALLY want to change bold font. It doesn't match the rest of my theme.
Anything i should double check?

redheadplantguy said:
Hmm, tried that and went into soft brick.
Restored fine, but i REALLY want to change bold font. It doesn't match the rest of my theme.
Anything i should double check?
Click to expand...
Click to collapse
Hmmm... I'm honestly not sure here. I really expected it to work fine. Have you only tried it the one time, or more than once? I would simply double check to make sure all is compliant and try it again. If it still doesn't work, I'm sorry, but I'll be at a total loss.
Sent from my XT912 using Tapatalk 2

Bootloop
I programed your tutorial and i got bootloop. i want to know- when we got bootloop, and in my case what i am doing wrong-
os.writeBytes("chmod 777 /system/fonts/DroidSans.ttf\n");
os.writeBytes("rm -r /system/fonts/DroidSans.ttf\n");
os.writeBytes("dd if=/sdcard/AndroPolyGlot/DroidSansBackup.ttf of=/system/fonts/DroidSans.ttf\n");
os.writeBytes("chmod 644 /system/fonts/DroidSansFallback.ttf\n");

Zer0bee said:
I programed your tutorial and i got bootloop. i want to know- when we got bootloop, and in my case what i am doing wrong-
os.writeBytes("chmod 777 /system/fonts/DroidSans.ttf\n");
os.writeBytes("rm -r /system/fonts/DroidSans.ttf\n");
os.writeBytes("dd if=/sdcard/AndroPolyGlot/DroidSansBackup.ttf of=/system/fonts/DroidSans.ttf\n");
os.writeBytes("chmod 644 /system/fonts/DroidSansFallback.ttf\n");
Click to expand...
Click to collapse
Sorry you're having issues. All that stuff at the bottom of yiyr post isnt telling me a whole lot though. Can you describe for me, step by step, how you went about the process?

Procedure
c_live_lee said:
Sorry you're having issues. All that stuff at the bottom of yiyr post isnt telling me a whole lot though. Can you describe for me, step by step, how you went about the process?
Click to expand...
Click to collapse
Let me explain you the whole procedure. I'm just following your procedure explained above. Mounting system in Read-Write mode and then changing permission of font file in "/system/fonts", then replacing system font with my font, and adding permission to replaced font to 644.
Process process = Runtime.getRuntime().exec("su");
DataOutputStream os = new DataOutputStream(process.getOutputStream());
os.writeBytes("mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system\n");
os.writeBytes("chmod 777 /system/fonts/DroidSans.ttf\n");
os.writeBytes("rm -r /system/fonts/DroidSans.ttf\n");
os.writeBytes("dd if=/sdcard/AndroPolyGlot/"+fontToChange+" "+"of=/system/fonts/DroidSans.ttf\n");
os.writeBytes("chmod 644 /system/fonts/DroidSans.ttf\n");
here i'm replacing DroidSans.ttf, and after rebooting the device, it goes to bootloop. but if i'm following the same procedure with DroidSansFallback.ttf, devices reboot normally and that font will be supported.
Problen is only with DroidSans.ttf and DroidSans-Bold.ttf. Please help me.

i need this font tutorial tq

thanks a lot, it really works

lectricas said:
thanks a lot, it really works
Click to expand...
Click to collapse
I have a question.
I have a font i'd like you use. In windows, i can set it to be bold, bold with italics, etc. etc.
Does android not do the same thing automatically? Would i have to put together a sample of these already bolded and italicized to get it to function properly?

Nooblit said:
I have a question.
I have a font i'd like you use. In windows, i can set it to be bold, bold with italics, etc. etc.
Does android not do the same thing automatically? Would i have to put together a sample of these already bolded and italicized to get it to function properly?
Click to expand...
Click to collapse
No. Android will not allow the changing of fonts, between italic, bold, etc, on the fly. If you do want to use one of those for your font in Android, you'll need to go to where ever you got the font from which, I assume in your case, would be Windows. Find the font folder in Windows and look for the name of the font you wish to use, except look for one with "ital", "bold", "boldital" or something similar appended at the end of the name. Each version of a font has its own font file, in my experience.
Sent from my DROID RAZR using Tapatalk 2

Sorry forboff topic but is there a way to change the icons? I mean in the settings..
Sent from my XT910 using xda premium

Steven87 said:
Sorry forboff topic but is there a way to change the icons? I mean in the settings..
Sent from my XT910 using xda premium
Click to expand...
Click to collapse
There is no way in settings, Steven. You can go to the Play store and pick up Desktop Visualizer, which will allow you to place icons of various sizes and shapes on your home screen or, you can run pretty much any Home replacement app, such as Apex, Trebuchet, Go Launcher, Launcher Pro, ADW Launcher, etc. I believe they all allow for icon replacement. Some may require the paid version though, to add that feature. But don't quote me on that.
Sent from my DROID RAZR using Tapatalk 2

ROM Toolbox !
Just use ROM Toolbox, use it almost every day. It also allows u, beside the hole bunch of features, to change system fonts. U can download some from their server or use ur own ones from the sd-card.

"Of course, it's not necessary to go the manual route but, I think it's beneficial to anyone in the sense that it can give you a slightly more intimate understanding of how things work behind the scenes, AND it will allow you to show more consistency, when changing your fonts, than you would while using an app such as Rom Toolbox or the more specialized font changing apps." - from the OP. This thread isn't meant for anyone who ONLY wants to change one font on their device. It's meant for those who wish to A: change multiple fonts and/or B: learn a little about their device.

Thanks
Thanks a lot for How-To guide.

Will it work on CM10.1 JB 4.2.2?
Please throw some light if anyone has tested on the aforementioned ROM. Thank you.

c_live_lee said:
"Of course, it's not necessary to go the manual route but, I think it's beneficial to anyone in the sense that it can give you a slightly more intimate understanding of how things work behind the scenes, AND it will allow you to show more consistency, when changing your fonts, than you would while using an app such as Rom Toolbox or the more specialized font changing apps." - from the OP. This thread isn't meant for anyone who ONLY wants to change one font on their device. It's meant for those who wish to A: change multiple fonts and/or B: learn a little about their device.
Click to expand...
Click to collapse
nice write up there.. ive not used it but based on my experience seems to be right i believe, although i did used to create a zip file to flash (seen as i had a boot recovery) cause for me it made things easier plus didnt have to do the permission fix. still i like the fact that your helping people to understand things better.. keep it up! :good:

Related

[M2D 2.0 editor] M2D reFLUSH v0.2 (project stopped)

People were having too many problems with this, so I decided to stop the project, sorry everyone.
--------------
This small tool is not trying to competing with the excellent M2D Customizer by MPenguin14!
I just made it because theres currently no versions of M2DC that works with the latest M2D.
And, even though M2DC is open-source, I dont know how to programm in that language, so I tried to mimic what it does with flash + mortscript.
It enables, disables and rearranges the tabs:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
To use:
--------
Make sure your device is QVGA!
Backup your system first, just in case.
Install Flash 7, if you dont have it already.
Install Mortscript, if you dont have it already.
Install the attached CAB.
Run my app.
Click to enable/disable tabs, drag to reorder them.
Red text means the tab is disabled, note that some tabs NEED to be disabled for M2D to run!
The listing is strange, as is in 2 columns, Ill have to find a better way of reordering the tabs in the future (any ideas?).
Save your settings.
Wait a couple of seconds, M2D will restart itself.
Enjoy.
What's new:
------------
Reads saved tab settings.
Change main softkeys.
Change Launcher tab grid (rows X columns).
Added M2D restart shortcut (usefull for skinners).
Notes:
------
The arrow is NOT pointing to cancel, it just means the list on the right continues from there.
It does not use or read any of your previously changed xml data, for now it always starts from its own default.
It creates a backup in \Windows\M2Dr\backup of the last XML changed, just in case you need it back.
You can install the app anywhere, but it always creates some temp files in \Windows\M2Dr that take about 200kb in the device (backup included).
Some tabs NEED to be disabled for M2D to run!
If the app is stuck in a screen reading "If you can read this you need flash 7", guess what, you only have flash lite. ;P
No widescreen version, my SWF to EXE doesnt support it, sorry.
Installing old M2D skins wont work, because some files arent the same.
I wouldnt advise more than 6 columns and a reasonable ammount of rows on the LAUNCHER tab, I have no idea of its limits.
Dont use this with the old M2D, it WONT work.
Old M2D(ct) thmes wont work also, they all have to be remade.
I attached here a QUICK-FIX, in case your M2D cant load, just copy the file into the windows folder and restart M2D.
How can I help?
---------------
Do you know a way of converting PNGs to JPGs with a simple command line? Or maybe a simple EXE that converts all the files in a folder.
How can I enable a TSK theme without going thru the settings?
How can I create a list of all the files inside a folder and its subfolders? (The FOREACH command on Mortscript only reads one folder)
To do (if M2DC doesnt get updated first, hehehe):
-------
Install new skins with a new extension name.
Change background (real M2D background, not just the HOME tab wallpaper).
Backup/restore XML settings.
Browse button for the softkeys choice (dont know if its possible)...
Nice,
Thanks for your work
Thanks for your work...
This is something i was waiting for a long time.
I hope you have succes...
I will be around this threat
hey twolf great app, no surprise it came from you
and in terms of ordering the tabs would it be possible to add a scrollable list, just an idea
Thanks, I wanted to do a horizontal scroll tab, but am having a lot of bugs with it, also we dont see all the tabs at once, and that makes it hard to order...
Updated v0.2:
Now to work on the skinning option.
any way for this tool to be able to add links and shortcuts to the internet tab in the future? great app twolf!! all your work is mind blowing
the thing mess up my m2d.. now i cant launch the m2d, have to use windows default home
incubus26jc said:
any way for this tool to be able to add links and shortcuts to the internet tab in the future? great app twolf!! all your work is mind blowing
Click to expand...
Click to collapse
Thanks, it should be as simple as adding those registry options, its not in my to-do list because I wanted to finish the most basic things first, but I believe I can do that after.
theraventhatdied said:
the thing mess up my m2d.. now i cant launch the m2d, have to use windows default home
Click to expand...
Click to collapse
What M2D version do you use?
You have your previous XML on Windows\M2Dr\backup just copy it back to the windows folder...
ALSO....
Added the How can I help? area on the first post, with stuff I'm stuck with.
If anybody knows any solution, please help.
theraventhatdied said:
the thing mess up my m2d.. now i cant launch the m2d, have to use windows default home
Click to expand...
Click to collapse
twolf said:
What M2D version do you use?
You have your previous XML on Windows\M2Dr\backup just copy it back to the windows folder...
Click to expand...
Click to collapse
Yes, it messed up my M2D too. And I'm using version 2.19191432 as cooked by Miky6682 in his ROM (I believe this is the new version you talk about). And btw, I had only rearranged the tabs to begin with.
Copying back XML from Windows/m2dr/backup also did not help. You admitted yourself that your M2D reFLUSH does not take into account previously edited XML and creates its own backup point. I had to restore from the XML I had manually saved earlier.
Any ideas why this could be happening? M2D reFLUSH could be a fantastic tool if I can get it to work for me.
The problem is that mortscript cant "read" XML files properly, so I had to separate the xml into severall parts to be able to rebuild it with my changes.
You can see it on \Windows\M2Dr\part*.txt
Its separated into all those txt files:
Part 1 is the image list
Part 2a and 2b are created by my M2Dr flash file on save, its the tab list and order. Its separated in two because flash cant save that many characters on a text file) some characters are incorect but mortscript fixes them.
Part 3a is the end of the tab list and the beginning of the launcher settings (I moved it to the top so that it was easier to change).
Part 3b is the middle of the launcher tab settings.
Part 3c is the end of the launcher tab settings and the rest of the hole XML.
So, for now, to use M2Dr, all you need to do is make sure the file \Windows\M2Dr\part3c.txt is represented the same way in your XML.
:/
Tricky, but it will work.
I am using 2.1919.1432 as cooked by Miky6682 too. I am having the same problem. After I enable the "Launcher". The M2D has no longer work. Is there any wany to fix it?
I added a quick-fix in the first post with the original XML.
Just copy it to the Windows folder.
Sorry about that.
twolf said:
I added a quick-fix in the first post with the original XML.
Just copy it to the Windows folder.
Sorry about that.
Click to expand...
Click to collapse
quick fix didnt wrk for me. u have to hreset now. id advise ppl to stay clear of this app till u sort this bug out.
No ned to hard reset...
All this does is change the xml I attached and the softkeys (IF you changed any).
You did extracted the xml from the attached zip, copied it to your Windows folder and resetted, right?
If that didnt fixed it, you can always reinstall M2D, or simply remove your softkeys settings with M2DC.
But this really shouldnt be necessary, the xml fix should resolve everything.
:/
All this app thouch is the xml and the softkeys, nothing more.
I did tested it before releasing it, I know it will only work on QVGA for now, but that should be the only problem.
djtosh said:
quick fix didnt wrk for me. u have to hreset now. id advise ppl to stay clear of this app till u sort this bug out.
Click to expand...
Click to collapse
Hey, no need to be so alarmed. As twolf explained, this "app" does not make any irrevocable changes. It is just a user friendly and convenient interface for editing the HTChomesettings.xml file of Manila 2D. Alternatively you can use some utility like Mobile Notepad to manually edit the xml file yourself. But thats a complicated procedure and twolf's M2D reFLUSH makes it easy for even newbies like me.
Secondly, this forum is all about developing new apps and utilities.... and testing/feedback is an inseparable part of development. If everyone "stays clear", then nothing would ever get developed.
well i am now going lose all of my data, so i will say "stay clear" so that other ppl dont suffer the same fate, the quick fix does not work and i am now screwed. dont av a go at me for being angry, im the one who is inconvenienced not you.
I am truthly sorry for your data, believe me that this was never my intention with this app...
The most that it could do of harm would be to stop M2D from starting, nothing that wouldnt be fixed easily, or at most by reinstalling M2D.
What exactly happened to your device?
Maybe if I can understand the problem better I can fix whatever this tool did or stop working on it at all... :/
Sooo... could you please explain in detail what happened to your device?
Launcher fails to change anything
Hi... First off... Fantastic. Simple and clean application.
Only thing is I cannot seem to adjust the Launcher. I set it to 4 x 4 to no avail. The only thing that happened was the icons seemed to spread out a bit but remained 6 rows and 3 cols. I tried to change anything with the same result.
Any ideas?

[Guide][MIUI] Custom Font MTZs (Super Easy!)

So, as I've promised in the MIUI thread, I'm creating a small and simple guide on how you can make your own font MTZ. Sense users, I will be creating a similar guide for you very soon.
It's not actually all that hard, and if you know me and my guides, you'll know I'm going to make an easy process ridiculously easy.
Stuff We'll be Needing:
My stock file: Download
WinRAR/7Zip/Extracting Utility
Fonts that you want to use
Notepad (or any text editor, I like Notepad++)
A few minutes of time
So to begin with, let's start with the fonts. You'll want to find a font that you like, and it may or may not look good on our screens. It will just be trial and error. Also, if you're going to want to preserve "bold" text (meaning unread items in GMail being bold), you'll need a font set that contains a bold typeface as well. Also, they MUST be in ttf format.
Let's begin.
1. Clone and Rename Our Font Files
Assuming you've already downloaded your fonts, create a folder anywhere on your computer called "Font Workshop". (You don't have to do it this way, but I suggest you do so that you can keep it organized). Then, in that folder, paste your fonts, and then create a folder called "Renamed Fonts", as I have done in the screenshot below:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Now then, as you can see, the font I have picked comes in three different variations; regular, light, and bold. Your font may not come in different variations, if it doesn't, ignore this part. If it does, think about it. How "heavy" do you prefer your fonts? The reason why we ask this question is because MIUI has two main fonts which get used the most. The regular font (Arial), and its bold version (Arial-Bold, which apps like GMail use to signify unread items).
So your use could be the following;
1) Light font for regular text, regular font for "unread" items.
2) Light, regular, OR bold for all text
3) (Most common) regular fonts for regular text, and bold fonts for bold text.
In my example, I'm going to use option 3, because it is the most common. So, for the purpose of this writing, MIUI's two main fonts are Arial.ttf and Arial-Bold.ttf. Keep that in mind as we go on.
WARNING: Your file manager may not be showing you the full file extension. If using Windows, use this guide to ensure that you have them turned on.
So, I have my 3 fonts, now I need to rename them accordingly for MIUI to understand them. I only intend on using the regular and the bold versions, so what I will do is rename "Sansation_Bold.ttf" as "Arial-Bold.ttf". I will then rename "Sansation_Regular.ttf" as "Arial.ttf". This means my finished product will tell MIUI to use Sansation_Bold anywhere that Arial-Bold is called for, and it will use Sansation_Regular anywhere that Arial is called for.
If you do NOT have a bold-specific font file, make two copies of the same font, renaming one of them Arial.ttf and the other Arial-Bold.ttf.
Makes sense? Good, let's continue.
Now that our two font files are renamed, let's put them in our "Renamed Fonts" folder.
2. Create the proper folder structure
Alright, now remember that zip I had you download before? The MIUI_FONT_MTZ.zip. Extract that somewhere on your desktop, so that we can see the files inside it, so that this is what we see in a new window:
Now, open up the "fonts" folder and paste in our renamed fonts from our "Renamed Fonts" folder.
Now, let's go up one folder, where we see the "description.xml" file. Open it up with Notepad (don't just double click it, by default .xml files will open up with Internet Explorer). I'm using NotePad++, which is why the colors look different. You don't need to download NotePad++, notepad will do the job just fine. When you open it up, this is what we see:
This is the file that tells MIUI what the theme package is for, and allows for you to easily use it from the theme manager. Fill in the names as shown (but be careful not to touch anything but the highlighted letters). So, now that you've done that, it should look something similar to this:
Once you've finished, hit Ctrl-S to save it, and close your text editor. Now before we continue, you will notice there is a "preview" folder, that is how people create the "theme preview" images that you see when browsing through your themes on your phone. For the purposes of this process, I'm not going to document how to use that (partly because you don't have any preview to put in there, and partly because I'm not 100% sure what the filename requirements are) So let's ignore that for now.
3. Create our Font MTZ and apply it!
Highlight all the files as shown, and right click on them so that we can create our archive:
THIS IS VERY IMPORTANT. When the window pops up, select "ZIP" instead of RAR, and make sure the Compression level is set to "Store". Any compression will corrupt the font mtz:
Now, once we've created the archive, we need to rename it as an mtz. Right click on it, and click "Rename". Delete the ".zip" part, and make it ".mtz", so that it looks like the screenshot below.
Press Enter. This warning will come up, saying that changing the file extension may render the file useless. Simply press "Yes".
Awesome, now that we have our MTZ, we want to drag on drop it on to our SD card. Put it in /MIUI/theme, as shown below:
Awesome, now unmount the the SD card, and on your phone (from the homescreen) press Menu > Settings > Theme. At the bottom, tap the button that says "Customize". Find the "Font" entry, and tap on it. You will see your font with the name you gave it. Tap on it, and hit Apply, and boom! There you go! All finished. You can replicate the process as many times as you want, making different fonts as you please.
BUT REMEMBER: ALWAYS REBOOT AFTER APPLYING A FONT. You will have garbled text in certain apps until you do.
My post. Just in case there needs to be further additions or corrections.
Good stuff bro!
Fixed a rather embarrassing issue
Nice tutorial, but I have a couple of questions. Why are you renaming the files to Arial? I see the part that says that substitutes one font for another, bit why Arial? Is that the default font in MIUI? What font names are usable? In my case I'm trying to replace the Chinese character set with Japanese since a few things are off if you don't. I have fonts from stock android and DroidSansJapanese.ttf but not sure with the naming scheme you've outlined what I should name it to.
Nice tutorial...........
Bootloop in MIUI V4 {SGS II}
Thanks for this guide. Are these files compatible with MIUI V4? Because lot of fonts in MIUI themes online leads to boot loop in my MIUI V4!!

[GUIDE/THEME/MOD] How to switch to Light theme [Maybe for all 4.1+ Android devices]

Hello community!
Intro:
You may not know it, but Samsung(and maybe every popular Android phone manufacturers) has a ready-to-use Light theme "pre-installed" in our devices, not only the Galaxy S Advance of course, this theme probably exists in every latest firmware for Galaxies from Samsung, including Galaxy SIII, Galaxy S2 and many more I guess, the Galaxy S4 is not an exception, which also comes in the Light version already set. I found a way to switch in this light version, and it's VERY easy. Maybe newbie-friendly too. Ok maybe not so easy but it still is as simple as adding a word. Literally, it's only adding a word! Read the "Notes:" sections at the end of the post before doing anything.
Getting to the point:
These themes exist in the framework-res.apk, specifically, in the /res/values/styles.xml
You will find different themes in there including Google's "Holo(.Dark)" and "Holo.Light". These are the basic ones, which will be used by almost every application that does NOT have it's own skin, so these applications will use the either Holo(Dark) or Holo Light.
There are three(I think) more basic themes in there including the stock Android, this one is based on Gingerbread I guess.
The other two are the Device Default and Device Default Light. These two are the ones that a manufacturer, like Samsung, can edit to give it's devices a custom and unique style.
A stock application that comes pre-installed in the software(Like SecSettings.apk, MusicPlayer.apk e.t.c.) will probably use either the Device Default or Device Default Light. This is up to the manufacturer to choose. In our case, Samsung has set most of it's applications to use the Device Default.
A small "What I am talking about":
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
How to set the Light theme to an application:
Requirements:
The application which you want to change it's theme. (I will use SecSettings.apk as an example)
apk-tool (I use APK Multi-Tool because it's very easy to use)
Notepad++
Know how to decompile/recompile
Instructions:
Decompile the .apk.
Go to "/res/values/" folder and open the file "styles.xml" with Notepad++.
Click "Find" or press "Ctrl+F".
In the "Find What :" box enter "DeviceDefault" and hit next.
Check the first result you get, mine was this:
Now, copy this ".Light" (without the "), this is the magic word!
You will paste this exactly after every "[email protected]*android:style/blabla.DeviceDefault
Like the image below:
Even if there is something after the DeviceDefault like this:
You will still paste the ".Light" exactly after the DeviceDefault like the image below:
Make sure to paste it ONLY in "parent=" lines, and in EVERY "parent=" lines. There are exceptions though, based on the .app. But don't get confused, even if you make a mistake, will be able to find it and fix it later. For now just continue the "paste" process.
Once you have finished the "paste" process, save the file and overwrite the old one.
Recompile the .apk.
That's it! Copy the .apk on your phone, place it where it belongs and set the right permissions.
Reboot, open the application, and take a taste of a light UI that your phone's manufacturer had hidden from you.
Notes:
1. I don't even know if other manufacturers like Sony do this too. If yes, then this tutorial will work for these phones too, probably.
2. Don't try this on framework-res.apk. framework-res.apk can be used too for you to change your theme to Light, but it will probably cause many graphical errors. And it also requires a different way to change the theme. I have tried it and got both good and bad results, check the second post for more information.
3. If you tried and had any errors I could use a hand, just post your compile log and myself and maybe some other people will help you if we can.
4. Modifying the framework-res.apk in a proper way will allow every stock application to be themed without having someone to edit them. Again check the second post.
5. If you find something confusing you can freely ask by posting here.
6. I am not sure about everything that I say in the "Intro:" section. It's just my theory, excuse me if I'm wrong.
7. These themes are the main reason(probably ) for the apps to have both "holo_dark" and "holo_light" variants of .png files and colors. People who have edited SystemUI.apk's and framework-res.apk's "drawable-" folders will understand what I am saying.
Here is a modded framework-res.apk, with this I managed to theme almost every stock Samsung application without editing anything except the framework-res.apk.
I am totally sure that I changed some things without thinking first. The styles.xml is big and I almost got lost. I did everything I could for now, I'm sorry.
You can flash it only on LQB firmwares, maybe only some of them. Check the screenshots to see what I have managed so far. Expect MANY UI bugs.
P.S. It's just for you to see how a Light theme would look. Don't complain about bugs on this, please.
Light Framework
Screenshots:
Great job, Koulis!
Well done!! :good:. Must have taken you quiet some time to find how to do it. :good: :good: :good:
Still people need to understand that this won't magically invert the theme to white... You'll still get loads of UI bugs, which you of course, must fix manually.
panda00 said:
Still people need to understand that this won't magically invert the theme to white... You'll still get loads of UI bugs, which you of course, must fix manually.
Click to expand...
Click to collapse
Maybe not so many bugs, but I guess there will be some.
then change the text color for holo dark to holo light
joehanh88 themed GT-I9070
joehanh88 said:
then change the text color for holo dark to holo light
joehanh88 themed GT-I9070
Click to expand...
Click to collapse
I thought of that. But I'll try another time I'm feeling lazy now.
Sent from my Galaxy S Advance
Nice mod.
If i want the google default holo theme (like nexus) thenbi should write '.holo dark' instead of '.light'??
Sent from my GT-I9070 using xda premium
I just have one note, to make this much much easier...
When pressing Ctrl+F go the replace tab and on the find space type "DeviceDefault" and on the replace space type "DeviceDefault.Light"... Then press replace all... This should replace everything in one click, I guess.
Nice post
Sent from my GT-I9070 using xda app-developers app
panda00 said:
I just have one note, to make this much much easier...
When pressing Ctrl+F go the replace tab and on the find space type "DeviceDefault" and on the replace space type "DeviceDefault.Light"... Then press replace all... This should replace everything in one click, I guess.
Click to expand...
Click to collapse
...but the OP said "Make sure to paste it ONLY in "parent=" lines, and in EVERY "parent=" lines."
and one question: How to change the text color for holo dark to holo light?
No screens in the OP
d14gvn said:
No screens in the OP
Click to expand...
Click to collapse
It's because of Photobucket. I did some mistakes. Sorry. Also, just to let everyone know, I'm back!!! Not that I'm going to do something great but I will try to think of something.
Sent from my Galaxy SIII Mini
Koulis2000 said:
It's because of Photobucket. I did some mistakes. Sorry. Also, just to let everyone know, I'm back!!! Not that I'm going to do something great but I will try to think of something.
Sent from my Galaxy SIII Mini
Click to expand...
Click to collapse
Nice article!
Hope to see the screenshots back!!!
pathuri97 said:
Nice article!
Hope to see the screenshots back!!!
Click to expand...
Click to collapse
Will reupload them later today, maybe.
Thanks!
Sent from my Galaxy SIII Mini
Apk N't Installed???
Koulis2000 said:
It's because of Photobucket. I did some mistakes. Sorry. Also, just to let everyone know, I'm back!!! Not that I'm going to do something great but I will try to think of something.
Sent from my Galaxy SIII Mini
Click to expand...
Click to collapse
Thanks for the SCREENSHOTS.
Really useful.
I followed your steps and compiled & decompiled using VTS software. (http://www.virtuous-ten-studio.com/).
Absolutely NO ERROS before after compilation.
After copying the file to /system/app with ROOT EXPLORER (with proper permissions),
When I click SETTINGS ICON - I get a message saying "Apk N't installed".
What could be the reason - any idea???
pathuri97 said:
Thanks for the SCREENSHOTS.
Really useful.
I followed your steps and compiled & decompiled using VTS software. (http://www.virtuous-ten-studio.com/).
Absolutely NO ERROS before after compilation.
After copying the file to /system/app with ROOT EXPLORER (with proper permissions),
When I click SETTINGS ICON - I get a message saying "Apk N't installed".
What could be the reason - any idea???
Click to expand...
Click to collapse
No ideas why you get a message like this. :/
Sent from my Galaxy SIII Mini
pathuri97 said:
Thanks for the SCREENSHOTS.
Really useful.
I followed your steps and compiled & decompiled using VTS software. (http://www.virtuous-ten-studio.com/).
Absolutely NO ERROS before after compilation.
After copying the file to /system/app with ROOT EXPLORER (with proper permissions),
When I click SETTINGS ICON - I get a message saying "Apk N't installed".
What could be the reason - any idea???
Click to expand...
Click to collapse
Did you copy the META-INF and AndroidManifest.xml from the original apk to the new compiled in dist? AFAIK is it like signing. When you try to install by hand do you get a parsing error?
and2 said:
Did you copy the META-INF and AndroidManifest.xml from the original apk to the new compiled in dist? AFAIK is it like signing. When you try to install by hand do you get a parsing error?
Click to expand...
Click to collapse
Thanks for the reply!
As you can see from the enclosed screenshots - no problem with the compilation and signing.
VTS is taking care of the same.
What I'm trying to do is copy framework-res.apk, systemui.apk and settings.apk from different custom ROM to current ROM.
No problem in copying and overwriting the original files of current ROM.
TAB works fine.
NO FC's.
Only thing is I'm trying to change LIGHT theme of secsettings.apk to DARK theme.
Either I get APK n't installed or FC (SystemUI.apk etc).
Again If I replace secsettings.apk from CUSTOM ROM to current ROM - works fine. NO FC's.
Might be I need to dig deeper....

(Tutorial)Lock Screen mod for Nabi 2 NABI2-NV7A

This tutorial is for lock screen modification to Nabi 2 NABI2-NV7A US or UK version although only confirmed working with US version. Although the steps would be identical for either version, just don’t have a UK Nabi 2 to test my theory.
I created this thread in hope that if anyone use this tutorial they will provide a picture of lock screen and also share their flashable zip file for the entire Nabi community. If sharing flashable zip files the naming convention has to match the firmware version as I have done below.
A couple of tools & files will be required first and I have provided links to downloads.
• 7-zip
• apkmultitool
• nabi_circle.png
• empty_framework.zip
I will start with the apk multi tool, I have to give kudos to the developer of this tool, super easy to use; if possible consider making a donation and continue supporting the development of this tool. Currently using Windows 7 64 OS so all instructions will be for Window users.
1) After download of tool, extract to the root of C:\
2) Make sure you have USB debugging checked in Nabi found in Settings\Developers options
3) Connect tablet and go C:\ APK-Multi-Tool\setup.bat and follow instruction 1 thru 3
4) After the 3 steps go to C:\ APK-Multi-Tool\other you will find the framework-res.apk & SystemUI.apk
5) Copy and paste framework-res.apk to C:\ APK-Multi-Tool\place-apk-here-for-modding now click the Scipt.bat hit enter; then option 9 Decompile apk
6) Then you will find the decompiled apk in C:\ APK-Multi-Tool\projects
The files to edit with your pictures are found here, go and replace the png files listed below.
C:\APK-Multi-Tool\projects\framework-res.apk\res\drawable-sw600dp-mdpi
A. fuhu_ic_lockscreen_handle_normal.png
B. fuhu_ic_lockscreen_handle_pressed.png
C. nabi_circle.png
D. unlock_directions.png (Optional)
The fuhu_ic_lockscreen_handle_normal.png & fuhu_ic_lockscreen_handle_pressed.png have to be 1024 x 552 px. and they both have to be the same picture.The nabi_circle.png 184 x 238 has to be replaced with a transparent.png for simplicity I have provided a download link to one. Also the unlock_directions.png is optional that file is 120 x 120 px by replacing all these files you can create your own custom lock screen mod. What I did is I renamed all my png files to default names.
If you want to change default wallpaper, which is 1536 x 1024 px
C:\APK-Multi-Tool\projects\framework-res.apk\res\drawable-sw600dp-nodpi
1. After you have edited your files; then enter the cmd and choose option 11 Compile system apk files. Then it will ask if you would like to copy additional files that you didn’t modify from the original apk in order to ensure least # of errors (y/n)
2. Enter y
3. Now go back to C:\APK-Multi-Tool\keep and delete the files you have modified then hit enter
4. You will now find a unsignedframework-res.apk file in C:\ APK-Multi-Tool\place-apk-here-for-modding
5. Place this file in different folder (example minions) rename to framework-res.apk
6. Grab the empty_framework.zip open this with 7-zip without unzipping and drag the framework-res.apk in emty_framework.zip\system\framework\drag here.
If your emty_framework.zip is only showing META-INF folder just click file top left of 7-zip and then "create folder" system repeat again and create framework folder, then open that folder and drag framework-res.apk there. 7-zip will ask are you sure you want to copy file just click yes.
If you want to modify the updater script you can extract into your computer and modify it with notepad and change the name of the lockscreen, this will be able to be read in recovery. If you don’t take this last step it will say “Installing custom lockscreen”. The updater script can be found in
empty_framework.zip\META-INF\com\google\android\updater-script
Here are a few lockscreens that are only for firmware 2.3.11 enjoy
With exception of lockorig_2.3.11.zip all have Nexus 7 2013 default wallpaper!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
lockorig_2.3.11.zip
frozen_princesses_2.3.11.zip
frozen_marshmallow_2.3.11.zip
ariel_2.3.11.zip
disney_princess_2.3.11.zip
dinosaur_2.3.11.zip
bubble_guppies_2.3.11.zip
minions_2.3.11.zip
minions_face_2.3.11.zip
mario_2.3.11.zip
pokeman_2.3.11.zip
spongebob_2.3.11.zip
super_why_2.3.11.zip
my_little_pony_2.3.11.zip
Before flashing backup entire ROM also store the lockorg_2.3.11.zip in your external card
I am not responsible for anyone bricking your kids tablets, you are choosing to do this mod!​
Sweet thanks for making this thread
Sent from my Nexus 5 using Tapatalk
katinatez said:
Before flashing backup entire ROM also store the lockorg_2.3.11.zip in your external card
I am not responsible for anyone bricking your kids tablets, you are choosing to do this mod![/CENTER]
Click to expand...
Click to collapse
So I flashed the frozen one no problem, but then tired to flash the original and it just hangs on boot loading. Have you tested flashing that zip. I just flashed the frozen back and was fine. Just a heads up.
Sent from my Nexus 4 using Tapatalk
saw429 said:
So I flashed the frozen one no problem, but then tired to flash the original and it just hangs on boot loading. Have you tested flashing that zip. I just flashed the frozen back and was fine. Just a heads up.
Sent from my Nexus 4 using Tapatalk
Click to expand...
Click to collapse
I tested the zip file in my nabi and its fine, I also replaced my lock original from my external card from my nabi to the download link.
Please re- download and try again, thanks
Hi.
I had posted this in one of the general forums since I didn't have access at the time to post in the development forums.. I'll post this here as well now that I can..
Question on the process to change the default kids mode wallpaper in the lockscreen process on the Nabi2's since moving to Jellybean.
katinatez's excellent process for the lock screen portion works fine (THANK YOU for sharing this, BTW)
End result:
I am trying to add a custom wallpaper into the apk when I change the lockscreen.
The file I am targeting is called default_wallpaper_kid.png and it is 1024x552.
The file is located in 2 folders:
framework-res.apk\res\drawable-hdpi
and
framework-res.apk\res\drawable-mdpi
I change these 2 files, recompile and follow the rest of the process as normal. Flash install onto the Nabi2 in TWRP and reboot. I still get the same default blue block kids mode wallpaper.
I've gone back and pulled the framework back off of the Nabi once I did the install and the changed wallpapers are in fact there. I can't figure out where the Nabi is pulling the standard blue block default wallpaper from since I verified that I replaced the files that I thought it should be.
I should note that I had previously changed the wallpaper during another lock screen install, so I'm stumped as to why I'm not able to change it now. And yes, I could just simply copy the wallpaper over to the Nabi and set it as wallpaper from there but it's bugging me as to why the process isn't working.
Any ideas?
Thanks in advance!
2girlzdad said:
Hi.
I had posted this in one of the general forums since I didn't have access at the time to post in the development forums.. I'll post this here as well now that I can..
Question on the process to change the default kids mode wallpaper in the lockscreen process on the Nabi2's since moving to Jellybean.
katinatez's excellent process for the lock screen portion works fine (THANK YOU for sharing this, BTW)
End result:
I am trying to add a custom wallpaper into the apk when I change the lockscreen.
The file I am targeting is called default_wallpaper_kid.png and it is 1024x552.
The file is located in 2 folders:
framework-res.apk\res\drawable-hdpi
and
framework-res.apk\res\drawable-mdpi
I change these 2 files, recompile and follow the rest of the process as normal. Flash install onto the Nabi2 in TWRP and reboot. I still get the same default blue block kids mode wallpaper.
I've gone back and pulled the framework back off of the Nabi once I did the install and the changed wallpapers are in fact there. I can't figure out where the Nabi is pulling the standard blue block default wallpaper from since I verified that I replaced the files that I thought it should be.
I should note that I had previously changed the wallpaper during another lock screen install, so I'm stumped as to why I'm not able to change it now. And yes, I could just simply copy the wallpaper over to the Nabi and set it as wallpaper from there but it's bugging me as to why the process isn't working.
Any ideas?
Thanks in advance!
Click to expand...
Click to collapse
Someone else asked this question a long time ago. I can't find that answer searching(can't remember enough words from that post), it seems something like it was already cached since it was the apk, so it didn't pick up the change. I can't remember if the solution was to wipe caches or something like that or clear some data in an app in settings. Or maybe neither and I remember nothing..... LOL.
I believe the blue block wallpaper you are talking about, is in fact the NabiMode.apk default wallpaper.
Take the NabiMode.apk decompile & go thru steps replacing with whatever wallpaper you want for kids launcher wallpaper.
You will also find Madagascar wallpaper inside the NabiMode.apk
Good luck
Thanks guys -- I'll try to poke around with it later tonight when I get home.
Appreciate the info.
2girlzdad said:
Thanks guys -- I'll try to poke around with it later tonight when I get home.
Appreciate the info.
Click to expand...
Click to collapse
Remember to make backup with twrp before you start making changes.
katinatez said:
Remember to make backup with twrp before you start making changes.
Click to expand...
Click to collapse
Yeah, I've learned to do that the hard way..
Thanks!
Well, I pulled NabiMode.apk and decompiled it and found where the kids mode wallpaper is kept. I don't know about tinkering with the apk though as the data/addon_res folders are read only and I'm not sure that I want to get into playing around with figuring out how to push to a read only folder at this point - MUCH easier to just copy the wallpaper over to the Nabi and set it.
Thx guys!
My Little Pony Lockscreen
My daughter is in a new phase, she just turned 4 years old and absolutely loves My Little Pony, so I created a new lockscreen mod.
enjoy
katinatez said:
My daughter is in a new phase, she just turned 4 years old and absolutely loves My Little Pony, so I created a new lockscreen mod.
enjoy
Click to expand...
Click to collapse
Hi any chance of getting these to work on the new 2.4 update? thanks
mjw2k11 said:
Hi any chance of getting these to work on the new 2.4 update? thanks
Click to expand...
Click to collapse
Same steps outlined in guide, just no time. It's up to you.
I don't think this member can post here yet but take a look at some 2.4 lockscreens
http://forum.xda-developers.com/general/rooting-roms/nabi-2-lockscreens-version-2-4-t2876988
Hi
BIt out of my depth with this but in updating the nabi2 from Jellybean to KitKat the lockscreen changed and it will upset my boy as he has autism. So planning to do this.
FIrstly, the apkmultitool ink seems broken does anyone have it please?
Secondly, I got the original lockscreen download as a zip in another thread from SMcC2 does that mean I can avoid a big bit of this tutorial??
Thank you for any help please.
Alex
Edit: Does me being on kitkat mean none of this will work ?

[No-Root][Fonts][EMUI 4.x & 5.x] Request fonts & Step by Step Guide to make your own

[No-Root][Fonts][EMUI 4.x & 5.x] Request fonts & Step by Step Guide to make your own
Fonts for EMUI​Important Information​
This post will keep growing. It will start will just two fonts: "Open Sans" and "Roboto" (yes, I know Roboto is the default font of Android 4+, but here it is in case you want it). This will work in a very simple way: You suggest the font for me to add and I add it (the simple requirements are written below).
By the way, this post didn't have a guide in the start. Thanks to @leonardus_magnus for suggesting it.
Click to expand...
Click to collapse
If someone is using EMUI 3.x please tell me if any font doesn't work. I will do my best to fix it, but without any guarantees because I don't have any device with that version to test.
Click to expand...
Click to collapse
Screenshots of the fonts posted by me
Only the fonts that have the Bold style "naturally" will have their title in Bold.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Using custom fonts on EMUI 5
If you have EMUI 5, you will need to also follow this guide to use any font. (you don't need this for EMUI 4)
You will need:
A computer, with Windows or Linux (can't say anything about MACs)
Android SDK Platform Tools (you actually just need ADB from there). Get them here: https://developer.android.com/studio/releases/platform-tools.html
Your device drivers. They will be automatically installed when you connect your Huawei / Honor smartphone to your computer and install HiSuite.
After getting all that stuff, lets go!
First of all, you need to activate Developer Options. To do that, Go to the Settings, scroll all the way down, and go to "About phone" and click some times on "Build number".
After you have activated them, you will find an extra option in the Settings menu, called "Developer Options". Go there.
Now, activate USB Debugging (you can freely deactivate it, and I recommend it, after doing this guide). Just scroll down until you find it.
Connect the smartphone with a cable to your computer.
Now you can go to where you downloaded the Android SDK Platform Tools and extract them to where you want.
Open a Terminal / Command Prompt and navigate to the extracted folder. Use the "cd PATH" to navigate there.
TIP:
In Windows you can just Shift-Right Click and a "Open PowerShell Window here" / "Open a Command Prompt Window here" will appear.
If it is PowerShell, just type "cmd" in it and you can keep going as usual.
- - -
For Linux, some launchers already include that option by just Right-Clicking, no need to add the Shift complication...
Click to expand...
Click to collapse
In the Terminal / PowerShell / Command Prompt / whatever you want to call it, type in "adb devices". A notification on your smartphone should appear, asking to authorize USB Debugging. Allow it.
Type it again. If a device appears, good job!
Now, send this command: "adb shell settings put system hw_hide_font_style false". This will un-hide the Font Style option in Settings.
Now, reboot your device and it's done! Congratulations! Now you can use custom fonts on your device by going to Settings > Display > Text / Font Style!
How to make your own font
First of all, sorry for the wall of text. In this very first version of the guide I just want to make sure it explains everything nicely. Further on, I will add images and make this better. (I'm not full-time at XDA )
If for some reason you don't want me to make the font or you want to make it yourself, then you have come to the right place!
The requirements are:
The font files (in TTF format. If that format isn't avaiable, then you can try some software of website to convert, but while it can work, there is also a chance it doesn't);
A computer (I recommend Windows or Linux);
Some images to preview your theme (JPG only!)
A file manager (I recommend 7zip or WinRAR);
Any text editor, like Notepad++ or Visual Studio Code (I use this one).
The base files I made, so everything is a lot easier! You can download them here.
(I added a CC BY license. Simply, you can do whatever you want with these files / package, including for commercial purposes, but you need to credit me, with my name and a link to this post).
After downloading the package, you have have all the required files there, you will find everything you need there, including a smaller guide if you miss something here.
You can see some files and folders, like "description.xml", "framework-res", "icons", "preview" and "fonts. (these are the required files to make a theme with only a font. If you want to make a full theme, I recommend another guide for that and this one at the same time)
Here is a brief explanation of whay they do (further explanation is below):
"fonts": (FOLDER) Here you store all the font related files.
"preview": (FOLDER) The folder will include all images to preview the theme, in the themes app
"description.xml": (FILE) The name says it all. Here you write everything to describe the theme, from its name to its version. (I wrote in the file exactly what you need to do)
"framework-res": (FILE) This file is only used for complete themes. You don't need to touch it (but do not delete it! The theme won't work without this.)
"icons": The same as "framework-res". As the name suggests, it is for icons.
Ok, now stop describing the files and explain what I do with them!
There you have it!
In the "fonts" folder there is a lot of fonts styles (in my package I included Roboto, since it is Android default font).
When you download the fonts you want to use, you just need to move them all here and rename their styles to Roboto names.
If you don't have a style, then just don't use it.
TIP:
If some font includes a style named "Ultra" or "Extra" Bold, then it is probably the "Black" style of Roboto.
Also, copy any style of the font and rename it to "DroidSansChinese.ttf" (I recommend using the Regular style). I'm not very sure why its needed, but with my knowledge I can say its probably some Android ROMs use that font instead of Roboto, and EMUI can be one of those.
Click to expand...
Click to collapse
The preview image for the font (the one that appears before you apply it in the Settings) is named "pic_font_default.jpg".
I recommend using a 500 px x 520 px resolution.
The "preview" folder includes all the images that will preview your theme in the themes app.
I included the
"cover.jpg" - Name says everything. The cover.
"preview_fonts_N.jpg" - Preview for the fonts. This says it all.
"preview_unlock_N.jpg" - Preview of the lockscreen. (yes, you can theme the lockscreen including buttons and that stuff in EMUI).
There are also these (not included in the package)
"preview_widget_N.jpg" - For the widgets.
"preview_icons_N.jpg" - Icons preview.
I recommend using a 1080 px x 1920 px image resolution for all these images.
TIP:
The N means the number of that image type. It starts at 0.
Click to expand...
Click to collapse
When you finished putting everything together, from fonts to images, you just need to use a file manager to zip everything! After it has been zipped, rename the *.zip to *.hwt and your theme is ready! (yep, a theme is just a renamed zip file )
There you have it! I hope you like my awesome wall of text!
I'm still seeing how I can make this look better.
Will also add more details soon.
How to apply a font
NOTES:
As fair as I know, these should work in EMUI 4 without any problem. (I wrote below how to change it)
If you are using EMUI 5, then please scroll up and follow the guide up there to be able to use custom fonts in EMUI 5.
Now, how to apply them: (for both EMUI 4 and 5)
Download the font to any location on your device;
Move it to the "HWThemes" folder (located in the Internal Storage, also known as "/storage/emulated/0";
Open the Themes application and go to the "Me" section. Make sure the font theme appears there (but don't apply it in the themes app!);
Go to Settings >> Display >> (Text / Font) Style and select the font you want to apply.
Do you want to suggest a font? There are only 2 simple requirements!
You must provide the source of the font, not the download link directly.
Example: Provide this http://www.dafont.com/roboto.font, but not this http://dl.dafont.com/dl/?f=roboto.
There is a .ttf (TrueType) format of that font avaiable. This is the only format I got working, please tell me if there is any other format that works and I will post it here.
Notes for the people that care
I'm still working on the themes art to make it look even better! (the images you see before applying the theme; on some devices they don't even appear, I'm still trying to find out why).
Downloads and Update Logs are in separated posts (below)​
Download links (hosted in MediaFire)
Open Sans: http://www.mediafire.com/file/oqywiuzh120lann/Open_Sans_Font.hwt
Roboto: http://www.mediafire.com/file/3y3mst0eaxpkv3j/Roboto_Font.hwt
Roboto Condensed: http://www.mediafire.com/file/0gilbe6jq69l24f/Roboto_Condensed_Font.hwt
Abel: http://www.mediafire.com/file/1wghtojimvwg2e5/Abel_Font.hwt
VT323: http://www.mediafire.com/file/buwyi1er23j9w9n/VT323_Font.hwt
Hallo Sans: http://www.mediafire.com/file/64nh8c8vkcx361l/Hallo_Sans_Font.hwt
ParaType Sans: http://www.mediafire.com/file/589n2j819hr3auf/ParaType_Sans_Font.hwt
ParaType Sans Narrow: http://www.mediafire.com/file/3jd39340ry8aj3q/ParaType_Sans_Narrow_Font.hwt
ParaType Sans Caption: http://www.mediafire.com/file/fjso12cf7v1u4d8/ParaType_Sans_Caption_Font.hwt
ParaType Serif: http://www.mediafire.com/file/8t1xmqzddyqcggf/ParaType_Serif_Font.hwt
ParaType Serif Caption: http://www.mediafire.com/file/qdkfrkp9atpt9kp/ParaType_Serif_Caption_Font.hwt
ParaType Mono: http://www.mediafire.com/file/io98odhw2n2kr30/ParaType_Mono_Font.hwt
More to come!
Updates Log
1 September 2017
First version of the main post. Probably looks messy;
Added Open Sans;
Added Roboto.
6 September 2017
Cleaned up the post;
Fixed Open Sans;
Fixed Roboto;
(Added all ParaType font families as requested by @igogold).
Added ParaType Sans;
Added ParaType Sans Narrow;
Added ParaType Sans Caption;
Added ParaType Serif;
Added ParaType Serif Caption;
Added ParaType Mono.
7 September 2017
Changed the 2 requirement for a font suggestion. Really, now it makes so much more sense than before...;
Added Abel as requested by @ayush rao.
8 September 2017
Added VT323 as requested by @razutazu.
11 September 2017
Added a way for people to support me (by downloading using a link shortener);
Added Hallo Sans as requested by @ayush rao;
Added Roboto Condensed as requested by @ayush rao.
12 September 2017
Added some screenshots to the main post.
15 September 2017
Changed a lot of main post formatting;
Added a guide, so everyone can make their own themes with fonts (please don't stop requesting fonts here because you can make your own, I like helping someone ). Requested by @leonardus_magnus.
Changed the post title to reflect what it has become now. (one day I will rename it to "Fonts for EMUI, Guides, and a messy post" )
Reserved, just in case.
For the people reading this and thinking I need to add more fonts, I will add what people suggest, I'm not exactly thinking on adding whatever I have in mind. Just what others want.
Sent from my Honor 6x using XDA Labs
Thank you!
Good free cyrillic (but not only cyrillic) fonts are PT Sans / PT Sans Caption from https://www.paratype.com/public/
It's interesting how it will look on the phone screen.
The fonts don't seem to work on my device.
Honor 8 running EMUI 5.
Sent from my Honor 8 using XDA Labs
ayush rao said:
The fonts don't seem to work on my device.
Honor 8 running EMUI 5.
Click to expand...
Click to collapse
I noticed now, I'm trying to solve the problem. Probably something happened when I packed the theme and uploaded... I'm trying to see what is wrong.
Sent from my Honor 6X using XDA Labs
DarkAlpha.Sete said:
I noticed now, I'm trying to solve the problem. Probably something happened when I packed the theme and uploaded... I'm trying to see what is wrong.
Click to expand...
Click to collapse
Ok thanks!
Sent from my Honor 8 using XDA Labs
igogold said:
Thank you!
Good free cyrillic (but not only cyrillic) fonts are PT Sans / PT Sans Caption from https://www.paratype.com/public/
It's interesting how it will look on the phone screen.
Click to expand...
Click to collapse
Added them (more exactly all ParaType fonts I could find), I hope you like how they look!
ayush rao said:
The fonts don't seem to work on my device.
Honor 8 running EMUI 5.
Sent from my Honor 8 using XDA Labs
Click to expand...
Click to collapse
Just fixed them. I hope you like my work!
Could you maybe add the font Abel Regular available here:
https://www.fontsquirrel.com/fonts/abel
Sent from my Honor 8 using XDA Labs
Can't get font to work when language is set to Swedish but it work in English.
Thanks for font
berka38 said:
Can't get font to work when language is set to Swedish but it work in English.
Thanks for font
Click to expand...
Click to collapse
I'm sorry to tell this but that is a problem of EMUI. Fonts in EMUI 5 only work with the English language (don't ask me why). I didn't try with EMUI 4 though, but I think it works properly.
Probably this happens because of the tweak needed to be done for the setting to appear... I really don't know.
ayush rao said:
Could you maybe add the font Abel Regular available here:
https://www.fontsquirrel.com/fonts/abel
Sent from my Honor 8 using XDA Labs
Click to expand...
Click to collapse
Just added Abel. Have fun customizing your device!
Hey so I used ur Paratype font and I noticed that some apps were glitched while using it. Here's a screenshot using real racing 3. It is unable to display the required symbols.
Sent from my Honor 8 using XDA Labs
Working on Honor Note 8. .
Could you please add VT323 font.
http://www.1001fonts.com/vt323-font.html
ayush rao said:
Hey so I used ur Paratype font and I noticed that some apps were glitched while using it. Here's a screenshot using real racing 3. It is unable to display the required symbols.
Click to expand...
Click to collapse
Probably the app wasn't ready to use that type of fonts, there isn't much I can do to fix that.
I'm sorry.
Does that happen with any other font?
razutazu said:
Working on Honor Note 8. .
Could you please add VT323 font.
http://www.1001fonts.com/vt323-font.html
Click to expand...
Click to collapse
Working on it!
Sent from my Honor 6X using XDA Labs
DarkAlpha.Sete said:
Probably the app wasn't ready to use that type of fonts, there isn't much I can do to fix that.
I'm sorry.
Does that happen with any other font?
Click to expand...
Click to collapse
It happens in every font available online for Huawei phones. Custom fonts break Zooper widgets and spoil the game.
Thanks for the effort though I'm enjoying the font.
Sent from my Honor 8 using XDA Labs
razutazu said:
Working on Honor Note 8. .
Could you please add VT323 font.
http://www.1001fonts.com/vt323-font.html
Click to expand...
Click to collapse
Just added it. Enjoy!
Just wanted to ask everyone, would someone be angry if I started supporting these downloads via those link shortener with ads websites. Don't want to make anyone angry just because of some cents, so I'm asking. (another idea I had is to make the downloads avaible via shortener and without it, so people aren't forced to see ads and only support me if they want)
DarkAlpha.Sete said:
Just added it. Enjoy!
Just wanted to ask everyone, would someone be angry if I started supporting these downloads via those link shortener with ads websites. Don't want to make anyone angry just because of some cents, so I'm asking. (another idea I had is to make the downloads avaible via shortener and without it, so people aren't forced to see ads and only support me if they want)
Click to expand...
Click to collapse
Thanx for the quick response buddy. It works great.
I guess the admins or some senior members can help you with your query.

Categories

Resources