Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Question [Q] How to customize font to the android recovery?

OP fentensoft

6th January 2013, 01:42 PM   |  #1  
OP Junior Member
Thanks Meter: 0
 
1 posts
Join Date:Joined: Jul 2011
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.
12th July 2013, 04:30 PM   |  #2  
Aadi's Avatar
Senior Member
Flag Chennai
Thanks Meter: 268
 
448 posts
Join Date:Joined: May 2012
More
Question
Quote:
Originally Posted by fentensoft

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.

i need help on how did you convert bmp to c plz help
5th July 2014, 09:48 PM   |  #3  
Aung Thiha's Avatar
Senior Member
Flag Mandalay
Thanks Meter: 46
 
129 posts
Join Date:Joined: Feb 2013
Quote:
Originally Posted by fentensoft

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.

Have you got the solution. I'm trying to do that too.
Please help me if you got it. Of course, I'll help you if I made it.
And I don't know how to use mkfont.c either.
Thanks in advance.
Last edited by Aung Thiha; 6th July 2014 at 02:54 AM.
6th July 2014, 02:36 AM   |  #4  
Aung Thiha's Avatar
Senior Member
Flag Mandalay
Thanks Meter: 46
 
129 posts
Join Date:Joined: Feb 2013
Quote:
Originally Posted by Aadi

i need help on how did you convert bmp to c plz help

have you got a way to convert ttf to bmp?
I used BMFont( windows program) but I haven't tested it yet.
Last edited by Aung Thiha; 6th July 2014 at 04:24 AM.
12th July 2014, 09:11 PM   |  #5  
Aung Thiha's Avatar
Senior Member
Flag Mandalay
Thanks Meter: 46
 
129 posts
Join Date:Joined: Feb 2013
Quote:
Originally Posted by fentensoft

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.


hey I found this.
chinese cwm
use that ruby script to generate a header file, It works fine for chinese characters. I've tested.
but It doesn't work for Myanmar font
Can anyone help me edit that script. I don't know ruby. Character ASCII codes for Myanmar is greater than/equal to 4096 and last than/equal to 4255.
Last edited by Aung Thiha; 13th July 2014 at 05:02 PM.
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes