[Q] How to customize font to the android recovery? - Android Q&A, Help & Troubleshooting

Hi, I'm trying to add a Chinese font to my recovery, but now I don't know how to do that. I found the minui/mkfont.c file which can generate the font header file. It reads data from a gimp_image structure that is generated by the GIMP software. I've tried to use the Bitmap Font Generator under Windows system to create a bmp file of my font, but after converting this bmp to a C header file via mkfont.c, it shows garbled characters on the phone. So anyone who knows how to convert my ttf font to a bmp image correctly? And which section in the font should I select?
I'll be very greatful if anyone can help.

fentensoft said:
Hi, I'm trying to add a Chinese font to my recovery, but now I don't know how to do that. I found the minui/mkfont.c file which can generate the font header file. It reads data from a gimp_image structure that is generated by the GIMP software. I've tried to use the Bitmap Font Generator under Windows system to create a bmp file of my font, but after converting this bmp to a C header file via mkfont.c, it shows garbled characters on the phone. So anyone who knows how to convert my ttf font to a bmp image correctly? And which section in the font should I select?
I'll be very greatful if anyone can help.
Click to expand...
Click to collapse
i need help on how did you convert bmp to c plz help

Related

Guide To Modifying SPB Mobile Shell 3.5

This thread will serve as a bottom-up guide to modifying SPB Mobile Shell 3.5. Any help and links is appreciated and will be incorporated.
Last updated: 10/24/09
*Basics of SPB Mobile Shell 3.5*
Areas of the program that can be modified are based on an XML architecture.
Entering the Program Files folder, one finds many files named *.dat. Many of these correspond to concepts or widgets that are easily familiar: clocks and etc., and several of them are responsible for the larger structure and feel (qa_layouts, for example). A more comprehensive listing of all the include files is:
[To come]
*.DAT Structure*
.dat files that can be modified are actually standard .zip archives. Simply copying them over to your PC, changing the file extension from .dat to .zip, then opening the archive and extracting the files inside, shows you all that comprises a given widget or layout.
assword: In extracting files from the .zip, one will be prompted for a password, which is universally b0fm18zq .
The files contained in an archive are generally a mix of .xml files (determination layout, composition and functionality) and .bmp (image files that correspond to the different looks a widget may have). The .xml files may be viewed and edited in any standard text editor, like Notepad++, and the .bmp files can be viewed and edited in anything from Photoshop to Microsoft Paint (though, for exactitude, Photoshop or similar is best).
*What Goes Into a Widget*
A widget is defined by three specific files (with filename containing the three prefixes qa_, va_, and ma_), as well as by XML references in files like qa_layouts.dat and qa_layouts_bup.dat.
*Simple Widget Appearance Modification*
Luiggi's 9 Icon Build Guide: http://rapidshare.com/files/101365258/9_Icon_Build_Guide.zip
Just making a quick link here to another forum thread for Vostradamus Mobile Shell Manager. Besides the app there's also a lot of information there on how to modify widgets:
http://forum.xda-developers.com/showthread.php?t=689087

[Q] How do I rename an image?

Hi,
I just read this on your site:
"26. Add Your Own Album Art to Music Folders
Make sure the image you wish to use is 256x256 pixels, 96dpi and save it to your PC. Rename the image to the following format: ~hTC_Album Name.vin. Please note that the change refers also to the file extension as it will now become a vin file. Copy this file to the folder of your specific album on your Storage Card. Example: If the album is called Abba Gold, then your vin file will be ~hTC_Abba Gold.vin."
Well. This might be a stupid question, but how do I do this?? When I rename the file to ~hTC_nameofthetrack.vin it stays an .JPG file.. and when I download it and use "save as" I can only choose between saving it as an .JPG or an .BMP file.. even when I just try saving it as ~hTC_filename.vin it becomes an .JPG with .vin at the end of the trackname..
I would really like to know and this probably is an easy answer so I hope someone can help me with this
are you renaming from the computer or the phone?
if you are doing it via the computer make sure that you have shown filename extensions enabled or it will not change the type of file
and how do I enable that?
[windows helpdesk mode]
Open explorer, goto tools, Folder options
Select the view tab
Under files and folders unselect following:
hide extensions for known file types
[/windows helpdesk mode]
I couldn't get this working no matter what I tried, gave up in the end....
even once the files were renamed and everything, the images wouldn't show....

Amazfit Cor font change?

is there possible change font that support ÄÖ letters?
Vihru said:
is there possible change font that support ÄÖ letters?
Click to expand...
Click to collapse
I have the same issue with accented / special characters.
Have a look here and maybe we could find a solution with the help of other members
https://forum.xda-developers.com/sm...hinese-cor-t3775769/post76183796#post76183796
I had the same problem, then I used the " Tools & Amazfit and ad a filter to replace ä/ö with ae oe
https://play.google.com/store/apps/details?id=cz.zdenekhorak.amazfittools
Sorgenbringer said:
I had the same problem, then I used the " Tools & Amazfit and ad a filter to replace ä/ö with ae oe
https://play.google.com/store/apps/details?id=cz.zdenekhorak.amazfittools
Click to expand...
Click to collapse
but thats not help, then it shows ae and oe..
Sorgenbringer said:
I had the same problem, then I used the " Tools & Amazfit and ad a filter to replace ä/ö with ae oe
https://play.google.com/store/apps/details?id=cz.zdenekhorak.amazfittools
Click to expand...
Click to collapse
Yeah, that would not be a real solution for my case, either.
You see the Greek language can have every single vowel accented. In that case we're talking about too many accented / special characters.
A more appropriate solution would be to be able to change the whole font family, and include one that supports our language's special characters.
Thank for the suggestion, though
amazfit cor greek accented characters font change
Vihru said:
is there possible change font that support ÄÖ letters?
Click to expand...
Click to collapse
many thanks to chienkd for his help
1. Download Python tool, extract and install
http://www.mediafire.com/file/opj7aj...PythonFont.zip
2. Download python script tool, extract and copy files to python directory (c:\Python34)
http://www.mediafire.com/file/9bbtxr.../Tool_font.zip
3. Download font file
You can use font file "Mili_chaohu.ft" inside any Mifit.apk/assets/
4. Extract font file to character files
open a command prompt window, and use the command below to unpack
.\bipfont.py unpack Mili_chaohu.ft
a folder called bmp is created with all the .bmp characters inside
5. Remake or make new characters
+ Use any image editor to make your own font file (black background, white text, bmp format 2 colors, 16x16 pixel square, name xxxxy.bmp)
+ xxxx is the character unicode code name.
+ use unicode utility to find the unicode of each character (https://unicode.org/cldr/utility/character.jsp?a=U+0041&B1=Show)
+ y: the distance by pixel from the bottom.
+ Copy all your own characters to the extracted bmp folder (4).
6. Rebuild font file from characters folder (bmp folder) with the command below
.\bipfont.py pack New_Mili_chaohu.ft
copy New_Mili_chaohu.ft to a new folder and rename it to Mili_chaohu.ft
7. Install your font file to your device.
+ unpair from mifit app
+ install gadgetbridge (from playstore) and pair it with band
+ upload your own font "Mili_chaohu.ft" to your phone
+ use File Manager Open file Mili_chaohu.ft
+ choose "gadgetbridge installer" option
+ tap "install" and wait
+ uninstall gadgetbridge when success
+ pair again with mifit
the file attached has greek accented characters
Hey there.
I have taken pmatsou's great work (credits to him and chienkd) and I have added an indirect solution for the Greek Uppercase Accented characters.
With my attached file the greek uppercase accented characters (which still showed up as "?") have been replaced with the corresponding non-accented characters. I chose this solution as I do not have time to get into Photoshop, etc and create new ones. One other solution would be to "borrow" some of the cyrillic characters that look like greek uppercase accented characters and already exist within the BMP directory described below, and rename them to match the right ASCII code (see here: https://en.wikipedia.org/wiki/ISO/IEC_8859-7 ). I tried this but I did not like the result. So. if you want to try / test the (attached) file, just start from step 7. Once more, thanks to pmatsou for the help on this and to chienkd for the steps on the original guide.
p.s. I'M NOT RESPONSIBLE FOR ANY DAMAGED / BRICKED DEVICE!
UPDATE (18/09/2018): I have re-uploaded an updated font file with some additional improvements on complex greek accented characters (that I created in Photoshop) such as the ones that show on the attached photo ( ΐ , ΰ, ϊ, ϋ )
pmatsou said:
many thanks to chienkd for his help
1. Download Python tool, extract and install
http://www.mediafire.com/file/opj7aj...PythonFont.zip
2. Download python script tool, extract and copy files to python directory (c:\Python34)
http://www.mediafire.com/file/9bbtxr.../Tool_font.zip
3. Download font file
You can use font file "Mili_chaohu.ft" inside any Mifit.apk/assets/
4. Extract font file to character files
open a command prompt window, and use the command below to unpack
.\bipfont.py unpack Mili_chaohu.ft
a folder called bmp is created with all the .bmp characters inside
5. Remake or make new characters
+ Use any image editor to make your own font file (black background, white text, bmp format 2 colors, 16x16 pixel square, name xxxxy.bmp)
+ xxxx is the character unicode code name.
+ use unicode utility to find the unicode of each character (https://unicode.org/cldr/utility/character.jsp?a=U+0041&B1=Show)
+ y: the distance by pixel from the bottom.
+ Copy all your own characters to the extracted bmp folder (4).
6. Rebuild font file from characters folder (bmp folder) with the command below
.\bipfont.py pack New_Mili_chaohu.ft
copy New_Mili_chaohu.ft to a new folder and rename it to Mili_chaohu.ft
7. Install your font file to your device.
+ unpair from mifit app
+ install gadgetbridge (from playstore) and pair it with band
+ upload your own font "Mili_chaohu.ft" to your phone
+ use File Manager Open file Mili_chaohu.ft
+ choose "gadgetbridge installer" option
+ tap "install" and wait
+ uninstall gadgetbridge when success
+ pair again with mifit
the file attached has greek accented characters
Click to expand...
Click to collapse
AMAZFIT BIP Romanian PACK
This Pack supports Italian, German, Turkish, Hungarian and Vietnamese languages to which I've also corrected/added all Romanian Characters ăîșțâ ĂÎȘȚÂ.
(Pachet diacritice pentru Amazfit BIP/Cor)
I don't really know who created the first fonts, so please excuse me.
I'll add the original link here. Original credits go to Eddi of GizROM team and yener.
Feel free to use - Mihai Olimpiu-Cristian
Bip_Font.zip - all files needed for mod - except Python
Mili_chaohu_uni.zip - +Romanian pack
EDIT: Fixed A,I y position? Was that a bug in the original font?
LostEchoes said:
Hey there.
I have taken pmatsou's great work (credits to him and chienkd) and I have added an indirect solution for the Greek Uppercase Accented characters.
With my attached file the greek uppercase accented characters (which still showed up as "?") have been replaced with the corresponding non-accented characters. I chose this solution as I do not have time to get into Photoshop, etc and create new ones. One other solution would be to "borrow" some of the cyrillic characters that look like greek uppercase accented characters and already exist within the BMP directory described below, and rename them to match the right ASCII code (see here: https://en.wikipedia.org/wiki/ISO/IEC_8859-7 ). I tried this but I did not like the result. So. if you want to try / test the (attached) file, just start from step 7. Once more, thanks to pmatsou for the help on this and to chienkd for the steps on the original guide.
p.s. I'M NOT RESPONSIBLE FOR ANY DAMAGED / BRICKED DEVICE!
UPDATE (18/09/2018): I have re-uploaded an updated font file with some additional improvements on complex greek accented characters (that I created in Photoshop) such as the ones that show on the attached photo ( ΐ , ΰ, ϊ, ϋ )
Click to expand...
Click to collapse
Hi,
I wanted to add your Greek characters to my file, but the sheer size difference is enormous 1704 vs 30104 characters, It seems your file also includes all Chinese characters ?! I just don't know why it's so big.
I don't know what is the maximum file size, and I'm sure that adding everything is not a solution?! (or is it?)
It seems what I've started with is more EU oriented than your base.
If you want to provide the BMP's for every greek character you added, we could provide users with a streamlined file that is specifically designed to support EU languages.
mihaiolimpiu said:
Hi,
I wanted to add your Greek characters to my file, but the sheer size difference is enormous 1704 vs 30104 characters, It seems your file also includes all Chinese characters ?! I just don't know why it's so big.
I don't know what is the maximum file size, and I'm sure that adding everything is not a solution?! (or is it?)
It seems what I've started with is more EU oriented than your base.
If you want to provide the BMP's for every greek character you added, we could provide users with a streamlined file that is specifically designed to support EU languages.
Click to expand...
Click to collapse
Yes, in my file I did not remove the Chinese characters. I just played with and changed / edited / added some of the Greek characters.
I cannot give you all the Greek characters for the Cor, because I'm not even sure if I have the time to find all of them right now. I wish I could find the time... But, I can give you a file with only the ones that I changed. So, if your file already includes the original / initial Greek characters, you could just copy the ones I'm sending you and replace (overwrite) the original ones, right ? This way your file will have the ones I changed + the ones that I did not have to change but are needed for the COR to display the Greek language.
Here is a zip file (attached) with the one I edited...
LostEchoes said:
Yes, in my file I did not remove the Chinese characters. I just played with and changed / edited / added some of the Greek characters.
I cannot give you all the Greek characters for the Cor, because I'm not even sure if I have the time to find all of them right now. I wish I could find the time... But, I can give you a file with only the ones that I changed. So, if your file already includes the original / initial Greek characters, you could just copy the ones I'm sending you and replace (overwrite) the original ones, right ? This way your file will have the ones I changed + the ones that I did not have to change but are needed for the COR to display the Greek language.
Here is a zip file (attached) with the one I edited...
Click to expand...
Click to collapse
Hey, checkout my new thread, I've also added emoji support
I'll take a look at what you edited, I also have access to some resources, if they fit, I'll add, or if you want just take the emoticons from my pack, pretty straightforward as they are one after the other (+ some extra characters but not that important, really)
---------- Post added at 02:23 AM ---------- Previous post was at 01:39 AM ----------
LostEchoes said:
Yes, in my file I did not remove the Chinese characters. I just played with and changed / edited / added some of the Greek characters.
I cannot give you all the Greek characters for the Cor, because I'm not even sure if I have the time to find all of them right now. I wish I could find the time... But, I can give you a file with only the ones that I changed. So, if your file already includes the original / initial Greek characters, you could just copy the ones I'm sending you and replace (overwrite) the original ones, right ? This way your file will have the ones I changed + the ones that I did not have to change but are needed for the COR to display the Greek language.
Here is a zip file (attached) with the one I edited...
Click to expand...
Click to collapse
I've checked out the modifications, and there are 21 incompatible characters, some of them are for Romanian . It's too late, but I think I'll give up for now
Font seems different, I use 2 for above accents, 4 for bottom accents for y value, different bases I think... also all characters seems to be centered in the bitmap. not compatible... (mine are left aligned).
I've found the base for the font in the meantime. https://github.com/amazfitbip/font/

[AMAZFIT][BIP] change unlock animation of the smartwatch

Hi, i have Amazfit Bip (with modded fw and italian translation); when i press the side button to unlock the smartwatch i see an animation (in the stock fw is like a "trasparent swiping"): someone can help me to restore the stock animation? I have fw version 1.1.5.04! Thanks
EDIT: solved! i opened and edited res file, saved it and put to the bip...no skull, original animation returns!
Pollocedrone said:
Hi, i have Amazfit Bip (with modded fw and italian translation); when i press the side button to unlock the smartwatch i see an animation (in the stock fw is like a "trasparent swiping"): someone can help me to restore the stock animation? I have fw version 1.1.5.04! Thanks
EDIT: solved! i opened and edited res file, saved it and put to the bip...no skull, original animation returns!
Click to expand...
Click to collapse
Can you explain how you did that? I can't figure it out...
Thanks in advice
hi, download:
A = AmazfitBipTools-1.0.3.1 - https://bitbucket.org/valeronm/amazfitbiptools/downloads/
B = official res file - https://amazfitwatchfaces.com/bip/resource/firmware/Firmware_v.1.1.5.04_stable.f.zip (open zip file and extract "Mili_chaohu.res" file)
C = res file you want to use
drag and drop B file and C file to "WatchFace" icon (AmazfitBipTools-1.0.3.1 folder)
now the tool create 2 folders: folder B and folder C
in the folder B, image number 67 is "official transparency effect"
copy image number 67 "official transparency effect" to folder C (overwrite the image)
drag and drop folder C to to "WatchFace" icon (AmazfitBipTools-1.0.3.1 folder)
now a new res file is created: this is res file "you want to use" but with "official transparency effect" like official res file
https://www.dropbox.com/s/eo31pteikpa0mp1/ok_packed.res?dl=0
here res "modded" file with "official transparency effect" for 1.1.5.04 and 1.1.5.13 italian fw (i think is ok also for 1.1.5.02 italian fw...)
ha tenaqr nooenppvb nyy'hgragr theShADoW ?
enjoy!

Attempting to pull assets, images, and resources from an APK

I am attempting to extract the images from the game Summoners War to use for wallpapers and such.
I am able to get the APK file and have the image files in question in the assets folder, however they are not able to be opened in any image editor or photo viewer, I believe that they are encrypted. I do have access to the source code through Jadax, but I am not sure how to locate the key to decrypt them, or how exactly to decrypt them even if I had said key.
How does one go about extracting the images so I can use them for PC/phone wallpapers?
Solved.
Delete the first 16 bytes of hex data, then change the file extension to .jpg.

Categories

Resources