Use Windows' default font

Started by bvanoudtshoorn, December 02, 2008, 23:04:12

Previous topic - Next topic

bvanoudtshoorn

The font choice in the program is a little bit, well, erratic. In places it's MS Shell Dlg, in others it's the font specified in the theme. It'd be nice if the theme font was used throughout the app, because a) it'd make OpenMPT more visually consistent, both internally and across the system, and b) it'd allow people to use non-bitmapped fonts, and thus antialiasing and subpixel hinting.

I'm not really concerned about the pattern editor in this context; I know that that is literally a couple of bitmaps. Just the rest of the interface's fonts.

LPChip

Can you be a bit more specific about what font is used where?

I have a bit of trouble thinking what font is different.
"Heh, maybe I should've joined the compo only because it would've meant I wouldn't have had to worry about a damn EQ or compressor for a change. " - Atlantis
"yes.. I think in this case it was wishful thinking: MPT is makng my life hard so it must be wrong" - Rewbs

bvanoudtshoorn

Look at the difference between the menus and, say, the font in the instrument name input.

bvanoudtshoorn

OK, screenshots.



And at 300% (uninterpolated) zoom, you can see how the font used in the orderlist is nicely antialiased with subpixel hinting, whereas the font used in various other places in the system isn't.


Saga Musix

I have replaced any occurrences of "MS Shell Dlg" by "MS Sans Serif" which is used everywhere else. Can you confirm that this looks as desired? It is well possible that I have to do it the other way around, since I read on the web that "MS Shell Dlg" seems to replace the font with the system's standard font.
(removed files)
» No support, bug reports, feature requests via private messages - they will not be answered. Use the forums and the issue tracker so that everyone can benefit from your post.

bvanoudtshoorn

Thanks Jojo! Sorry I took so long to get back to you on this...

The second one (MS Shell Dlg) looks as though it's been replaced, not with the system's standard font (which on my theme is Corbel, which incidentally is a very pretty font, particularly under FreeType/GTK), but at least with an antialiased font.

bvanoudtshoorn

More digging. It looks as though the registry key HKLM\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes defines... font substitutions! Like MS Shell Dlg, on my machine, is replaced by Microsoft Sans Serif, and MS Shell Dlg 2 is replaced by Tahoma. Weird that it's in HKLM, not HKCU. :/

Couldn't resist blogging this oddity, either.

Saga Musix

Well, then your theme probably doesn't set the fonts that have to be replaced correctly? :D
Are you willing to test a few more default fonts to check if they break the program's layout?
» No support, bug reports, feature requests via private messages - they will not be answered. Use the forums and the issue tracker so that everyone can benefit from your post.

bvanoudtshoorn

If I get a chance... I haven't got much time at the moment. After all, I'm getting married on Saturday. :D

psishock

omg, best luck Barry, be good and send us some pictures will you? (not those dirty ones =)
I'm as calm as a synth without a player.  (Sam_Zen)

LPChip

Quote from: "bvanoudtshoorn"If I get a chance... I haven't got much time at the moment. After all, I'm getting married on Saturday. :D

In order to avoid an offtopic conversation, I've started a new one :)

http://forum.openmpt.org/index.php?msg=22217.0#msg22217
"Heh, maybe I should've joined the compo only because it would've meant I wouldn't have had to worry about a damn EQ or compressor for a change. " - Atlantis
"yes.. I think in this case it was wishful thinking: MPT is makng my life hard so it must be wrong" - Rewbs

Saga Musix

Relabs and me found out that there's a problem with changing the font to "MS Shell Dlg". It throws an access violation into the debug log which doesn't hapen with "MS Sans Serif". Hmm, strange enough, but we won't change the font then.
» No support, bug reports, feature requests via private messages - they will not be answered. Use the forums and the issue tracker so that everyone can benefit from your post.

Saga Musix

MS Shell Dlg is now used; Please confirm that this has been added as wished in OpenMPT 1.18 release candidate. You can set the thread status to S=C yourself then.
» No support, bug reports, feature requests via private messages - they will not be answered. Use the forums and the issue tracker so that everyone can benefit from your post.

bvanoudtshoorn

Awesomesauce. Thanks Jojo.