|
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
[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
|
|
|
Re: Mame user interface font at small resolutions
[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. Do |
MAME Art Editor
|
|
|
Reged: 09/21/03
|
Posts: 4875
|
Loc: California
|
|
Send PM
|
|
|
Re: Mame user interface font at small resolutions
[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.
|
|
|
Re: Mame user interface font at small resolutions
[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
[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
|
|
|
Re: Mame user interface font at small resolutions
[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
|
|
|
|
Does it come from what is compiled into MAME? src\emu\uismall.png
[ATTACHED IMAGE]
|
|
|
|
Re: Mame user interface font at small resolutions
[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
|
|
|
Re: Mame user interface font at small resolutions
[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.
|
|
|
|
Re: Mame user interface font at small resolutions
[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.
|
|
|
|
Re: Mame user interface font at small resolutions
[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
|
|
|
|
Re: Mame user interface font at small resolutions
[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
|
|
|