https://bugs.winehq.org/show_bug.cgi?id=51041
Bug ID: 51041 Summary: Wine does not enumerate all fonts Product: Wine Version: unspecified Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: gdi32 Assignee: wine-bugs@winehq.org Reporter: vladimir.kokovic@gmail.com Distribution: ---
I have regularly installed 3 TTF fonts for my needs and when I wanted to use them, I saw wine not offer all 3 but only one of them. As all 3 are necessary, to determine what it is about, I wrote the test program that uses EnumFontFamiliesExW. The problem is probably the fact that 2 fonts that are not displayed in the font list, that they are OpenType fonts.
The result of that program in Windows10: Terminal vk INSTALLED. Less Perfect DOS VGA INSTALLED. More Perfect DOS VGA INSTALLED.
The result of that program in Wine: Terminal vk INSTALLED. Less Perfect DOS VGA NOT INSTALLED. More Perfect DOS VGA NOT INSTALLED.
If necessary, I will also provide the test program and fonts.
Vladimir Koković, DP senior(70), Serbia, Belgrade, 22.April 2021
https://bugs.winehq.org/show_bug.cgi?id=51041
--- Comment #1 from Nikolay Sivov bunglehead@gmail.com --- Which fonts have you installed, is it possible to mention or link them here? How are you installing them? Please attach test program too.
https://bugs.winehq.org/show_bug.cgi?id=51041
--- Comment #2 from Vladimir Koković vladimir.kokovic@gmail.com --- Link for fonts is: http: //laemeur.sdf.org/fonts/ The test program is attached. For test used "clang -cc1 version 11.0.0 based upon LLVM 11.0.0 default target x86_64-unknown-linux-gnu" and wine "wine64 version = wine-6.6-348-g08c6114fbbd"
https://bugs.winehq.org/show_bug.cgi?id=51041
--- Comment #3 from Vladimir Koković vladimir.kokovic@gmail.com --- Created attachment 69899 --> https://bugs.winehq.org/attachment.cgi?id=69899 Test program
https://bugs.winehq.org/show_bug.cgi?id=51041
--- Comment #4 from Nikolay Sivov bunglehead@gmail.com --- Thanks. How did you install these fonts in Wine?
https://bugs.winehq.org/show_bug.cgi?id=51041
--- Comment #5 from Vladimir Koković vladimir.kokovic@gmail.com --- I installed the fonts normally in linux and wine found them in /root/.local/share/fonts
https://bugs.winehq.org/show_bug.cgi?id=51041
--- Comment #6 from Nikolay Sivov bunglehead@gmail.com --- Created attachment 69900 --> https://bugs.winehq.org/attachment.cgi?id=69900 patch
Thanks. It fails on charset mask test, because face->fs.fsCsb[0] is 0, which is likely caused by ulCodePageRange1 == 0 in OS/2 table. Windows returns OEM_CHARSET for this font, attached patch fixes it for me.
https://bugs.winehq.org/show_bug.cgi?id=51041
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1
--- Comment #7 from Nikolay Sivov bunglehead@gmail.com --- Confirming.
https://bugs.winehq.org/show_bug.cgi?id=51041
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|unspecified |6.6
https://bugs.winehq.org/show_bug.cgi?id=51041
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Wine does not enumerate all |Scalable fonts with |fonts |fsCsb[0] == 0 are not | |enumerated correctly
https://bugs.winehq.org/show_bug.cgi?id=51041
Jactry Zeng jactry92@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jactry92@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=51041
--- Comment #8 from Vladimir Koković vladimir.kokovic@gmail.com --- With patch who did Nikolay Sivov test program is now OK: Terminal vk INSTALLED. Less Perfect DOS VGA INSTALLED. More Perfect DOS VGA INSTALLED. 4 truetype lfHeight=32 lfWidth=16 lfEscapement=0 lfOrientation=0 lfWeight=400 lfItalic=0 lfUnderline=0 lfStrikeOut=0 lfCharSet=255 lfPitchAndFamily=49 lfFaceName=L"Less Perfect DOS VGA" 4 truetype lfHeight=32 lfWidth=18 lfEscapement=0 lfOrientation=0 lfWeight=400 lfItalic=0 lfUnderline=0 lfStrikeOut=0 lfCharSet=255 lfPitchAndFamily=49 lfFaceName=L"More Perfect DOS VGA" 4 truetype lfHeight=32 lfWidth=18 lfEscapement=0 lfOrientation=0 lfWeight=500 lfItalic=0 lfUnderline=0 lfStrikeOut=0 lfCharSet=0 lfPitchAndFamily=49 lfFaceName=L"Terminal vk"
But in wineconsole->Properties->Font still lack in the list of "Less Perfect Dos Vga" as well as "More Perfect Dos Vga".
https://bugs.winehq.org/show_bug.cgi?id=51041
--- Comment #9 from Nikolay Sivov bunglehead@gmail.com --- This time it fails a charset test in client program, conhost, see validate_font(pass=0).
https://bugs.winehq.org/show_bug.cgi?id=51041
--- Comment #10 from Vladimir Koković vladimir.kokovic@gmail.com --- (In reply to Nikolay Sivov from comment #9)
This time it fails a charset test in client program, conhost, see validate_font(pass=0).
What now this means, new bug for each program ?
https://bugs.winehq.org/show_bug.cgi?id=51041
--- Comment #11 from Nikolay Sivov bunglehead@gmail.com --- In general yes, we try to use one bug report per problem, once it's clear what it is. In this case we could wait for enumeration fix to get in first, and then deal with console window problem. They are clearly dependent.
https://bugs.winehq.org/show_bug.cgi?id=51041
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |8241d21ae0d385bb43693032005 | |6d16a8906caf5 Resolution|--- |FIXED Status|NEW |RESOLVED
--- Comment #12 from Nikolay Sivov bunglehead@gmail.com --- This is fixed now, 8241d21ae0d385bb436930320056d16a8906caf5. Vladimir, please open another report for the problem you mentioned in comment 8.
https://bugs.winehq.org/show_bug.cgi?id=51041
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #13 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 6.8.
https://bugs.winehq.org/show_bug.cgi?id=51041
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |6.0.x
https://bugs.winehq.org/show_bug.cgi?id=51041
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|6.0.x |---
--- Comment #14 from Michael Stefaniuc mstefani@winehq.org --- Removing the 6.0.x milestone from bug fixes included in 6.0.2.