Author Topic: Set "use system font" on DIALOGs.  (Read 90 times)

0 Members and 1 Guest are viewing this topic.

Offline nekokabu

  • PJ64 Dever
  • Jr. Member
  • *****
  • Posts: 94
  • Karma: +1/-0
Set "use system font" on DIALOGs.
« on: October 09, 2017, 01:06:53 PM »

Plsease set "use system font" on DIALOGs.
(change DIALOGEX, MS Shell Dlg, add style DS_FIXEDSYS, )


When LANG is changed, since an appropriate font is not set, a font whose size is small or difficult to read is used.


I attach the image when "Use System Font" is enabled / disabled

Offline RadeonUser

  • PJ64 Dever
  • Full Member
  • *****
  • Posts: 159
  • Karma: +0/-0
  • SuperFly Deving Guy
Re: Set "use system font" on DIALOGs.
« Reply #1 on: October 10, 2017, 03:17:39 AM »
I will look into it, I hope there aren't too many to change.
What I did notice is the text looks better and cleartype seems to have a better impact.
So it can be read better overall... not a bad thing.
I will definitely make some time for that.

The only thing holding me back from doing it now is that I am too lazy to make a separate project where I can easily commit changes like this.
I will have to make sure to do that one of these days.

Offline RadeonUser

  • PJ64 Dever
  • Full Member
  • *****
  • Posts: 159
  • Karma: +0/-0
  • SuperFly Deving Guy
Re: Set "use system font" on DIALOGs.
« Reply #2 on: October 10, 2017, 05:12:43 AM »
Project64 uses two fonts.
MS Sans Serif
MS Shell Dlg

The default font for most of PJ64 is MS Sans Serif and that font is the one that has problems.
The font does not support smoothing and does not scale properly.
I have changed what I could to MS Shell Dlg but I will see if I can capture any calls to change font and force it to use MS Shell Dlg.

The default plugins seem to use MS Sans Serif as well, that is why I am making this observation.
I believe it would be best if the application had one font only.

--Edit--
Sorry, incomplete information.
PJ64 uses two fonts and setting to MS Shell Dlg allows a choice between either Microsoft Sans Serif and MS Sans Serif.
MS Sans Serif is the one that looks very thin and is not smooth.
Setting to MS Shell Dlg will make PJ64 use the newer version of Microsoft Sans Serif that looks better on newer operating systems.

In the future I will try to use the user's own settings for font and size.
I will likely not revisit this for several months if the change I made works out okay.
« Last Edit: October 10, 2017, 07:24:57 AM by RadeonUser »

Offline RadeonUser

  • PJ64 Dever
  • Full Member
  • *****
  • Posts: 159
  • Karma: +0/-0
  • SuperFly Deving Guy
Re: Set "use system font" on DIALOGs.
« Reply #3 on: October 10, 2017, 03:42:28 PM »
neko, this should be covered under the beta builds under Oct 10.
Is the new font the correct one?

Offline nekokabu

  • PJ64 Dever
  • Jr. Member
  • *****
  • Posts: 94
  • Karma: +1/-0
Re: Set "use system font" on DIALOGs.
« Reply #4 on: October 12, 2017, 02:37:40 PM »
thank you!, bud some dialogs has DIALOG, please change to DIALOGEX of all :)

Offline RadeonUser

  • PJ64 Dever
  • Full Member
  • *****
  • Posts: 159
  • Karma: +0/-0
  • SuperFly Deving Guy
Re: Set "use system font" on DIALOGs.
« Reply #5 on: October 12, 2017, 06:38:33 PM »
I was confused for a bit, I didn't know what you were asking for.

I see the difference now, it's hard to tell on English unless you know there's something different.
I only noticed because I switched to another language with more characters and saw it there, then compared them side by side.

Hopefully this is okay for now.
The future goal is to use the operating system's font and size.
I do not know when that will happen.

Latest build in beta builds should have some changes.

-- Edit --
Hmm, I wonder if I should leave the previous builds on there... I deleted the one from two days ago before giving it much thought.
« Last Edit: October 12, 2017, 06:42:35 PM by RadeonUser »

Offline nekokabu

  • PJ64 Dever
  • Jr. Member
  • *****
  • Posts: 94
  • Karma: +1/-0
Re: Set "use system font" on DIALOGs.
« Reply #6 on: October 13, 2017, 05:30:14 PM »
new ver is so good! no problem:)