http://bugs.winehq.org/show_bug.cgi?id=15906
Summary: EnumFonts returns each font multiple times Product: Wine Version: 1.1.5 Platform: PC-x86-64 URL: http://msdn.microsoft.com/en- us/library/ms533964(VS.85).aspx OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: gdi32 AssignedTo: wine-bugs@winehq.org ReportedBy: goeran@uddeborg.se
Created an attachment (id=17078) --> (http://bugs.winehq.org/attachment.cgi?id=17078) Test program executing EnumFonts()
According to the documentation (see URL) the EnumFonts function returns one (random) font of each available typeface. The Wine implementation returns each typeface many times.
As a test case I installed the typeface "Signet Roundhand" and ran the attached test program. Under indows it returns "Signet Roundhand" once. Under wine it returns it three times, with different values for lfCharSet and tmCharSet.
I also copied the Arial font files from Windows (arial.ttf, ariali.ttf, arialbd.ttf, and arialbi.ttf) to my $HOME/.fonts directory. Under Windows, Arial is returned once with the test program. Under Wine it is returned ten(!) times.
http://bugs.winehq.org/show_bug.cgi?id=15906
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, testcase
http://bugs.winehq.org/show_bug.cgi?id=15906
--- Comment #1 from Göran Uddeborg goeran@uddeborg.se 2009-07-09 15:27:35 --- I just checked Wine 1.1.23, and the problem is still there.
http://bugs.winehq.org/show_bug.cgi?id=15906
Higor Eurípedes heuripedes@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |heuripedes@gmail.com
--- Comment #2 from Higor Eurípedes heuripedes@gmail.com 2009-07-24 07:43:05 --- Same problem on 1.1.26.
http://bugs.winehq.org/show_bug.cgi?id=15906
Rein Klazes wijn@online.nl changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #3 from Rein Klazes wijn@online.nl 2009-08-08 05:30:25 --- Confirming, this is true for EnumFonts16 as well.
There are a number of win16 programs that crash after running out of heap space, just because of the the large number of fonts that EnumFonts return. It is quite possible they would run normally if each font was reported once.
http://bugs.winehq.org/show_bug.cgi?id=15906
Ken Sharp kennybobs@o2.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |19660
http://bugs.winehq.org/show_bug.cgi?id=15906
--- Comment #4 from Bruno Jesus 00cpxxx@gmail.com 2012-01-27 19:14:39 CST --- Created attachment 38574 --> http://bugs.winehq.org/attachment.cgi?id=38574 Compiled example
http://bugs.winehq.org/show_bug.cgi?id=15906
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |00cpxxx@gmail.com
--- Comment #5 from Bruno Jesus 00cpxxx@gmail.com 2012-01-27 20:38:10 CST --- I tried to test this bug but I'm unsure about the results. I installed the Signed Roundhand font from comment 0 and after running the example program I got it listed only once. But installing a typeface means installing the entire font family (italic, bold, regular), right? And as I could not find the other fonts from this set I still consider this bug as open.
Font: http://www.fonts101.com/fonts/view/Handwriting/16214/Signet_Roundhand.aspx
http://bugs.winehq.org/show_bug.cgi?id=15906
--- Comment #6 from Göran Uddeborg goeran@uddeborg.se 2012-01-28 06:53:24 CST --- Created attachment 38580 --> http://bugs.winehq.org/attachment.cgi?id=38580 Font to test with
There are apparently several fonts of the same name. I'm not completely sure what I used when I tested. I should of course have made a better reference to it.
But better late than never. The font you used for testing I also only get once. But If I put the attached font, which I found at http://www.fontesgratis.com.br/s/Signet-Roundhand-ATT.php, I get "Signet Roundhand ATT" listed three times.
http://bugs.winehq.org/show_bug.cgi?id=15906
butraxz@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |butraxz@gmail.com
--- Comment #7 from butraxz@gmail.com 2013-04-21 14:26:32 CDT --- Link is dead. Is still an issue with 1.5.28 or higher ?
http://bugs.winehq.org/show_bug.cgi?id=15906
--- Comment #8 from Bruno Jesus 00cpxxx@gmail.com 2013-04-21 15:23:25 CDT --- There is nothing wrong with the links, the testcase is attached and the font can be downloaded.
Still in wine 1.5.28.
http://bugs.winehq.org/show_bug.cgi?id=15906
Sagawa sagawa.aki+winebugs@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sagawa.aki+winebugs@gmail.c | |om
https://bugs.winehq.org/show_bug.cgi?id=15906
--- Comment #9 from Bruno Jesus 00cpxxx@gmail.com --- Created attachment 56339 --> https://bugs.winehq.org/attachment.cgi?id=56339 hack
In order to test bug 19660 I did this small hack, it affects the enumeration of all font functions so should only be used in this bug.
https://bugs.winehq.org/show_bug.cgi?id=15906
Jens Staal staal1978@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |staal1978@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=15906
--- Comment #10 from Jens Staal staal1978@gmail.com --- This "hack" seems to work quite well. Would it be possible to conditionally enable it when the Windows version is set to Windows 3.11 or lower (so implicitly 16-bit programs which typically have issues with too many fonts) in winecfg?
Would this non-invasive change to all non-Windows 3.11 WINEPREFIXes be an acceptable solution for inclusion?
https://bugs.winehq.org/show_bug.cgi?id=15906
Detlef Riekenberg wine.dev@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |wine.dev@web.de
https://bugs.winehq.org/show_bug.cgi?id=15906
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fgouget@codeweavers.com Keywords| |source
https://bugs.winehq.org/show_bug.cgi?id=15906
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch