+ Reply to Thread
Page 1 of 10 1 2 3 ... LastLast
Results 1 to 20 of 200

m6_font_import tool

This is a discussion on m6_font_import tool within the Community Development forums, part of the miniPlayer M6 / SL category; Hi everyone! I have been using M6 Miniplayer for a year and got really tired of its ugly font. So, ...

  1. #1
    Valued Member
    Join Date
    Nov 2006
    Location
    Belarus, Minsk
    Posts
    59
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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 11:19 PM.

  2. #2
    Senior Member
    Join Date
    Dec 2006
    Location
    Middle of the U.S.
    Posts
    347
    Thanks
    0
    Thanked 0 Times in 0 Posts
    When the heck did this come out?? It would kick ass to make themes with new fonts! The Skin page I'm doing should have plenty of interesting new skins now. I don't have a working M6 to try this, but could someone try this out and post some actual pics of new fonts installed to the M6?

    Are the fonts limited by characters usable, and the width and height? Also, how stable is this? If you import a font to the M6, it isn't gonna mess anything up, is it?

    Also, there is no source for the firmware as Meizu is not releasing it. Everyone wants them to, and it would help not only Meizu but the whole miniplayer line as well, but they still aren't. You can read more here as someone made a thread for that:
    A modest proposal for Meizu: open source the firmware!

    Also, if it helps any, this thread I made is for getting a good look at the chips, circuitry, and other parts involved in the M6 design. Might give you an idea of what does what:
    Requesting pictures inside M6 SP 4GB
    Last edited by DChronos; 08-31-2007 at 09:43 PM.
    I swim through a sea of stars, without looking back to shore...
    Faster than light, bending time. Forever. Wherever.

    ~R-Type Final

  3. #3
    Valued Member
    Join Date
    Nov 2006
    Location
    Belarus, Minsk
    Posts
    59
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by DChronos View Post
    When the heck did this come out?? It would kick ass to make themes with new fonts! The Skin page I'm doing should have plenty of interesting new skins now. I don't have a working M6 to try this, but could someone try this out and post some actual pics of new fonts installed to the M6?

    Are the fonts limited by characters usable, and the width and height? Also, how stable is this? If you import a font to the M6, it isn't gonna mess anything up, is it?
    Tool uses fonts installed on your system, width and height is not modifiable. If some characters don't exist in font they will be replaced with rectangles. Player uses 16x16 and 20x20 glyphs. So just specify font face and weight for the bold (20x20) font and tool will calculate necessary sizes itself.
    Well, as for stability... Now my M6 works perfect, hope there won't be any surprises like some during development
    Quote Originally Posted by DChronos View Post
    Also, there is no source for the firmware as Meizu is not releasing it. Everyone wants them to, and it would help not only Meizu but the whole miniplayer line as well, but they still aren't. You can read more here as someone made a thread for that:
    A modest proposal for Meizu: open source the firmware!

    Also, if it helps any, this thread I made is for getting a good look at the chips, circuitry, and other parts involved in the M6 design. Might give you an idea of what does what:
    Requesting pictures inside M6 SP 4GB
    Thanks!
    Last edited by Asmo; 08-31-2007 at 09:51 PM.

  4. #4
    Junior Member
    Join Date
    Aug 2007
    Posts
    76
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks for sharing this information...

  5. #5
    Senior Member
    Join Date
    Dec 2006
    Location
    Middle of the U.S.
    Posts
    347
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hey, you know what you need now? An M6 font CREATION tool for people to create their own 16x16 and 20x20 fonts with via a simple black and white pixel drawing program. You could make it have a large view for drawing on with a black grid (white tile squares) showing each pixel of the character you're creating, and a small view that shows what it will look like beside the large one. When you draw, you draw in black. Also, set it up so that you know what character you are drawing for, like at the top, it could say "Glyph for letter 'a'", so you know when you save the font, the glyph you drew is for that letter.

    Also, the button assignments for the program would be easy: left click to draw black, right click to erase the black, and then an undo function. Also, the ability to import a font and view it in the size the same way your program does it would be awesome, so people could import a font and then make adjustments to each glyph if needed, or if they just want to.

    People with an image editor that does text could also type their font and then shrink it and choose for themselves the best pixels to keep and which to toss out for transparent pixels.

    How does that sound?

    Also, I had edited my post while you were replying and asked: "Also, how stable is this? If you import a font to the M6, it isn't gonna mess anything up, is it?"

    One last question I'd like to ask about is, how come the fonts, what I remember, looked like rectangular shapes, taller than they were wide? I thought they were like that, because something the same width and height would look either fat as a font, or spaced out too far... especially with characters like i and a period or other mark. Does the M6 overlap characters placing a set amount of empty space between the actual edge pixels of the font's characters or something?
    Last edited by DChronos; 08-31-2007 at 09:57 PM.
    I swim through a sea of stars, without looking back to shore...
    Faster than light, bending time. Forever. Wherever.

    ~R-Type Final

  6. #6
    Valued Member
    Join Date
    Nov 2006
    Location
    Belarus, Minsk
    Posts
    59
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by DChronos View Post
    Hey, you know what you need now? An M6 font CREATION tool for people to create their own 16x16 and 20x20 fonts with via a simple black and white pixel drawing program.
    Well, if I find some free time again than maybe I'll start developing...

    Quote Originally Posted by DChronos View Post
    One last question I'd like to ask about is, how come the fonts, what I remember, looked like rectangular shapes, taller than they were wide? I thought they were like that, because something the same width and height would look either fat as a font, or spaced out too far... especially with characters like i and a period or other mark. Does the M6 overlap characters placing a set amount of empty space between the actual edge pixels of the font's characters or something?
    M6 keeps width for each glyph and the glyph itself is left aligned in the 16x16 or 20x20 matrix.

  7. #7
    Junior Member
    Join Date
    Aug 2007
    Posts
    76
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by DChronos View Post
    Hey, you know what you need now? An M6 font CREATION tool for people to create their own 16x16 and 20x20 fonts with via a simple black and white pixel drawing program. You could make it have a large view for drawing on with a black grid (white tile squares) showing each pixel of the character you're creating, and a small view that shows what it will look like beside the large one. When you draw, you draw in black. Also, set it up so that you know what character you are drawing for, like at the top, it could say "Glyph for letter 'a'", so you know when you save the font, the glyph you drew is for that letter.

    Also, the button assignments for the program would be easy: left click to draw black, right click to erase the black, and then an undo function. Also, the ability to import a font and view it in the size the same way your program does it would be awesome, so people could import a font and then make adjustments to each glyph if needed, or if they just want to.

    i'd like to oppose to this idea - i don't want to sound rude, but from my point of view creating a tool to draw 20x20 pixel big letters is a total waste of time.
    typology is a very sensitive area, and you can't expect anyone that know's nothing about this to come up with a good font. additionally there are plenty of good fonts out there, that where made by ppl that really know what they are doing.

    if you agree with me, that the available fonts will be supperior to those created without a masterplan by clicking on some squares, than you'll also have to see, that changing a font that doesn't quite match the meizus 16x16/20x20 in a graphic programm (PSD, Gimp) will be much easier than trying to recreate it by rather ancient technology.

    btw: there is already a tool coming with windows, that allows to create fonts in the "square-clicking" manner you described - it's called paint :D

    ps: if you don't believe me - just try to create a simple font from scratch

    pps: i am not a native speaker - if something i wrote turned out a litte bit too strong, i hope you accept my pardon for this. i am not trying to offend anyone

  8. #8
    Valued Member
    Join Date
    Nov 2006
    Location
    Brisbane, Australia
    Posts
    1,465
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Cool thing this is, anyone could perhaps make a skin with new font for all to try and see? I would die for new font...
    Meizu M8 MiniOne
    The Revolution Is Here

  9. #9
    Senior Member
    Join Date
    Dec 2006
    Location
    Middle of the U.S.
    Posts
    347
    Thanks
    0
    Thanked 0 Times in 0 Posts
    tERROR, I don't think someone that has little to no interest in creating a font by hand would have interest in trying to use, let alone use the font they make with it. The font sizes are very small, so creating your own font is easy. You can't make a font in paint and then send the images into the M6... unless you have a tool to make fonts with from images. This tool only takes fonts you get that OTHER people have made and put them on, but I can guarantee that converting a font from one size to another of such a small size is going to make all the glyphs work. In fact, it won't. They will need some adjusting, so a creation to to view and edit the glyphs is a GOOD idea.

    Now for those that actually have the interest to create a font only they themselves are gonna use anyway, more than likely, or those that are actually good at graphics design (me, for one), we would probably be very interested in making new M6 type fonts. I sure as hell would, and the best way to make a font of this size specifically for this device is to make one. Impoting is a great idea, but some fonts won't work too well with it, only basic fonts like arial that are clear and precise would work very well, as far as I can tell from dealing with small fonts.

    I have one font style I would love to make, since it doesn't exist outside color images, and that's the Megaman X font. It's a font of that size, and is even a block style font that has a set width and height. There are tons of game fonts like that, too, that are small, and they would need to be made by a font creation tool that can make actual glyphs and save them as a FONT, not a picture, which I already got.

    Anyway, for such small sizes, I think many people could get into messing with it, and if anything, if Asmo has a file with the default font for the M6 to load back up... well, I guess just reloading the resource would do that... then there isn't anything you can hurt by messing with a font template and changing some thing by hand to look the way YOU want them to.

    Someone, please get a screenshot of a new font that's easy to see it's completely different, and thanks in advance!

    Also, seriously... anything someone that would like to take on the task of making that edits to look and style of the graphics would kick ass. Maybe soon, we'll be able to adjust the sizes of some things to fix some things... such as the difference in height between characters in the browser and main menu which messes up selection bars, and the palcement of them.

    I'm really waiting for the day someone finally cracks the M6.EBN file and finds out how to add their own new stuff. If people that could do that were here and had the passion XBOX 360 crackers have, then it would be done in a week. I just read read about a device some people have built that can read off the hard drive and flash teh firmware in the dvd drive in them.
    Last edited by DChronos; 09-01-2007 at 04:09 AM.
    I swim through a sea of stars, without looking back to shore...
    Faster than light, bending time. Forever. Wherever.

    ~R-Type Final

  10. #10
    Junior Member
    Join Date
    Jul 2007
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by tERROR View Post
    i'd like to oppose to this idea - i don't want to sound rude, but from my point of view creating a tool to draw 20x20 pixel big letters is a total waste of time.
    typology is a very sensitive area, and you can't expect anyone that know's nothing about this to come up with a good font. additionally there are plenty of good fonts out there, that where made by ppl that really know what they are doing.

    if you agree with me, that the available fonts will be supperior to those created without a masterplan by clicking on some squares, than you'll also have to see, that changing a font that doesn't quite match the meizus 16x16/20x20 in a graphic programm (PSD, Gimp) will be much easier than trying to recreate it by rather ancient technology.

    btw: there is already a tool coming with windows, that allows to create fonts in the "square-clicking" manner you described - it's called paint :D

    ps: if you don't believe me - just try to create a simple font from scratch
    Anyone good at calligraphy could easily do it. I once created some fonts for a promotional campaign for a television station. They wanted a particular font loaded into the Chyron, which in 1983, the choice of fonts was limited to about 9. I purchased a set of dry transfers about 1 inch tall, and digitized (1 bit mode) each one of them from a broadcast quality video camera, and cleaned up each character by hand. It was quite an intensive project, and having never done it before, it worked beautifully! Oh, and I was a senior in high school when I did this.

    So, I surmise that ANYONE, while paying careful attention to detail, can create a font. It certainly is NOT rocket science.
    Meizu Dane-Elec M6 4GB
    2004.3 Firmware
    Go Mountaineers!

  11. #11
    Valued Member
    Join Date
    Nov 2006
    Posts
    779
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks Asmo, tried about a dozen fonts so far, great fun.


  12. #12
    Valued Member
    Join Date
    Nov 2006
    Location
    Brisbane, Australia
    Posts
    1,465
    Thanks
    0
    Thanked 0 Times in 0 Posts
    OMG madman, that looks awesome! Quickly apply a suitable font to one of your awesome skins and upload please!

    BTW: Does this font thing apply to chinese? Shame if it doesn't... or do we have to have a chinese font thingy for it?

    PS: I don't get how to use this tool, please teach me.
    Last edited by iversonjack; 09-01-2007 at 05:35 AM.
    Meizu M8 MiniOne
    The Revolution Is Here

  13. #13
    Valued Member
    Join Date
    Nov 2006
    Posts
    779
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by iversonjack View Post
    OMG madman, that looks awesome! Quickly apply a suitable font to one of your awesome skins and upload please!

    BTW: Does this font thing apply to chinese? Shame if it doesn't... or do we have to have a chinese font thingy for it?
    Does not seem to apply to Chinese fonts. If you are not sure about applying a font to your favourite theme yourself then pick a theme and a font and I will upload one for you.

  14. #14
    Valued Member
    Join Date
    Nov 2006
    Location
    Belarus, Minsk
    Posts
    59
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by iversonjack View Post
    BTW: Does this font thing apply to chinese? Shame if it doesn't... or do we have to have a chinese font thingy for it?

    PS: I don't get how to use this tool, please teach me.
    You can import chinese font if there is one installed in your system. You need to know unicode range for chinese characters. Then just add this range to font.txt. Well, I'll show you:

    * Download and extract archive for example to c:\temp
    * Copy resource.bin to c:\temp
    * Run command line (to run it press Win+R and type there cmd, then press Enter)
    * In command line change working directory to c:\temp
    * Edit font.txt, add there your own range of characters (find it here). Be sure that the font you've entered in the first line has this range of characters.
    By the way, the line
    0x0400 0x04ff
    import cyrillic characters, if you don't need cyrillic, remove this line.
    * In command line type:
    m6_font_import resource.bin font.txt out.bin
    * out.bin will be created, copy it to your player and rename it there to resource.bin.
    * Restart player, enjoy!
    Last edited by Asmo; 09-01-2007 at 06:21 AM.

  15. #15
    Valued Member
    Join Date
    Nov 2006
    Posts
    779
    Thanks
    0
    Thanked 0 Times in 0 Posts
    PS: I don't get how to use this tool, please teach me.
    Extract to "m6_font_import" folder and copy the folder to C:\
    Edit the font.txt file in notepad and enter the name of the font you want to use.

    EG:
    One Stroke Script LET
    700
    0x0021 0x00ff
    0x0400 0x04f0

    Then save the text file.

    Copy the resource.bin file you want to use to the font patch folder.

    Click on start menu and select run then type in "cmd" to open a command window.

    In the command window type "cd C:\" and press enter to go to C: drive.
    Then type "cd m6_font_import" and press enter to go to the font patch folder.
    Then type "m6_font_import.exe resource.bin font.txt out.bin" to run the patch which will create "out.bin".
    Copy out.bin to your player and rename it resource.bin then reboot as normal to load the resources and your new font.

    The easiest wat to check out what fonts are available on your PC and their names is to use something like Microsoft Word to preview the fonts in the drop down menu.



    You can also go to www.dafont.com and download thousands of free fonts which you just need to copy to the C:\Windows\Fonts directory.

    EDIT: oooops a bit slow......
    Last edited by madman; 09-01-2007 at 06:11 AM.

  16. #16
    Valued Member
    Join Date
    Nov 2006
    Location
    Brisbane, Australia
    Posts
    1,465
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for your help guys, I got it to work. Looks mad, however, I don't use the english menu because in there, M6 cannot read chinese ID3 tags. Any suggestions, other then to:

    1. change font of chinese menu,
    2. edit resource.bin to change chinese menu to english

    any suggestions?

    BTW: is there any faster way to edit the chinese menu to english other then to copy + paste english into chinese menu spots? Anyone have some sort of shortcut program to do so?

    @ Asmo: What range would I need for chinese characters? I downloaded a font i wanna apply from this site. the 3rd one down.
    Last edited by iversonjack; 09-01-2007 at 06:29 AM.
    Meizu M8 MiniOne
    The Revolution Is Here

  17. #17
    Valued Member
    Join Date
    Nov 2006
    Location
    Belarus, Minsk
    Posts
    59
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by iversonjack View Post
    @ Asmo: What range would I need for chinese characters? I downloaded a font i wanna apply from this site. the 3rd one down.
    Think you should try to add to font.txt this line:
    0x3100 0x312F
    (check please, if I'm right at this page, cause I don't know chinese)

  18. #18
    Founder
    Join Date
    Nov 2006
    Location
    Stockholm
    Posts
    2,875
    Thanks
    133
    Thanked 261 Times in 77 Posts
    This is... awesome! This opens so many new possibilities for better skins.

    Link doesn't work in China, mirror please?

    Also, any possibility of this working on M3?
    Can't wait to play with the Meizu MX!

  19. #19
    Valued Member
    Join Date
    Nov 2006
    Location
    Brisbane, Australia
    Posts
    1,465
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Tried that line, doesn't seem to change the font. Do I have to delete any lines?
    Meizu M8 MiniOne
    The Revolution Is Here

  20. #20
    Valued Member
    Join Date
    Nov 2006
    Location
    Belarus, Minsk
    Posts
    59
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Err0r View Post
    Link doesn't work in China, mirror please?
    Also, any possibility of this working on M3?
    Give me your email (in private message), I'll send you a package. Create the mirror where it's convenient for you.
    Don't know resource.bin format for M3, so do not use it for M3.
    Quote Originally Posted by iversonjack
    Tried that line, doesn't seem to change the font. Do I have to delete any lines?
    Re-download m6_font_import.zip cause I've fixed a little bug. Then remove all ranges from font.txt. Add the only big one:
    0x0021 0xfff0
    This should import almost ALL glyphs from selected font. resource.bin will become 9 MB file instead of 6 MB as usual, don't worry player eats such resource.bin without any problems.
    Check if the font is installed in your system! Not just downloaded. Try, and then report about the result.


 
+ Reply to Thread
Page 1 of 10 1 2 3 ... LastLast

Similar Threads

  1. Video Rotating Tool??
    By Superman92 in forum Video and Imaging
    Replies: 7
    Last Post: 04-27-2008, 12:49 PM
  2. m6_patch_font tool
    By Asmo in forum Russian
    Replies: 28
    Last Post: 10-05-2007, 05:45 AM
  3. Official iPhone Tool
    By iversonjack in forum Off Topic
    Replies: 9
    Last Post: 08-12-2007, 04:23 AM