http://bugs.winehq.org/show_bug.cgi?id=22912
Summary: Half Life 2 and Portal subtitles unreadable Product: Wine Version: 1.1.44 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: c_winehq@selador.com.au
After installing Steam in a new profile and then using it to download and install Portal, the game runs perfectly except for unreadable dialog captions. (see attachment Portal-glitch02.png)
The screenshot illustrates how the sound effects captions in white are fine, only the dialog captions in red with italics are affected.
I've tried reducing all graphics options and resolutions, to no avail. It looks like something specific to font rendering - the bounding box for the characters is not taking into account their italicization, so the rightmost pixels are being truncated.
The exact same problem was described more than 2 years ago against Half Life 2 (which uses the same core engine) here: http://appdb.winehq.org/objectManager.php?sClass=version&iId=2890 (post titled 'Font rendering oddness' by John Flatness on Thursday November 1st 2007)
It's also been reported downstream in the Crossover bugtracker and they've confirmed the bug but have been unable to take it any further for nearly a year: www.codeweavers.com/support/tickets/browse/?ticket_id=742458;
http://bugs.winehq.org/show_bug.cgi?id=22912
--- Comment #1 from Mykro c_winehq@selador.com.au 2010-05-28 05:26:47 --- Created an attachment (id=28345) --> (http://bugs.winehq.org/attachment.cgi?id=28345) Portal screenshot showing faulty captions
http://bugs.winehq.org/show_bug.cgi?id=22912
Christoph Korn c_korn@gmx.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |c_korn@gmx.de
http://bugs.winehq.org/show_bug.cgi?id=22912
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |DUPLICATE
--- Comment #2 from Vitaliy Margolen vitaliy@kievinfo.com 2010-05-28 16:49:57 --- Duplicate
*** This bug has been marked as a duplicate of bug 22765 ***
http://bugs.winehq.org/show_bug.cgi?id=22912
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Vitaliy Margolen vitaliy@kievinfo.com 2010-05-28 16:50:05 --- Closing
http://bugs.winehq.org/show_bug.cgi?id=22912
--- Comment #4 from Christoph Korn c_korn@gmx.de 2010-05-29 08:34:32 --- This bug is not fixed: http://bugs.winehq.org/show_bug.cgi?id=22765#c22
http://bugs.winehq.org/show_bug.cgi?id=22912
Jeff Zaroyko jeffz@jeffz.name changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |UNCONFIRMED Resolution|DUPLICATE |
--- Comment #5 from Jeff Zaroyko jeffz@jeffz.name 2010-05-29 08:39:41 --- Christoph mentioned on irc that this bug was present prior to the regression identified in bug 22765. Reopening.
http://bugs.winehq.org/show_bug.cgi?id=22912
--- Comment #6 from zil zilforever@gmail.com 2010-05-29 13:20:49 --- Created an attachment (id=28388) --> (http://bugs.winehq.org/attachment.cgi?id=28388) font in menu
I can confirm that in wine-1.2-rc2
but also some fonts in menu looks bad
http://bugs.winehq.org/show_bug.cgi?id=22912
--- Comment #7 from Christoph Korn c_korn@gmx.de 2010-05-29 13:50:57 --- Created an attachment (id=28394) --> (http://bugs.winehq.org/attachment.cgi?id=28394) No font issues in the menu here
Hm, I cannot confirm the font issues you have in the menu.
Looks better on my side.
http://bugs.winehq.org/show_bug.cgi?id=22912
Alexey Loukianov mooroon2@mail.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mooroon2@mail.ru
--- Comment #8 from Alexey Loukianov mooroon2@mail.ru 2010-06-04 05:37:38 --- I can confirm that the problems with displaying subtitles in italic font happen on my workstation running wine1.2-rc2. Affected games I had tested are latest Steam version of HalfLife 2 and latest Steam version of Portal.
Incorrect font rendering looks just the same as on the first sceenshot attached to this bug report.
http://bugs.winehq.org/show_bug.cgi?id=22912
Fab netfab@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #9 from Fab netfab@gmail.com 2010-06-12 02:42:54 --- *** This bug has been confirmed by popular vote. ***
http://bugs.winehq.org/show_bug.cgi?id=22912
Fab netfab@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |netfab@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=22912
--- Comment #10 from Mykro c_winehq@selador.com.au 2010-06-15 04:06:32 --- I can confirm that the italic captions are still faulty in wine 1.2-rc3, and the original screenshot "Portal screenshot showing faulty captions" still applies.
http://bugs.winehq.org/show_bug.cgi?id=22912
--- Comment #11 from Alexey Loukianov mooroon2@mail.ru 2010-06-21 16:03:38 --- Confirming the bug to happen with wine 1.2-rc4. I had a suspicion that it might be somehow related with the CS:Source fonts rendering crash that was discussed here: http://bugs.winehq.org/show_bug.cgi?id=7698#c92
Most interesting comment is #101 from Stefan Dösinger about the way the game seems to be rendering the text and possible differences between FreeType and MS Windows font rendering subsystems. The crash that discussion was about had been fixed but the clipping of the italic letters might be very similar in it's cause.
Unfortunately I can barely see how to check if my proposal makes sense.
http://bugs.winehq.org/show_bug.cgi?id=22912
--- Comment #12 from Alexey Loukianov mooroon2@mail.ru 2010-06-22 03:12:01 --- I had successfully tracked this bug down a bit. Looks like this bug is fonts-related and somehow complicated. In case you've got no "Tahoma.ttf" available either fontconfig-wide, Xfs/Xorg-wide and Wine-wide (i.e. inside WINEPREFIX and /usr/share/wine/fonts), and you had provided a reasonable substitute to it using Wine's registry (for example "HKCU\Software\Wine\Fonts\Replacements\Tahoma" = "Liberation Sans") then the rendered font still would be non-ideal, but at least italic subtitles would not be "clipped". I would attach example screenshot I had taken couple minutes ago with wine-1.2-rc4 shortly afterwards.
Removing wine's font replacement and using wine's version of "Tahoma" (i.e. "tahoma.ttf" and "tahomabd.ttf" from "/usr/share/wine/fonts") leads to a problems with font rendering in menus like ones that were attached to this bug in comment #6. Also all subtitles with italicized got clipped on the right side of each letter.
Having original MS version of Tahoma installed either system wide or inside related WINEPREFIX seems to "almost fix" font renderings in menus (there still are some rendering glitches that might be considered bugs), and clipped italic subtitles also present.
No matter which version of "Tahoma" is used adding wine font replacement like "HKCU\Software\Wine\Fonts\Replacements\Tahoma" = "Liberation Sans" fixes the displaying of italic subtitles (as shown at attached screenshot). Still the font seems to be cripped (what had happend to the font smoothing?) and I doubt if it is rendered with the correct color.
Inspecting the contents of the "HKCU\Software\Wine\Fonts\External Fonts" registry key shows that the original Tahoma font haven't got pre-cooked TTF files for both "Italic" and "Bold Italic" (tahomai.ttf and tahomabi.ttf) and it looks like this is the key point that triggers this bug. Having replacement font defined for Tahoma makes wine use tahoma.ttf/tahomabd.ttf for Regular/Bold Tahoma, while using LiberationSans-BoldItalic.ttf/LiberationSans-Italic.ttf replacements for "Bold Italic"/"Italic" Tahoma.
http://bugs.winehq.org/show_bug.cgi?id=22912
--- Comment #13 from Alexey Loukianov mooroon2@mail.ru 2010-06-22 03:13:21 --- Created an attachment (id=29064) --> (http://bugs.winehq.org/attachment.cgi?id=29064) Almost correct italic subs rendering when using "Liberation Sans" font replacement.
Almost correct italic subs rendering when using "Liberation Sans" font replacement.
http://bugs.winehq.org/show_bug.cgi?id=22912
Mike mozilla_bugs@mail.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mozilla_bugs@mail.ru
http://bugs.winehq.org/show_bug.cgi?id=22912
--- Comment #14 from Mykro c_winehq@selador.com.au 2010-11-24 04:44:12 CST --- Created an attachment (id=32106) --> (http://bugs.winehq.org/attachment.cgi?id=32106) Wine 1.3.7 with Portal unmodified
Unfortunately things seem to have gone backwards a little.
I started with a clean Ubuntu Maverick install, proprietary NVIDIA drivers, installed Wine 1.3.7 from the "Ubuntu Wine Team" PPA, addons such as the MS TT corefonts are also installed (can use Comic Sans etc in OO), installed Steam client, installed Portal through Steam.
Now the red dialog fonts are even more unreadable than before. Even the white fonts have picked up some odd artifacting now, and sometimes there are entire lines of random unicode characters.
http://bugs.winehq.org/show_bug.cgi?id=22912
--- Comment #15 from Mykro c_winehq@selador.com.au 2010-11-24 04:48:27 CST --- Created an attachment (id=32107) --> (http://bugs.winehq.org/attachment.cgi?id=32107) Wine 1.3.7 with Liberation Sans replacement
I then made the suggested modification: ran regedit under WINE, created a key at: "HKCU\Software\Wine\Fonts\Replacements", created a String Value of name "Tahoma" with value "Liberation Sans".
The red font got better, but the white font got worse, with lots of random unicode characters, sometimes entire lines of them.
http://bugs.winehq.org/show_bug.cgi?id=22912
--- Comment #16 from Mykro c_winehq@selador.com.au 2010-11-24 04:50:57 CST --- (In reply to comment #14)
Please ignore the text ", and sometimes there are entire lines of random unicode characters.", this actually applies to the Liberation Sans replacement comment following.
http://bugs.winehq.org/show_bug.cgi?id=22912
Berillions berillions@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |berillions@gmail.com
--- Comment #17 from Berillions berillions@gmail.com 2011-08-14 11:55:56 CDT --- Actually, there isn't a solution to correct this font problem ? Because, I would want to play at HL2 in english with the french subtitles and the white fonts are always unreadable, even with the string value in regedit.
Thanks
http://bugs.winehq.org/show_bug.cgi?id=22912
--- Comment #18 from Alexey Loukianov mooroon2@mail.ru 2011-09-09 13:02:17 CDT --- Just tried HL2 with Wine 1.3.27. Bug is still here and unfortunately things got worse: italic subtitles fonts now look even worse than before. I suspect that this might be somehow related to the "Infinality" freetype patches I use here and/or with Wine/Xft/FreeType fonts AA algorithms being used. Going to check with vanilla FreeType + disabled AA and Hinting and also going to compile an older version of Wine and check if this is the regression in Wine itself.
http://bugs.winehq.org/show_bug.cgi?id=22912
--- Comment #19 from Alessandro Pezzoni alessandro_pezzoni@lavabit.com 2012-02-12 13:42:32 CST --- Created attachment 38832 --> http://bugs.winehq.org/attachment.cgi?id=38832 wine 1.4rc3 log from Half Life 2
This bug is still present in wine 1.4rc3. I tried the proposed replacement, but that didn't seem to change anything. This log is from Half Life 2 (Orange Box).
http://bugs.winehq.org/show_bug.cgi?id=22912
Bitos thebitos@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |thebitos@hotmail.com
--- Comment #20 from Bitos thebitos@hotmail.com 2012-03-21 19:17:25 CDT --- Bug still present in Wine 1.4 stable
http://bugs.winehq.org/show_bug.cgi?id=22912
arthur.huillet@free.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |arthur.huillet@free.fr
http://bugs.winehq.org/show_bug.cgi?id=22912
Deve deveee@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |deveee@gmail.com
--- Comment #21 from Deve deveee@gmail.com 2012-12-10 13:25:52 CST --- Edit: hl2/resource/ClientScheme.res
There you have a lot of options, for example: "italic" "1"
You can set it to 0. Also you can change font, disable antialiasing or do anything other.
If you are playing Episode 1, you should edit: episodic/resource/ClientScheme.res
Other games should have similar files.
http://bugs.winehq.org/show_bug.cgi?id=22912
Andrey Gusev andrey.goosev@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |andrey.goosev@gmail.com
--- Comment #22 from Andrey Gusev andrey.goosev@gmail.com --- Still in 1.7.9
https://bugs.winehq.org/show_bug.cgi?id=22912
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |scrimekiler@yahoo.fr
--- Comment #23 from Austin English austinenglish@gmail.com --- *** Bug 34019 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=22912
Robert Walker bob.mt.wya@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |bob.mt.wya@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=22912
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #24 from joaopa jeremielapuree@yahoo.fr --- Still a bug in current wine? (wine-3.4)
https://bugs.winehq.org/show_bug.cgi?id=22912
--- Comment #25 from Deve deveee@gmail.com --- After so many years I'm not a player anymore, or I can be dead, or whatever :p and you can check it too.
https://bugs.winehq.org/show_bug.cgi?id=22912
tokktokk fdsfgs@krutt.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fdsfgs@krutt.org
https://bugs.winehq.org/show_bug.cgi?id=22912
Matheus matheus.venturini@acad.ufsm.br changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |matheus.venturini@acad.ufsm | |.br
--- Comment #26 from Matheus matheus.venturini@acad.ufsm.br --- I tested Portal with Wine 7.0 and it still had this issue. However, I couldn't test with the latest development version, 7.12.
https://bugs.winehq.org/show_bug.cgi?id=22912
VladimirVSC VladimirVSC@yandex.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |VladimirVSC@yandex.ru
--- Comment #27 from VladimirVSC VladimirVSC@yandex.ru --- The bug still presents in 7.21