Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
ritalin
Old
#1  
ritalin's Avatar
Senior Member - OP
Thanks Meter 65
Posts: 262
Join Date: Sep 2007
Location: Tampa
Talking [GUIDE] Create your own FlipFont APKs walkthrough +Now with quick font size scaling

Create custom FlipFont files with font preview and icon.
*At present this only works on Galaxy S phones, but should work if FlipFont is ported or released on other devices*

Why do we need to jump through hoops?
It seems that the fonts in the MonoType apks on the market are digitally signed. This is what is preventing the use of any old font being added to an APK. I believe the FlipFont app is looking for the digital signature in the font within the APK. If its not there, it does not use the font and reverts to using the default font. It MAY be possible to edit the FlipFont APK so that it no longer looks for the digital signature. This should allow us to use any font without jumping through hoops.

If you can find the FlipFont Apk please post its location or better yet PM me with its location. If your really feeling spunky ADB pull the file off your phone and post it here, so we can take a look at it.

Lets trick FlipFont. Heres what you need.

Apk Manager 4.8 found here. This will allow you to decompile and edit the APK attached at the bottom of this link. Dont worry its much easier then it sounds.

FontCreator 30 day trial found here. This is a windows only program. If you know of a cross platform, open source or FREE font editor please let me know. The one on source forge is not stable enough for use at present and its install needs its own walk through.
***Link for FontCreator has been downgraded to version 5, which will allow you to save fonts during the 30 day trial, unlike version 6. Thanks sigeltek***

Photoshop or Gimp. Note you only need this if you want to edit the icon file for the app. I will not go over editing the icon in the walk-through, this should be pretty self explanatory.

Digitally Signed Monoglyceride font found here For some reason Mediafire sees this as a jpg file. Click the download this image button in the link and you will see its actually a .ttf file. ODD :ºp

The Monoglyceride APK attached at the bottom of this link.

Walk-through editing the Monoglyceride font with FontCreator.
  1. Open the Monoglyceride.ttf font with FontCreator
  2. Open the .ttf font you want to use.
  3. Make note of the number of Glyphs at the bottom right side of FontCreator when you have your font selected.
  4. Click the Monoglyceride font window in FontCreator and choose edit>select all at the top of the program.
  5. Hit delete on your keyboard. This should delete everything in the Monoglyceride window.
  6. click Insert>Glyphs... at the top of the program
  7. type in the number of glyphs your font has in it and hit ok. You should now see a bunch of empty glyphs in the Monoglyceride window.
  8. Now switch back to your font and again hit edit>select all
  9. Hit edit>copy
  10. Swith back to the Monoglyceride window and click edit>select all... and then edit>paste special...
  11. This will open up the Paste Special window. Put a check in every box in Item section and choose "Add Mappings" in the mappings section and then click OK.
    If this worked properly you should see all of the characters and mappings from your font in the Monoglyceride.ttf window.
  12. Close your fonts window in FontCreator
  13. Click File>Save as, rename the Monoglyceride.ttf with the name of your font.
Thats it you now have a digitally signed font. If you want to double check, open the new font in windows and you should see that the font is still technicaly the Bauhaus font, but it now contains your fonts characters. :º)

*** eweo911 has just informed me of a quick way to resize the font if it is too large. You can check to see if its too big by double clicking on one of the glyphs after preforming the Paste Special section of the instructions above. Its best to choose one of the uppercase letters. If the glyphs image goes above the guide shown for cap it WILL be a large font on the phone. These guides are set in the perfect position for our phones screen.

Here is the quote from eweo911:
Quote:
I have figured out how to make the fonts smaller so you can adjust them to fit the screen better. Not sure if anyone else has done it yet but here is what I did.

After you do the "Paste Special" in font editor (per Ritalins how-to), you will need to make sure all of the glyphs are highlighted in the new font. Yiou will then go to "Tools" and then "Glyph Transformer". Once there, you will select the "Selected" button, then under Available Features you will expand the Outlines tree. Select scale and then you will have two variables for Outlines-Scale. Choose an integer that you want to test with and then hit "ok". Save as your new font name and that should be it.

Walk-through editing the apk with Apk Manager 4.8
  1. Download the monoglyceride.apk listed below.
  2. Copy the apk into place-apk-here-for-modding folder in the Apk_Manager_4.8 directory.
  3. Run script.bat and choose option 9
  4. Open Apk_Manager_4.8\out\assets\fonts in explorer
  5. Replace existing monoglyceride.apk font with the .ttf font you edited in FontCreator
  6. edit all XML, yml and smali files to include the font name or font.ttf depending on the entry in the original file. Just replace monoglyceride in these files and folder with the name of your font. Pay attention to capitalization in the existing files, and make sure to do the same when replacing with your file name.
  7. Edit the last folder name in the smali folder tree from monoglyceride to the name of your font
  8. Edit the icon.png in the drawable folder with one of your own.
  9. Compile apk - option 11
  10. Sign apk option 12
  11. Check the Apk_Manager_4.8\place-apk-here-for-modding folder and you should see repackaged-signed.apk along with the original monoglyceride apk. Rename your new signed.apk file the same as the monoglyceride one and just check the name at the end with your font name. This is not REALLY necessary, but do it for consistency sake.
  12. install apk on your phone

This might take you about 30 minutes the first time you run through it, but after you get accustom to the steps you should be able to bang through it in about 10 minutes.

Well here you go, here is my first custom FlipFont APK.
Monoglyceride

http://www.mediafire.com/file/b63fa4...oglyceride.apk

Its working perfectly for me, but let me know if you have any issues.

If you create a font with these instructions, please share it with the community. There is a thread in the Vibrant theme section found here.

Save this thread as a favorite or subcribed thread and you can easily view it and download the fonts in the XDA tapatalk app on your phone.
You will need Astro or Linda file browser to be able to download the fonts from your phone.
Help start the discussion for patent reform.
https://defendinnovation.org/
 
saywhat4118
Old
#2  
saywhat4118's Avatar
Senior Member
Thanks Meter 30
Posts: 465
Join Date: May 2008
Location: Dallas, Texas
Sweet!! i'll give this a try when i get my Epic
Carrier: AT&T
Phone: HTC One
Rom: Latest Trickdroid Rom
Kernel: Faux Kernel
Bootloader: Unlocked.

Been Rooting since the HTC G1
 
Custodian
Old
#3  
Senior Member
Thanks Meter 338
Posts: 1,953
Join Date: Feb 2011
Id like to personally thank you for this guide!!!
 
jamice4u
Old
(Last edited by jamice4u; 16th June 2011 at 05:46 PM.)
#4  
jamice4u's Avatar
Senior Member
Thanks Meter 238
Posts: 1,512
Join Date: May 2008
Location: Daly City

 
DONATE TO ME
Quote:
Originally Posted by Custodian View Post
Id like to personally thank you for this guide!!!
What happened to his thanks button?
If I have help you in anyway please feel free to thank me. Thanks!!!

Phone: Galaxy Note 2
ROM: Rootbox-JB-L900-Nightly-20130416
Kernel: 3.0.73Matrix-v 1.34 733-GPU-OC
Baseband: L900VPAMA7
 
Custodian
Old
#5  
Senior Member
Thanks Meter 338
Posts: 1,953
Join Date: Feb 2011
Quote:
Originally Posted by jamice4u View Post
What happened to his thanks button?
....run along now little timmy before you get into something you'll regret.

Sent from my SPH-D700 using XDA Premium App
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...