-
Notifications
You must be signed in to change notification settings - Fork 152
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
Comments
Do you know a way to determine if a program is Win1/2? |
check version in NE header |
It is difficult because the System font is used when no font is specified. |
can we "pre-select" FixedSys for that? |
If this is possible, then this should be fixable as well: |
I think there is something already done like this: |
and dialog templates are needed to be enlarged for getting font information in. how to do this? |
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". |
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. |
it works very well! thanks! |
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.
The text was updated successfully, but these errors were encountered: