http://bugs.winehq.org/show_bug.cgi?id=15253
Summary: Bitmap Font Problem Product: Wine Version: 1.1.4 Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: fonts AssignedTo: wine-bugs@winehq.org ReportedBy: giuseppe.adamo@gmail.com
Created an attachment (id=16039) --> (http://bugs.winehq.org/attachment.cgi?id=16039) Bitmap Font Test Program
I am actually trying to run under Linux a VB6 windows application for CNC operators. Everything works fine, but I have found a problem when using bitmap fonts (tipically a .FON file type). It seems that only one character is printed to the screen, the char that is defined as the 'Default char' in the bitmap font header. I simplified the problem writing a really small VB6 application that only calls the font dialog using COMDLG32.OCX. As you can see, even the standard dialog, when pointing to my font (WTerms1x), prints the test string using only one character.
To setup the wine environment to run my application:
1) Extract the attached .zip archive (BitmapFonts.zip) in a directory of your choice. 2) Copy the COMDLG32.OCX control in: ~/.wine/drive_c/windows/system32 3) Point to the above directory and register the activeX control by typing: regsvr32 ./COMDLG32.OCX 4) Copy the SINGOLO.FON font file in: ~/.wine/drive_c/windows/Fonts 5) Run the registry editor by typing 'wine regedit' 6) Register the SINGOLO.FON font so that wine can see it. Point to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts 7) Add a string key named WTerms1x with the value: C:\Windows\Fonts\SINGOLO.FON
Now, from the directory where you extracted BitmapFonts.zip, run the command: wine BMPFontTest.exe then press the button on the main form. If the font SINGOLO.FON has been correctly registered, you should see the standard windows font dialog pointing to the font WTerms1x. Taking a look at the example text in the dialog, you should notice that the test string is composed all of the same (wrong) character.
To verify that the .FON file is correct and that probably wine prints only the 'Default char', I have included a bitmap font utility, Fony, that can help you verify the font and change/check the 'Default char' attribute. Fony is freeware and can be downloaded from http://hukka.furtopia.org/
I hope for a reply since that problem 'IS A PROBLEM' for my application.
In the meanwhile ... VIVA WINE !!! :D
http://bugs.winehq.org/show_bug.cgi?id=15253
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|fonts |gdi32
--- Comment #1 from Dmitry Timoshkov dmitry@codeweavers.com 2008-09-12 05:51:37 --- There is no need for the test program, it's enough to install the font file, add it to the registry, and run notepad (Edit -> Font).
The problem is that the font is broken from the Wine point of view, it has charset set to 2 (SYMBOL_CHARSET). If Windows handles that, Wine should be fixed, but as a workarond you could set the font charset to 0.
http://bugs.winehq.org/show_bug.cgi?id=15253
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download
http://bugs.winehq.org/show_bug.cgi?id=15253
--- Comment #2 from Giuseppe Adamo giuseppe.adamo@gmail.com 2008-09-16 04:38:39 --- (In reply to comment #1)
There is no need for the test program, it's enough to install the font file, add it to the registry, and run notepad (Edit -> Font).
The problem is that the font is broken from the Wine point of view, it has charset set to 2 (SYMBOL_CHARSET). If Windows handles that, Wine should be fixed, but as a workarond you could set the font charset to 0.
First of all thank you very much for the suggestion. I changed the charset code from 2 to 0 and this way the attached example, BMPFontTest.zip works fine. But, when I tried to use the fixed font with my VB6 program it still had visualization problems. Again I started to simplify the problem and wrote two simple VB6 applications that you can find attached to this thread.
The first one, BMPFontTest_2.zip, simply has a label control dropped on a form with the property font set at DESIGN-TIME. This example has no lines of code and doesn't work.
The second one, BMPFontTest_3.zip, is the same application as the above one but it sets the font name ad size at RUN-TIME. This example works fine !
I don't know the reason of this behavior but settings fonts properties for controls at run time is a good workaround. It seems, but it's only an impression, that all the design-time properties for fonts are ignored or not set. When using bitmap fonts, the problem is evident and visible since nothing or strange characters are printed; but when using true type fonts the result is that, apparently, default fonts with default sizes are used.
http://bugs.winehq.org/show_bug.cgi?id=15253
--- Comment #3 from Giuseppe Adamo giuseppe.adamo@gmail.com 2008-09-16 04:39:52 --- Created an attachment (id=16126) --> (http://bugs.winehq.org/attachment.cgi?id=16126) Bitmap Font Test 2
http://bugs.winehq.org/show_bug.cgi?id=15253
--- Comment #4 from Giuseppe Adamo giuseppe.adamo@gmail.com 2008-09-16 04:40:26 --- Created an attachment (id=16127) --> (http://bugs.winehq.org/attachment.cgi?id=16127) Bitmap Font Test 3
http://bugs.winehq.org/show_bug.cgi?id=15253
Gabriele Moabiti gabmoa@yahoo.it changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gabmoa@yahoo.it
--- Comment #5 from Gabriele Moabiti gabmoa@yahoo.it 2008-09-25 04:19:21 ---
The result of this bug is the fonts are wrong or have a wrong size in the vb6 app with usercontrols and propertybags (about 99% of real vb6 apps :). In the vb slang this set is performed in the "design time".
http://bugs.winehq.org/show_bug.cgi?id=15253
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #6 from Austin English austinenglish@gmail.com 2010-06-04 00:34:56 --- Still present in wine-1.2-rc2-111-g9aa9a12.
http://bugs.winehq.org/show_bug.cgi?id=15253
butraxz@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |butraxz@gmail.com
--- Comment #7 from butraxz@gmail.com 2012-05-18 05:48:43 CDT --- This bug has not been updated for two years and OP by four. Is this still an issue i current (1.5.4) or newer wine ? You may also close this as abandoned if you feel that that this is issue is no longer relevant to you.
https://bugs.winehq.org/show_bug.cgi?id=15253
--- Comment #8 from Ken Sharp imwellcushtymelike@gmail.com --- Is this still an issue in Wine 1.7.45 or later?
https://bugs.winehq.org/show_bug.cgi?id=15253
super_man@post.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |focht@gmx.net, | |super_man@post.com
https://bugs.winehq.org/show_bug.cgi?id=15253
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |ABANDONED Summary|Bitmap Font Problem |VB6 application doesn't | |fully render text using | |custom bitmap font (only | |one character shown)
--- Comment #9 from Anastasius Focht focht@gmx.net --- Hello folks,
since no one bothered to retest despite repeated requests, resolving 'ABANDONED' here.
Regards
https://bugs.winehq.org/show_bug.cgi?id=15253
--- Comment #10 from Nikolay Sivov bunglehead@gmail.com --- Please retest if there's a working download - small test application in this case.
https://bugs.winehq.org/show_bug.cgi?id=15253
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|ABANDONED |FIXED
--- Comment #11 from Nikolay Sivov bunglehead@gmail.com --- SINGOLO.FON works fine on Windows and on Wine's notepad. Test application works are well - sample text in font selection dialog is "Symbol", just like on Windows.
P.S. if you don't want to retest just keep it open, where there's everything to reproduce an issue.
https://bugs.winehq.org/show_bug.cgi?id=15253
--- Comment #12 from Anastasius Focht focht@gmx.net --- Hello Nikolay,
--- quote --- P.S. if you don't want to retest just keep it open, where there's everything to reproduce an issue. --- quote ---
well, I already overextend my scope of work a lot in order to resolve/repair/revive many tickets but sometimes there is a limit for me.
In tickets where retesting has been requested at least two successive times and no one bothered to respond I make my point this way to force people still interested to react or not (even if a test case is present).
If you don't want that then ask certain people to not add me to all kinds of tickets. The problem is that adding/CC me to tickets raises some sort of expectation "focht is going to look at this", "let focht decide". This really creates a burden for me and I have to react somehow.
I spend a large amount of my time on things I don't really want to do but since I have the impression that not many people seem to actively try to reduce the number of open Bugzilla issues - I do it - but its no fun to be honest. And if you really think about me handling many of these simpler triaging tasks - it's a huge waste of my resource.
/rant off
Anyway, thanks for retesting this on your own.
Regards
https://bugs.winehq.org/show_bug.cgi?id=15253
--- Comment #13 from Nikolay Sivov bunglehead@gmail.com --- (In reply to Anastasius Focht from comment #12)
Hello Nikolay,
--- quote --- P.S. if you don't want to retest just keep it open, where there's everything to reproduce an issue. --- quote ---
well, I already overextend my scope of work a lot in order to resolve/repair/revive many tickets but sometimes there is a limit for me.
In tickets where retesting has been requested at least two successive times and no one bothered to respond I make my point this way to force people still interested to react or not (even if a test case is present).
In case we need some instruction from OP on how to reproduce I totally agree, no response or any sign of interest from reporter then let's close as abandoned. Same case if there's no way to retest anymore because servers are dead, or trial versions don't exists anymore or never did, etc.
But if there's a test application or working download link and detailed instructions, it doesn't matter if OP still cares or not.
If you don't want that then ask certain people to not add me to all kinds of tickets. The problem is that adding/CC me to tickets raises some sort of expectation "focht is going to look at this", "let focht decide". This really creates a burden for me and I have to react somehow.
I don't know why those certain people are doing it, I thought it was on your approval actually, a person that CCed you on this particular bug is not capable of listening I'm afraid.
I spend a large amount of my time on things I don't really want to do but since I have the impression that not many people seem to actively try to reduce the number of open Bugzilla issues - I do it - but its no fun to be honest.
And thank you very much for spending time on that, I don't mean to diminish in any way the work you do.
And if you really think about me handling many of these simpler triaging tasks - it's a huge waste of my resource.
I agree, I don't expect you to do that. Also I don't expect bugs to be closed because of that, somebody else might take a look eventually years from now, and if a report is closed nobody will.
/rant off
Anyway, thanks for retesting this on your own.
Regards
https://bugs.winehq.org/show_bug.cgi?id=15253
--- Comment #14 from Austin English austinenglish@gmail.com --- (In reply to Nikolay Sivov from comment #13)
(In reply to Anastasius Focht from comment #12)
If you don't want that then ask certain people to not add me to all kinds of tickets. The problem is that adding/CC me to tickets raises some sort of expectation "focht is going to look at this", "let focht decide". This really creates a burden for me and I have to react somehow.
You're free to un-cc yourself if you're uninterested in the bug (you can do that with mine if they're uninteresting, but I hope not ;) ).
I don't know why those certain people are doing it, I thought it was on your approval actually, a person that CCed you on this particular bug is not capable of listening I'm afraid.
+1 to both comments.
https://bugs.winehq.org/show_bug.cgi?id=15253
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #15 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.9.0.
https://bugs.winehq.org/show_bug.cgi?id=15253
Saulius K. saulius2@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |saulius2@gmail.com