supporter-captain

Author [EN] [PL] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] Topic: changing text size in mugen  (Read 2124 times)

Offline Fredgerd

  • Bass Master
  • Sprite Artist/ Creator
  • ***
  • Posts: 1538
  • Referrals: 0
changing text size in mugen
« on: July 01, 2009, 01:01:26 AM »
this should be an easy one (hopefully) :-[ .

how can I make the font in the select screen and the fight screen smaller.

Text tends to go off the edge right now
For those who are curious, yes I am gone and I don't intend to be back soon. I never formally said goodbye to you all, because that always becomes a forum stink. However, to my friends here, I wish you the best. Perhaps I'll be back one day but for now this is goodbye.

-Fred

Offline YD

  • ******
  • Posts: 3085
  • Country: 00
  • Referrals: 0
Re: changing text size in mugen
« Reply #1 on: July 01, 2009, 09:10:04 AM »
this should be an easy one (hopefully) :-[ .

how can I make the font in the select screen and the fight screen smaller.

Text tends to go off the edge right now

Well its easy but complicated and time consuming, at least how I know how to do it.
The way the font size works is how the screen using that font is set up, so if your select screen images are coded to show big then the fonts will be big, also the size of the font itself, meaning how it was made, will determine how the font is also. The way I know it to be is you have to modify the system.def, fight.def and choice of font in order to suit your need. I could be wrong but thats how I see it maybe someone who makes SP's could add some info on this as well.

So if you look in the system and fight.def files you will notice that there is a portion that contains font definitions:
[Files]
spr         = sff/system.sff         ;XvCgt@C
snd         = snd/system.snd         ;TEht@C
logo.storyboard      = logo.def            ;St@Ci[hOɎn܂j
intro.storyboard   = intro.def            ;I[vjOt@Ci[hɎn܂j
select         = select.def            ;ZNgt@C
fight         = fight.def            ;t@Cgt@C

font1         = font/8x8.fnt            ;ȉtHgt@C
font2         = font/20x20.fnt


The above portion of code was taken from the system.def of MBC SP.

You can modify those to use any fonts you want but then there lies the complicated part, try out whatever fonts you want to see what happens. But then you have to check the coding where each screen uses that particular font and you will see the coding look like this:
menu.item.font         = 1,0,0

Now the first number refers to the font listed in the:
font1         = font/8x8.fnt
of the portion of system.def code I post above.

So if there a 3 instead of 1 in the first part of the numbers then that would refer to "font3" listed in the system.def font reference coding. Now the second portion of  these numbers refers to the color of the font, 1 thru 9 are the only ones used so you will have to experiment with each font to see what color is rendered. And finally the last protion refers to the position of placement of the fonts where "o" would be to align the fonts centered and "1 thru whatever" would align it to the right and "-1 thru whatever with a "-" (we call these "negative numbers") would align the fonts to the left.

So you will have to experiment with these things to suit your needs.

Also Fred I forgot to change one portion of coding for the SP I sent you in order for it to look correct. In the data folder look for a file named "mugen" which is a CFG file and open it up and change this line:
DoubleRes =2
to this;
DoubleRes =4

This will give it the HD look it is suppose to have.

I hope some of this info helps. Cheers

Offline hyperion76

  • CC In Absentia
  • ****
  • Posts: 162
  • Referrals: 0
Re: changing text size in mugen
« Reply #2 on: July 01, 2009, 11:41:30 PM »
wow yd you always seem to give amazing explanations 8) wish I knew you when I first started. Stuff like this took me forever to figure out ::)

Offline YD

  • ******
  • Posts: 3085
  • Country: 00
  • Referrals: 0
Re: changing text size in mugen
« Reply #3 on: July 02, 2009, 06:40:10 AM »
wow yd you always seem to give amazing explanations 8) wish I knew you when I first started. Stuff like this took me forever to figure out ::)

Thanks Hype, I'm glad you think I explain well, I always think I over explain and that no one knows what the frig I'm going on about.:)

Offline Fredgerd

  • Bass Master
  • Sprite Artist/ Creator
  • ***
  • Posts: 1538
  • Referrals: 0
Re: changing text size in mugen
« Reply #4 on: July 05, 2009, 08:33:54 PM »
ok, so sorry, which number do I change to change the font size???
For those who are curious, yes I am gone and I don't intend to be back soon. I never formally said goodbye to you all, because that always becomes a forum stink. However, to my friends here, I wish you the best. Perhaps I'll be back one day but for now this is goodbye.

-Fred

Offline YD

  • ******
  • Posts: 3085
  • Country: 00
  • Referrals: 0
Re: changing text size in mugen
« Reply #5 on: July 06, 2009, 09:38:35 AM »
ok, so sorry, which number do I change to change the font size???

Refer to my first reply, your cannot simple alter a section of coding that i'm aware of that will change the font size. The way the fot size is displayed is by the way the screen display of which ever option you are viewing, for example if you are looking at the select screen and the fonts seem to big then thats because the setting for that select screen definitions are configured to show big and that will make the fonts look big as well. This Is how I understand it to be. If someone else knows something I don't then please add to this discussion. Also the way the fonts are make and their scale makes them shown large or small. You can alter the fonts path in the system and fight.def files and experiment to see what suits your needs. As far as I know the way thats things are setup of configured in other words is what has presidence over the fonts actuall sizing, I may be wrong but thta just how it looks to me, I have never seen an option to adjust the scale of fonts in any Mugen setup. Once again if anyone else has more info please share with us. One thing I was trying to tell you is the modify the mugen.cfg (configuration file in the "data" folder to adjust the resolution for the SP and this will help some with the scale of the fonts in the lifebars. Again I will post the info:

In the data folder look for a file named "mugen" which is a CFG file and open it up and change this line:
DoubleRes =2
to this;
DoubleRes =4

I posted this info in my first reply but maybe it was unclear to you. I hope this helps you understand a little better.

So basically if you want to adjust the size of the fonts you will need to reconfigure pretty much the whole screenpack in the the system.def and fight.def files, or at least that how I see it.

Offline Fredgerd

  • Bass Master
  • Sprite Artist/ Creator
  • ***
  • Posts: 1538
  • Referrals: 0
Re: changing text size in mugen
« Reply #6 on: July 06, 2009, 06:03:02 PM »
Is it possible to just change the font file used in one place to one thats used in another place?? Like for example the one in the select screen is pretty small. could I change the one in the fight screen to use that font file???
For those who are curious, yes I am gone and I don't intend to be back soon. I never formally said goodbye to you all, because that always becomes a forum stink. However, to my friends here, I wish you the best. Perhaps I'll be back one day but for now this is goodbye.

-Fred

Offline YD

  • ******
  • Posts: 3085
  • Country: 00
  • Referrals: 0
Re: changing text size in mugen
« Reply #7 on: July 07, 2009, 11:32:14 AM »
Is it possible to just change the font file used in one place to one thats used in another place?? Like for example the one in the select screen is pretty small. could I change the one in the fight screen to use that font file???

Sure you could. If you don't know how then what you need to do is look in the system.def and look at the portion of coding where the select screen definitions are located and the first number in the coding that is used for the font reference is the "font(#)" (# is whatever number is listed in the first portion of system.def coding that makes reference to that font listed after this phrase, got it, OK.) Now you will need to go the the fight.def file and add a font line to reference the font you want for the fight screen. Once you have added the line go to the portion of coding that lists the font reference and change that number to the number of the line you added for the font. Got it?

Offline Fredgerd

  • Bass Master
  • Sprite Artist/ Creator
  • ***
  • Posts: 1538
  • Referrals: 0
Re: changing text size in mugen
« Reply #8 on: July 07, 2009, 05:26:46 PM »
not exactly,

So I got the part with the select.def. Where do I put the font line and what do I put for it.

also in the fight def is this the line I'm changing???

sff         = sff/fight.sff         ;ƒXƒvƒ‰ƒCƒgƒtƒ@ƒCƒ‹
snd         = snd/fight.snd         ;ƒTƒEƒ“ƒhƒtƒ@ƒCƒ‹
font1         = font/p1name.fnt      ;ƒtƒHƒ“ƒgƒtƒ@ƒCƒ‹‚P
font2         = font/p2name.fnt      ;ƒtƒHƒ“ƒgƒtƒ@ƒCƒ‹‚Q
font3         = font/p1tname.fnt      ;ƒtƒHƒ“ƒgƒtƒ@ƒCƒ‹‚R
font4         = font/p2tname.fnt      ;ƒtƒHƒ“ƒgƒtƒ@ƒCƒ‹‚S
font5         = font/power.fnt      ;ƒtƒHƒ“ƒgƒtƒ@ƒCƒ‹‚T
font6         = font/timer.fnt      ;ƒtƒHƒ“ƒgƒtƒ@ƒCƒ‹‚U
font7         = font/counter.fnt      ;ƒtƒHƒ“ƒgƒtƒ@ƒCƒ‹‚V
font8         = font/20x20.fnt      ;ƒtƒHƒ“ƒgƒtƒ@ƒCƒ‹‚W
font9         = font/20x20-2.fnt      ;ƒtƒHƒ“ƒgƒtƒ@ƒCƒ‹‚X
fightfx.sff      = sff/fightfx.sff      ;ƒGƒtƒFƒNƒgƒXƒvƒ‰ƒCƒgƒtƒ@ƒCƒ‹
fightfx.air      = sff/fightfx.air      ;ƒGƒtƒFƒNƒgƒAƒjƒ[ƒVƒ‡ƒ“
common.snd      = snd/common.snd      ;í“¬’†‚ÌŒø‰Ê‰¹
For those who are curious, yes I am gone and I don't intend to be back soon. I never formally said goodbye to you all, because that always becomes a forum stink. However, to my friends here, I wish you the best. Perhaps I'll be back one day but for now this is goodbye.

-Fred

Offline YD

  • ******
  • Posts: 3085
  • Country: 00
  • Referrals: 0
Re: changing text size in mugen
« Reply #9 on: July 07, 2009, 05:52:09 PM »
not exactly,

So I got the part with the select.def. Where do I put the font line and what do I put for it.

also in the fight def is this the line I'm changing???

sff         = sff/fight.sff         ;XvCgt@C
snd         = snd/fight.snd         ;TEht@C
font1         = font/p1name.fnt      ;tHgt@CP
font2         = font/p2name.fnt      ;tHgt@CQ
font3         = font/p1tname.fnt      ;tHgt@CR
font4         = font/p2tname.fnt      ;tHgt@CS
font5         = font/power.fnt      ;tHgt@CT
font6         = font/timer.fnt      ;tHgt@CU
font7         = font/counter.fnt      ;tHgt@CV
font8         = font/20x20.fnt      ;tHgt@CW
font9         = font/20x20-2.fnt      ;tHgt@CX
fightfx.sff      = sff/fightfx.sff      ;GtFNgXvCgt@C
fightfx.air      = sff/fightfx.air      ;GtFNgAj��[V
common.snd      = snd/common.snd      ;�퓬̌ʉ

Do this:

sff         = sff/fight.sff         ;XvCgt@C
snd         = snd/fight.snd         ;TEht@C
font1         = font/p1name.fnt      ;tHgt@CP
font2         = font/p2name.fnt      ;tHgt@CQ
font3         = font/p1tname.fnt      ;tHgt@CR
font4         = font/p2tname.fnt      ;tHgt@CS
font5         = font/power.fnt      ;tHgt@CT
font6         = font/timer.fnt      ;tHgt@CU
font7         = font/counter.fnt      ;tHgt@CV
font8         = font/20x20.fnt      ;tHgt@CW
font9         = font/20x20-2.fnt      ;tHgt@CX
font10               = font/(?).fnt <-------- add this line add substitute (?) with the font name of your choice.
fightfx.sff      = sff/fightfx.sff      ;GtFNgXvCgt@C
fightfx.air      = sff/fightfx.air      ;GtFNgAj��[V
common.snd      = snd/common.snd      ;�퓬̌ʉ


Then where the portion of code is that references the font for the fight/whatever it is your changing, change the font number to 10.

Example:

p1.name.font = 8,0, 1  <----  this is the code for the font reference for the player 1 name, so change the first part form 8 to 10, BC 10 is the font # of the line you added and that tells the SP to use that font for the player 1 name.

Forgot to mention that you will find the above portion of code for the player name further along in the fight.def.

 Does this help or should I go further.
« Last Edit: July 07, 2009, 05:53:49 PM by youngdragun »

Offline Fredgerd

  • Bass Master
  • Sprite Artist/ Creator
  • ***
  • Posts: 1538
  • Referrals: 0
Re: changing text size in mugen
« Reply #10 on: July 07, 2009, 06:56:56 PM »
sucess!!!!
For those who are curious, yes I am gone and I don't intend to be back soon. I never formally said goodbye to you all, because that always becomes a forum stink. However, to my friends here, I wish you the best. Perhaps I'll be back one day but for now this is goodbye.

-Fred

Offline YD

  • ******
  • Posts: 3085
  • Country: 00
  • Referrals: 0
Re: changing text size in mugen
« Reply #11 on: July 07, 2009, 07:09:39 PM »
sucess!!!!

 :-X "And another one bites the dust, hey, hey, hey". :)