MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

Pages: 1

krick
Get Fuzzy
Reged: 02/09/04
Posts: 4235
Send PM


Mame user interface font at small resolutions
#302033 - 01/06/13 09:19 AM


Is there a way to change the internal MAME user interface font to a bitmapped font that looks good at very low resolutions i.e. when used on an arcade monitor?



GroovyMAME support forum on BYOAC



Tomu Breidah
No Problems, Only Solutions
Reged: 08/14/04
Posts: 6819
Loc: Neither here, nor there.
Send PM


Re: Mame user interface font at small resolutions new [Re: krick]
#302034 - 01/06/13 10:00 AM


> Is there a way to change the internal MAME user interface font to a bitmapped font
> that looks good at very low resolutions i.e. when used on an arcade monitor?

http://mrdo.mameworld.info/mame_artwork_supp.php

I'm sure you're aware of ^that - but wouldn't that just depend on the type of font you use? ...I'd guess you'd have to find the right font style, or, if you were really desperate - make your own.



LEVEL-4



krick
Get Fuzzy
Reged: 02/09/04
Posts: 4235
Send PM


Re: Mame user interface font at small resolutions new [Re: Tomu Breidah]
#302035 - 01/06/13 10:40 AM


I've seen Mr. Do's page, however, the problem is that all those fonts are designed for display on a high res PC monitor. I need the exact opposite.

I found that I can tell MAME to use installed Windows truetype fonts by changing the "uifont" entry in mame.ini, however none of the ones I've tried so far look very good at low resolutions.

For example, I believe that the game "Berzerk" runs at 256 x 224. Most truetype fonts look like crap at that resolution in the mame user interface menus.



GroovyMAME support forum on BYOAC



Mr. DoAdministrator
MAME Art Editor
Reged: 09/21/03
Posts: 4875
Loc: California
Send PM


Re: Mame user interface font at small resolutions new [Re: krick]
#302036 - 01/06/13 11:04 AM


> I've seen Mr. Do's page, however, the problem is that all those fonts are designed
> for display on a high res PC monitor. I need the exact opposite.
>
> I found that I can tell MAME to use installed Windows truetype fonts by changing the
> "uifont" entry in mame.ini, however none of the ones I've tried so far look very good
> at low resolutions.
>
> For example, I believe that the game "Berzerk" runs at 256 x 224. Most truetype fonts
> look like crap at that resolution in the mame user interface menus.


Try Verdana or Georgia (those are supposed to look good at lo-res).




RELAX and just have fun. Remember, it's all about the games.




krick
Get Fuzzy
Reged: 02/09/04
Posts: 4235
Send PM


Re: Mame user interface font at small resolutions new [Re: Mr. Do]
#302052 - 01/06/13 11:32 PM


> Try Verdana or Georgia (those are supposed to look good at lo-res).

Nope. I just tried each of them in my mame.ini file and they're both nearly unreadable.

However, I noticed that if I leave the uifont setting *blank*, MAME seems to fall back on some kind of default font that's passable.

I can't figure out what the font is, or where it's coming from.



GroovyMAME support forum on BYOAC



Dullaron
Diablo III - Dunard #1884
Reged: 07/22/05
Posts: 6125
Loc: Fort Worth, Tx
Send PM


Re: Mame user interface font at small resolutions new [Re: krick]
#302053 - 01/06/13 11:46 PM


> > Try Verdana or Georgia (those are supposed to look good at lo-res).
>
> Nope. I just tried each of them in my mame.ini file and they're both nearly
> unreadable.
>
> However, I noticed that if I leave the uifont setting *blank*, MAME seems to fall
> back on some kind of default font that's passable.
>
> I can't figure out what the font is, or where it's coming from.

I gotta try that blink then. I had a problem reading the small screen with the words aren't readable.



W11 Home 64-bit + Nobara OS / AMD Radeon RX 5700 XT / AMD Ryzen 7 3700X 8-Core 3.59 GHz / RAM 64 GB



krick
Get Fuzzy
Reged: 02/09/04
Posts: 4235
Send PM


Re: Mame user interface font at small resolutions new [Re: Dullaron]
#302056 - 01/07/13 01:40 AM


> > However, I noticed that if I leave the uifont setting *blank*, MAME seems to fall
> > back on some kind of default font that's passable.
> >
> I gotta try that blink then. I had a problem reading the small screen with the words
> aren't readable.


In mame.ini, the line is...

uifont default


Just remove the word "default"...

uifont



GroovyMAME support forum on BYOAC



redk9258
Regular
Reged: 09/21/03
Posts: 3968
Loc: Troy, Illinois USA
Send PM


Re: Mame user interface font at small resolutions new [Re: krick]
#302062 - 01/07/13 04:57 AM Attachment: uismall.png 2 KB (3 downloads)


Does it come from what is compiled into MAME?
src\emu\uismall.png

[ATTACHED IMAGE]

Attachment



krick
Get Fuzzy
Reged: 02/09/04
Posts: 4235
Send PM


Re: Mame user interface font at small resolutions new [Re: redk9258]
#302068 - 01/07/13 05:54 AM


> Does it come from what is compiled into MAME?
> src\emu\uismall.png

After digging a little, I found that rendfont.c has this include...

#include "uismall.fh"

...and this line later...

ramfile.open_ram(font_uismall, sizeof(font_uismall));


uismall.fh doesn't appear to be part of the actual source though. Somehow, uismall.png must be converted to uismall.fh as part of compilation process through a magical means that I haven't discovered yet. font_uismall isn't defined anywhere in the source, so I assume it ends up defined in uismall.fh.



GroovyMAME support forum on BYOAC



RobbbertModerator
Sir
Reged: 08/21/04
Posts: 3200
Loc: A long way from you
Send PM


Re: Mame user interface font at small resolutions new [Re: krick]
#302089 - 01/07/13 09:41 AM


> > Does it come from what is compiled into MAME?
> > src\emu\uismall.png
>
> After digging a little, I found that rendfont.c has this include...
>
> #include "uismall.fh"
>
> ...and this line later...
>
> ramfile.open_ram(font_uismall, sizeof(font_uismall));
>
>
> uismall.fh doesn't appear to be part of the actual source though. Somehow,
> uismall.png must be converted to uismall.fh as part of compilation process through a
> magical means that I haven't discovered yet. font_uismall isn't defined anywhere in
> the source, so I assume it ends up defined in uismall.fh.

There's an entry in emu.mak

It's the same 'magic' that turns .lay files into .lh files.



krick
Get Fuzzy
Reged: 02/09/04
Posts: 4235
Send PM


Re: Mame user interface font at small resolutions new [Re: Robbbert]
#302090 - 01/07/13 09:50 AM


>
> There's an entry in emu.mak
>
> It's the same 'magic' that turns .lay files into .lh files.


The only reference in emu.mak is this...

$(EMUOBJ)/rendfont.o: $(EMUOBJ)/uismall.fh


I don't see any tool that converts PNG files into C++ code.



Olivier Galibert
Semi-Lurker
Reged: 09/21/03
Posts: 398
Send PM


Re: Mame user interface font at small resolutions new [Re: krick]
#302111 - 01/07/13 03:19 PM


$(OBJ)/%.fh: $(SRC)/%.png $(PNG2BDC_TARGET) $(FILE2STR_TARGET)
$(PNG2BDC) $< $(OBJ)/temp.bdc
$(FILE2STR) $(OBJ)/temp.bdc $@ font_$(basename $(notdir $<)) UINT8



krick
Get Fuzzy
Reged: 02/09/04
Posts: 4235
Send PM


Re: Mame user interface font at small resolutions new [Re: Olivier Galibert]
#302118 - 01/07/13 05:46 PM


Thanks. That's the spot.

I know why I didn't find it now. I was searching the contents of the src folder and the magic happens in the primary makefile which is outside that folder.

/facepalm


Pages: 1

MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 290 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 2802