View Single Post
Old 08-31-2007   #1 (permalink)
Valued Member Asmo is on a distinguished road
 
Join Date: Nov 2006
Location: Belarus, Minsk
Posts: 59
m6_font_import tool

Hi everyone! I have been using M6 Miniplayer for a year and got really tired of its ugly font. So, again a few days of reverse-engineering (well, "again" is not a suitable word, cause the last r-e was about a year ago, maybe someone remember m6_patch_font tool I've written )

So, meet m6_font_import tool! It allows you to import glyphs from the fonts installed on your Windows system.

Dowload it here (mirror) (only for 2.004.x and higher versions of firmware)
Original fonts of M6 in txt format (download)

Usage:
m6_font_import.exe resource.bin font.txt out.bin [m3]

The last parameter is optional. Use it (without square brackets) if you want to import fonts
into resource file of Meizu M3 player. Do not specify this parameter
for Meizu M6 player.

Font description file (font.txt) MUST be in UTF-8 encoding!

Sample font.txt:
Tahoma <--- 16x16 font face
Tahoma <--- 20x20 font face (not used in M3 player)
Arial <--- 24x24 font face (not used in M3 player)
DEFAULT <--- Charset
700 <--- Weight of the 20x20 font (700 is default for bold, max = 1000)
900 <--- Weight of the 24x24 font (700 is default for bold, max = 1000)
(here add your own ranges, like sample ranges below)
0x0021 0x00ff <--- Range of characters to import (ASCII)
0x0400 0x04f0 <--- Range of characters to import (Cyrillic)


Valid charset identifiers:
ANSI
BALTIC
CHINESEBIG5
DEFAULT
EASTEUROPE
GB2312
GREEK
HANGUL
RUSSIAN
SHIFTJIS
TURKISH
VIETNAMESE
JOHAB
ARABIC
HEBREW
THAI

Used DEFAULT charset if you want to import characters of the current system locale. But for example if you want to import chinese when the system locale is English (United States) use GB2312 or CHINESEBIG5 (don't really sure).

Ranges are in hex format.
This sample font.txt configures tool to import english and cyrillic characters.
Rename out.bin to resource.bin and copy to player.

Hope you'll like your Meizu with new fonts even more!

P.S.
Give me the source of the firmware... Don't like to spend much time on reverse-engineering

Last edited by Asmo : 02-03-2008 at 10:19 PM.
Asmo is offline   Reply With Quote