Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

redirect "System" font to "FixedSys" for win1/2 programs #481

Closed
roytam1 opened this issue Sep 21, 2019 · 10 comments · Fixed by #512
Closed

redirect "System" font to "FixedSys" for win1/2 programs #481

roytam1 opened this issue Sep 21, 2019 · 10 comments · Fixed by #512

Comments

@roytam1
Copy link
Contributor

roytam1 commented Sep 21, 2019

since "System" font is fixed pitch font in win1 and 2, IMO it is better to redirect "System" font to "FixedSys" for win1/2 programs.

@Anixx
Copy link

Anixx commented Sep 23, 2019

Do you know a way to determine if a program is Win1/2?

@roytam1
Copy link
Contributor Author

roytam1 commented Sep 23, 2019

Do you know a way to determine if a program is Win1/2?

check version in NE header

@otya128
Copy link
Owner

otya128 commented Sep 23, 2019

It is difficult because the System font is used when no font is specified.

@roytam1
Copy link
Contributor Author

roytam1 commented Sep 23, 2019

It is difficult because the System font is used when no font is specified.

can we "pre-select" FixedSys for that?

@Anixx
Copy link

Anixx commented Sep 23, 2019

check version in NE header

If this is possible, then this should be fixable as well:
#251

@roytam1
Copy link
Contributor Author

roytam1 commented Sep 24, 2019

If this is possible, then this should be fixable as well

I think there is something already done like this:
f51d3f8

@roytam1
Copy link
Contributor Author

roytam1 commented Oct 4, 2019

and dialog templates are needed to be enlarged for getting font information in. how to do this?

@cracyc
Copy link
Contributor

cracyc commented Oct 4, 2019

It seems like the DS_FIXEDSYS flag would do it but that doesn't work so you'd have to in DIALOG_ParseTemplate16 add DS_SETFONT with result->facename = "FIXEDSYS".

@cracyc
Copy link
Contributor

cracyc commented Oct 13, 2019

To change the non-dialog font since the default dc font is system, SelectFont(hdc, GetStockObject(SYSTEM_FIXED_FONT)) would have to be called for every dc at creation and use except windows with CS_OWNDC and CS_PARENTDC.

@roytam1
Copy link
Contributor Author

roytam1 commented Oct 27, 2019

it works very well! thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants