[Bug 15253] New: Bitmap Font Problem

wine-bugs at winehq.org wine-bugs at winehq.org
Fri Sep 12 04:59:53 CDT 2008


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 at winehq.org
        ReportedBy: giuseppe.adamo at 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


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list