Modify LG theme font apk to load your own font - LG V40 Themes, Apps, and Mods

As you may know, you can install a third party font via LG smart world. But the fonts on there are too cutesy and not what I like.
I found an apk (no root required) that, once installed, adds a font you can select as system font in Settings>Display>Font
https://wsdeveloper.net/index.php/portfolio-item/sjsecret/
Tested working on LG V40 running pie.
I tried to disassemble the apk with apkstudio and rebuild it with my own font replacing the default font.ttf in the assets folder. It installs but no font shows up. If someone who knows their way around this stuff can figure out how to get it to work, I'd greatly appreciate their help.
(Note: I'm just trying to do this for my own use, I'm not trying to steal this person's work and/or distribute it as my own.)

Have you found a way?

Ht3tzN4ing said:
Have you found a way?
Click to expand...
Click to collapse
There's a proper method now. Here's the guide:
- https://m.cafe.naver.com/ca-fe/web/cafes/optimuslteuser/articles/838504?useCafeId=false
There's also a Telegram group called "LG UI Fonts" with a bunch of pre-made font APK's using this.

Related

installing fonts

i was just wondering if anyone knows a way to manually install more fonts on the vibrant.
I was wondering the same thing
Search for "FlipFont" in the market.
zinite said:
Search for "FlipFont" in the market.
Click to expand...
Click to collapse
appreciate it. will give it a shot. hopefully it works for non-root.
What if you want to use a font that flipfonts hasn't offered?
EDIT: NM got it, an app for Root users called Type Fresh can backup/ restore system fonts, and can install new fonts with proper permissions. Any TTF font file works, but picking ones that are designed for on screen viewing is best.
sent from my Samsung Vibrant
The_Chrome_Coyote said:
What if you want to use a font that flipfonts hasn't offered?
EDIT: NM got it, an app for Root users called Type Fresh can backup/ restore system fonts, and can install new fonts with proper permissions. Any TTF font file works, but picking ones that are designed for on screen viewing is best.
sent from my Samsung Vibrant
Click to expand...
Click to collapse
thanks! zinite and the chrome coyote
EDIT: i tried the app. i got to the point where i restart the phone but the new fonts do not apply. have you or anyone got this to work right on the vibrant yet? (the chrome coyote)
I tried it as well and also had no success. Font would not apply.
At least you Vibrant users got some "starter fonts" out of the box.
Captivates don't come with any besides the default.
I highly recommend the Helvetica Neue from the Market, btw, especially if you were fond of the Zune interface.
DJ! said:
thanks! zinite and the chrome coyote
EDIT: i tried the app. i got to the point where i restart the phone but the new fonts do not apply. have you or anyone got this to work right on the vibrant yet? (the chrome coyote)
Click to expand...
Click to collapse
creator2456 said:
I tried it as well and also had no success. Font would not apply.
Click to expand...
Click to collapse
Yes. I ran into this problem as well. You need to go to Settings and return your fonts to "Default" and reboot before you will see the changes.
The app works by replacing the default fonts, if the phone is already using a flipfont font then it wont work
The_Chrome_Coyote said:
Yes. I ran into this problem as well. You need to go to Settings and return your fonts to "Default" and reboot before you will see the changes.
The app works by replacing the default fonts, if the phone is already using a flipfont font then it wont work
Click to expand...
Click to collapse
I'll give that a try as it seems like a very reasonable reason why it wasn't working. Thanks for that.
Try my guide: http://www.xxthe3dmanxx.com/AndroidFonts/androidfont.html
It was written for the Moto Cliq but might work on the vibrant.
the3dman13 said:
Try my guide: http://www.xxthe3dmanxx.com/AndroidFonts/androidfont.html
It was written for the Moto Cliq but might work on the vibrant.
Click to expand...
Click to collapse
Just tried it. Did not work. Not sure if I did anything wrong, but I followed directions properly. Phone would not boot past initial Samsung Vibrant screen. Luckily I was able to ADB the .backup out and replace the original.
I just recently put this in the sticky in the general section. I listed the directory where to put the font, reboot, go to the settings and select the font, phone should reboot with the new font added.
I would LOVE IF you could test the directory for me. I bought helvatica through the system, do I think it's correct.
creator2456 said:
Just tried it. Did not work. Not sure if I did anything wrong, but I followed directions properly. Phone would not boot past initial Samsung Vibrant screen. Luckily I was able to ADB the .backup out and replace the original.
Click to expand...
Click to collapse
You need to adjust the permissions of the renamed font files to match the stock fonts or else you'll boot loop
sent from my Samsung Vibrant
The_Chrome_Coyote said:
You need to adjust the permissions of the renamed font files to match the stock fonts or else you'll boot loop
sent from my Samsung Vibrant
Click to expand...
Click to collapse
Ok...I followed the directions and did as they said. So, how does one go about doing this?
I use Root Explorer, as its one of the easiest ways to move system files around your phone.
To save you time looking in /system/fonts the permissions are:
User: Read-Yes, Write-Yes, Execute-No
Group: Read-Yes, Write-Yes, Execute-Yes
Others: Read-Yes, Write-No, Execute-Yes
Using Root explorer, you can navigate to your renamed DroidSans.ttf and DroidSans-Bold.ttf files, long press on them and select "permissions", then make sure the permissions match the stock font's listed above.
I cant express how effective the Type Fresh App was in doing this for me, and saves me a whole ton of hassle renaming everything. Plus its free.
The_Chrome_Coyote said:
I use Root Explorer, as its one of the easiest ways to move system files around your phone.
To save you time looking in /system/fonts the permissions are:
User: Read-Yes, Write-Yes, Execute-No
Group: Read-Yes, Write-Yes, Execute-Yes
Others: Read-Yes, Write-No, Execute-Yes
Using Root explorer, you can navigate to your renamed DroidSans.ttf and DroidSans-Bold.ttf files, long press on them and select "permissions", then make sure the permissions match the stock font's listed above.
I cant express how effective the Type Fresh App was in doing this for me, and saves me a whole ton of hassle renaming everything. Plus its free.
Click to expand...
Click to collapse
Thanks for that. Guess I'll give it a go again later today. I'll try Type Fresh again first, then move to doing it manually.
International Fonts
For more fonts and also international fonts, I did a tutorial on a Moto Droid couple months back, it should be exactly the same for "ROOTED" Samsung Vibrant:
http://nexusonehacks.net/android-hacks/droid-hack-how-to-install-thai-font-on-droid/
What I would like to know is how to write the AKP for flipfonts.
I wanted to pull one of the APKs from the Apps directory, but it seems to to work. I also tried making a backup of the APK with titanium backup, but the zip is empty. It seems the files are protected in some way.
I just wanted to take a look at the structure of the apk so I can use it as a template to create custom font APKs to side load.
If anyone can manage to make a backup of one of the flipfont APKs please explain how you did so.
I installed thai fonts by update.zip no root required.

HELP Editing and creating NEW flipfont APKs

I am aware that there are other ways to edit the fonts on our phone, by replacing renaming the default font. This is NOT what I would like to accomplish.
Since the Galaxy S is the first android phone to use Flipfont, I think we should take advantage of it. It gives us a nice preview of the font in the built in menu option and is thus superior to the other methods.
I originally purchased the Bauhaus font from the market and made a backup of it through ASTRO. After pulling the file from my phone and putting it on the computer I started editing the file with Apk Manager 4.8 found here
Steps preformed
Copied original apk into place-apk-here-for-modding folder
Run script.bat and choose option 9 ***this maybe where the issue is as I may need to choose option 10 and include the dependancy if there is one for the flipfont apk.
replace bauhaus.ttf with a .ttf font of my choosing
edit all XML, yml and smali files to include the font name or font.ttf depending on the entry in the original file *** I did not change any of the other coding so again this maybe where the problem is, as I may need to change something else to have the font act properly.
Edit the last folder name in the smali folder tree from bauhaus to the name of my font
Replace font with custom font and replace the preview image with my own
Compile apk
Sign apk
Rename apk
install apk on my phone
After putting the apk on my phone and installing the file it shows up as expected in settings>Sound and Display>Font style. The font thumbnail shows up properly as does the font preview. The preview does show up a little larger then the other fonts and may be a sign that the font is not optimized properly or that I missed something in the XML.
After applying the font and restarting, the phone is extremely slow and the font does not show up, it shows the default font instead.
If anyone that knows more about XML or apk editing/creation can help it would be great.
I have included the edited font apk if you would like to download it and run it through Apk Manager 4.8. If you want to try it with the bauhaus or one of the other fonts you will need to buy it from the market and back it up. (trying not to break any rules here.)
CAUTION THE FOLLOWING FILE IS NOT MEANT FOR USE AND WILL CAUSE YOUR PHONE TO RUN SLOW!!!
Download Font APK
here is my contribution to the fonts package. I find these to be usable fonts in the Vibrant Android system.
When you wrote the apk and after installing a font, how it had slowed down the system on you and didn't change the font, well did you try writing a different font into it? i ran into a couple of fonts that said were applied using typefresh, but when the phone rebooted, it was just slow, and had gone back to the default system font.
renegadedj said:
here is my contribution to the fonts package. I find these to be usable fonts in the Vibrant Android system.
When you wrote the apk and after installing a font, how it had slowed down the system on you and didn't change the font, well did you try writing a different font into it? i ran into a couple of fonts that said were applied using typefresh, but when the phone rebooted, it was just slow, and had gone back to the default system font.
Click to expand...
Click to collapse
Well I have tried two different fonts so far, both .ttf and they both caused the system to slow down/hang when applied and restarted.
I will try some of the fonts you supplied and see if it makes a difference.
There must be something about certain fonts that causes the problem. I need to see if I can track that down as it will be important for writing the tutorial.
[EDIT][More info] Ok I took a closer look at the font that came with the Bauhaus akp
In the discription of the font it list:
OpenType Layout, Digitally Signed, TrueType Outlines
I know that opentype is a new format and that alot of the fonts for OpenType that I find are made by Monotype, the same people that make the fonts available for download. I think this may have something to do with it or maybe Im just grasping. :ºp
ritalin said:
Well I have tried two different fonts so far, both .ttf and they both caused the system to slow down/hang when applied and restarted.
I will try some of the fonts you supplied and see if it makes a difference.
There must be something about certain fonts that causes the problem. I need to see if I can track that down as it will be important for writing the tutorial.
[EDIT][More info] Ok I took a closer look at the font that came with the Bauhaus akp
In the discription of the font it list:
OpenType Layout, Digitally Signed, TrueType Outlines
I know that opentype is a new format and that alot of the fonts for OpenType that I find are made by Monotype, the same people that make the fonts available for download. I think this may have something to do with it or maybe Im just grasping. :ºp
Click to expand...
Click to collapse
well you may be on to something, because TypeFresh does not allow me to see ANY OpenType Fonts (.otf) and only TrueType. :-D
Ok so I was curious and did a little test. I took the bauhaus font from the apk and opened it up in FontCreator 5. I then took on of the fonts that had previously given me an issue and opened it up as well. Then I copied all of the fonts for each key from the problematic one and replaced the fonts in bauhaus with them. I saved the file with a new name and then went through all of the steps to create the APK file.
After the file was installed, I selected it and then rebooted. HAZA, it works. Well it kinda works. The font size is way too big, and its still running slow. I have a feeling that the proformance hit is caused by the size of the font.
I am going to resize all of the letters, numbers and symbols in FontCreater and try again. Will post back with results.
Few steps forward, few steps back.
First off I will say that the font is a little hard to read and too light, but this is just for testing so its not that big a deal right now.
Ok so I got hold of a font that about the same size as the Bauhaus font. After doing everything in the above posts and installing the font, the restart was a LITTLE bit faster. It still seems to choke for about a minute or so after the desktop first appears and the pass based lock screen is sometimes unresponsive on first try. Overall its running much better, but still not perfect.
Also some words see to get clipped off for no reason as you can see in the image attached on the text for the Astro bluetooth icon. Not sure why this is happening.

[Q] Installing new fonts

I tried installing a new flip font apk on the phone but it is not showing on the list of fonts to change it to. Is there something I am missing to get this to work? Thanks
vince2398 said:
I tried installing a new flip font apk on the phone but it is not showing on the list of fonts to change it to. Is there something I am missing to get this to work? Thanks
Click to expand...
Click to collapse
Let me clarify:
You installed a font changing .apk, and can't find it in the system settings>display>font type?
If that is the case, it wouldn't show up there because the .apk you installed should be in your app drawer, you would use that app the change your fonts instead of the system menu.
Or you put a font .ttf/.otf in the system/font folder and it doesn't show in the list?
If it is this one, I have a bunch in that folder that don't show up in the list either, it seems it only picks the stock fonts to display.
If you have tried using the font changing .apk to change the font and it isn't working, my guess is because LG lets you choose between multiple fonts it isn't using the default Android system font name (I don't remember the name off the top of my head) but instead using one of the custom font names.
If you want to change it yourself, you could try to replace the font you currently have the settings set to in the system/font folder with one of your choice (rename the stock font with a .bak at the end and rename the new font the same name as the old font, then make sure it is the same font your settings are set to).
All this is just speculation though, LG may have implemented the custom fonts differently, but I know they are in that system/font folder, so I think it could work. This is assuming you are rooted of course.
does anyone have detailed information about showing custom fonts in native font menu

[Q]Reliable guide to changing system font?

I am trying to change my default font to one that will read a number of diacritical characters not covered by the default Nexus 7 system font. I have read a number of threads that offer advice that seems incomplete and am looking for someone's list of actions that will definitely do this job or that can point me to a definitive guide to doing this.
My tablet is rooted, running 4.2.2. I have been downloading apps and fonts:
ASK keyboard to show these characters,
Font Installer and
Type Fresh,
ASK Pali font file,
DroidSansFallback.ttf and
Dejavu-fonts-ttf-2.33.
I had not looked into /system/fonts before now so I have nothing to compare its present population with, but it contains 41 .ttf files (Roboto, Droid and some others) and I have 21 Dejavu fonts waiting to be moved there!
I understand the default font is 'Roboto', but
what font will do what I want (have all diacritics)?
Will I need to swap between them in the normal course of events, and how?
Or rename some font to replace the default?
Is there a modifiable config file that names the default file?
Thanks for reading this far!
But what happened? Font Installer doesn't work for you?
RoberGalarga said:
But what happened? Font Installer doesn't work for you?
Click to expand...
Click to collapse
The bottom line is that all the Droid (and Roboto) files are in /system/font but the (originally missing) diacritic characters are not accessible via the ASK keyboard which show only squares when pressed appropriately.
I have loaded the Droid, Dejavu and Roboto fonts into my Mac and opened them via its Font Book app. When installing 'Roboto', the Font Book reported an error: it was a duplicate of Droid Sans Fallback, so it seems that that is what Font Installer does. Pity this is not made clear.
The required characters are in there, it seems, but are not found by the keyboard. I'll contact the developer thereof now (he groaned).
Thanks for the nudge!

Install fonts so they are recognized by the font picker?

The title says it all. I've been looking for 3 days and I can't figure out how to install a font so the built-in font chooser will recognize it. I have LG Smartworld installed and I can download and use fonts from there through the font chooser. Their selection is pretty limited though. I have also tried out the various apps (Fonter, iFont) and had unsatisfactory results. So which files go where to make this possible?
Edit: So this would seem to be the answer to my question. http://forum.xda-developers.com/showthread.php?t=3011006
Thanks to @Valsorim for the OP!
I am pretty sure you just place the font TTP file in SYSTEM>FONTS
You need to have access with some type of root file explorer app. Then set permissions to match other reboot and it should show up as an option in the fonts to choose from.
Have a great day! from my LG G3
edfunkycold said:
I am pretty sure you just place the font TTP file in SYSTEM>FONTS
You need to have access with some type of root file explorer app. Then set permissions to match other reboot and it should show up as an option in the fonts to choose from.
Have a great day! from my LG G3
Click to expand...
Click to collapse
I'm a little leary of that. For the fonts that are available in the settings menu, there are two files for each one in System/fonts. One is (Font Name)_Regular.ttf, the other is (Font Name)_Bold.ttf. I don't know if I rename the same file for each or if I should have separate bold and regular files. Another thing is that the files in System/font are big compared the .ttf files I extracted. The extracted files are between 80 and 120kb. The ones in the font picker are 800kb to 1.3mb. Seems like too big a difference. The last thing I noticed is that downloaded fonts from LG World don't show up in that location, only the stock fonts. Haven't found where the downloaded ones go yet.

Categories

Resources