Mount&Blade Font Customiser {1.4} | By Swyter

Users who are viewing this thread

Cozur said:
Does this work with Warband?

The font files are just the same for all the modern Mount&Blade games. So... yes. :smile:

Just copy
Code:
FONT_DATA.xml
to your
Code:
\Data
folder and
Code:
FONT.dds
into your
Code:
\Textures
one, both within
Code:
<M&B Main Root>\Modules\Your Mod's Name\
.
Start the game and enjoy the change.
 
Tryggvi said:
Swyter, could you reupload the 1.4.1 version please? There is no folder on the mediafire.

The upload was in MBrepository, which works flawlessly. Here's the direct link:
Code:
http://www.mbrepository.com/download.php?id=1503&f=MBFCv1.4.zip

It's in the first post, but, as you probably noticed, the images are broken, and so the download button.
Have fun! :smile:
 
Public service announcement for GIMP users here, I just went through a hellish time (2 hours of failure) trying to invert the RBG channels to get rid of the black boxes around text, and it's simply not possible to do with the normal decompose channel tool that GIMP has. GIMP is totally ass backwards as **** in terms of alpha/rgb options, totally broken. So do this totally unintuitive solution instead >

What you have to do:

- open up your .dds file in GIMP with the .DDS plugin:

- Use the "select by color" tool, set it to the maximum threshold, then select the whitest part of one of the white letters. Now all the letters in the image will be selected.

- Fire up the paint brush tool, go to the color selection window, and copy/paste this number into the HTML notation: 474747. Hit "OK" and a flat grey color should get selected.

- Paint over all the white characters with this grey color. Don't miss any spots. Or use the fill tool, whatever you prefer.

- With the letters/numbers still selected Go to Layer > Transparency > Remove alpha channel. Now here's the kicker, go to Layer > Transparency > Add alpha channel. How's that for redundancy.

- Go to Select > Invert.

- Now erase everything that is selected in the image (IE: everything that is white.. leave the grey characters) until you have an alpha background.

This whole ridiculous process should have accomplished the desired goal of inverting only the rgb channels, and making them the correct duo-tone colors. Save the .dds as DXT5 compression, with mipmaps enabled then you should be good to go.

I'm unaware of any better solution, so if anybody knows one, please for the love of god, correct me :razz:

 
Hypno Toad said:
Public service announcement for GIMP users here, I just went through a hellish time (2 hours of failure) trying to invert the RBG channels to get rid of the black boxes around text, and it's simply not possible to do with the normal decompose channel tool that GIMP has. GIMP is totally ass backwards as **** in terms of alpha/rgb options, totally broken. So do this totally unintuitive solution instead >

What you have to do:

- open up your .dds file in GIMP with the .DDS plugin:

- Use the "select by color" tool, set it to the maximum threshold, then select the whitest part of one of the white letters. Now all the letters in the image will be selected.

- Fire up the paint brush tool, go to the color selection window, and copy/paste this number into the HTML notation: 474747. Hit "OK" and a flat grey color should get selected.

- Paint over all the white characters with this grey color. Don't miss any spots. Or use the fill tool, whatever you prefer.

- With the letters/numbers still selected Go to Layer > Transparency > Remove alpha channel. Now here's the kicker, go to Layer > Transparency > Add alpha channel. How's that for redundancy.

- Go to Select > Invert.

- Now erase everything that is selected in the image (IE: everything that is white.. leave the grey characters) until you have an alpha background.

This whole ridiculous process should have accomplished the desired goal of inverting only the rgb channels, and making them the correct duo-tone colors. Save the .dds as DXT5 compression, with mipmaps enabled then you should be good to go.

I'm unaware of any better solution, so if anybody knows one, please for the love of god, correct me :razz:

Run Font Customiser with Admin privileges. That should work.
If doesn't and there's a need I can recode the entire thing.

As with
Code:
swycartographer
I've pretty much re-implemented half of the mount&blade font rendering subsystem,
this is just going backwards using a cute DDS/DXT lib called
Code:
[url=http://www.lonesock.net/soil.html]SOIL[/url]
, based on
Code:
[url=http://nothings.org/stb/stb_image_write.h]stb_image_write[/url]
.

And the tiny but neat
Code:
[url=http://nothings.org/stb/stb_truetype.h]stb_ttf[/url]
in substitution of the heavy freetype2.
Both in C and pretty minimalist. And who on earth needs a real XML dumper?
 
I'm running with admin privledges, but I wouldn't really say it's an issue with your program. It should be a dead simple job to invert the RGB channel but GIMP has serious issues in that regard, likewise it also makes it really difficult to add proper alpha channels to VTF files (valve texture format)

Just a shortcoming with GIMP.
 
Hypno Toad said:
I'm running with admin privledges, but I wouldn't really say it's an issue with your program. It should be a dead simple job to invert the RGB channel but GIMP has serious issues in that regard, likewise it also makes it really difficult to add proper alpha channels to VTF files (valve texture format)

Just a shortcoming with GIMP.

All hail the mighty hypno toad! Now seriously, Photoshop is also a pain to work with for these matters.
You don't really want to mess with textures having pre-multiplied alpha channel and stuff like that.

My program is from 2009, this needs an urgent rewrite, someday. Thankies for bringing it up!
 
ValerBOSS said:
Swyter, is there any way to "de-"generate M&B font from texture and .xml to windows font?

Not feasible. You'd have to retrace to vectors every single glyph from a bitmap with a program like FontForge. :smile:

If you want the original Mount&Blade typefaces then take a look to this thread:
Code:
http://forums.taleworlds.com/index.php?topic=140747.0

Another option is to post a short text in a site like What The Font or Dafont's forum, they work very well:
Code:
http://www.myfonts.com/WhatTheFont/
http://www.dafont.com/forum/
 
ValerBOSS said:
And one more question: does your tool support kerning?
Yeah, it does. Albeit with some trouble. :smile:
Manual tweaks on the xml are needed for some specific chars.

(They can be fixed changing the pre/postshift parameters)
 
Harlef said:
DL Link is broken, could you pls upload it again?  :cool:

Look back. :smile:

Swyter said:
Tryggvi said:
Swyter, could you reupload the 1.4.1 version please? There is no folder on the mediafire.

The upload was in MBrepository, which works flawlessly. Here's the direct link:
Code:
http://www.mbrepository.com/download.php?id=1503&f=MBFCv1.4.zip

It's in the first post, but, as you probably noticed, the images are broken, and so the download button.
Have fun! :smile:
 
Back
Top Bottom