https://bugs.winehq.org/show_bug.cgi?id=42238
Bug ID: 42238 Summary: Various UltraISO UI elements do not have smooth fonts Product: Wine Version: unspecified Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: audvare@gmail.com Distribution: ---
Created attachment 56897 --> https://bugs.winehq.org/attachment.cgi?id=56897 Screenshot of issue
I've been wondering if this is something the UltraISO developers intended, but regardless, I have smooth fonts everywhere using fontconfig *except* in certain UltraISO scenarios. Screenshot attached.
Note that the menus correctly render, but the text (which appears to be MS Shell Dlg) does not hint or switch to another font.
My fontconfig has:
<!-- Wine --> <match target="pattern"> <test compare="eq" name="family"> <string>System</string> </test> <test compare="contains" name="family"> <string>MS Shell Dlg</string> </test> <test compare="contains" name="family"> <string>MS Sans Serif</string> </test> <edit binding="same" mode="assign" name="family"> <string>Segoe UI</string> </edit> </match>
https://bugs.winehq.org/show_bug.cgi?id=42238
--- Comment #1 from Andrew Udvare audvare@gmail.com --- Just to note, this problem occurs on Windows too, even with a manifest file telling UltraISO to use the new Common Controls version 6. Would love to see if this can be 'patched' in Wine.
https://bugs.winehq.org/show_bug.cgi?id=42238
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4@web.de
--- Comment #2 from Fabian Maurer dark.shadow4@web.de --- Well, if wine yields the same results as on windows, I doubt it'll be 'fixed' in wine.
https://bugs.winehq.org/show_bug.cgi?id=42238
--- Comment #3 from Andrew Udvare audvare@gmail.com --- This is almost definitely not a bug. The developers intentionally disabled ClearType on most elements of the app with the SystemParametersInfo() function.
https://bugs.winehq.org/show_bug.cgi?id=42238
--- Comment #4 from Andrew Udvare audvare@gmail.com --- The developers forced MS Sans Serif. They use SystemParametersInfo() to get the metrics on how to draw the font. They use CreateFontIndirect() to get the GDI object structure for more metric data. Weird since it is just plain old MS Sans Serif at 8 point.
On a side note, the app is written in Delphi and appears to use the VCL for rendering including text. This seems to mean no ClearType without extra work: https://stackoverflow.com/questions/921249/font-smoothing-in-delphi . So the developers are not doing it.
Hacky workaround: unpack binary, hex edit:
4d532053616e732053600 ("MS Sans Serif\0")
to
5365676f6520554900000 ("Segoe UI\0\0\0\0\0\0")
Still confusing though because in this case, it must be that fontconfig steps in before Wine and smooths out Segoe UI but refuses to present a smooth version of MS Sans Serif (no hints in the font?).
https://bugs.winehq.org/show_bug.cgi?id=42238
--- Comment #5 from Andrew Udvare audvare@gmail.com --- Makes sense now. MS Sans Serif is a bitmap font and will not have hints nor scale well or anything. If an app forces the font, the only solutions are to patch the app or patch Wine.
https://bugs.winehq.org/show_bug.cgi?id=42238
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID
--- Comment #6 from Nikolay Sivov bunglehead@gmail.com --- (In reply to Andrew Udvare from comment #1)
Just to note, this problem occurs on Windows too, even with a manifest file telling UltraISO to use the new Common Controls version 6. Would love to see if this can be 'patched' in Wine.
GDI font rendering has nothing to do with common controls v6.
(In reply to Andrew Udvare from comment #3)
This is almost definitely not a bug. The developers intentionally disabled ClearType on most elements of the app with the SystemParametersInfo() function.
I don't think you can't do that, it's a system-wide switch.
(In reply to Andrew Udvare from comment #4)
On a side note, the app is written in Delphi and appears to use the VCL for rendering including text. This seems to mean no ClearType without extra work: https://stackoverflow.com/questions/921249/font-smoothing-in-delphi . So the developers are not doing it.
This still depends on system configuration, font and font size.
Hacky workaround: unpack binary, hex edit:
4d532053616e732053600 ("MS Sans Serif\0")
to
5365676f6520554900000 ("Segoe UI\0\0\0\0\0\0")
Still confusing though because in this case, it must be that fontconfig steps in before Wine and smooths out Segoe UI but refuses to present a smooth version of MS Sans Serif (no hints in the font?).
Wine doesn't provide Segoe UI. Font program is a separate thing from AA rendering.
https://bugs.winehq.org/show_bug.cgi?id=42238
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #7 from Austin English austinenglish@gmail.com --- Closing.