FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Fonts in 11.03
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Fonts in 11.03
Posted: Wed Apr 13, 2011 03:38 PM

I derive my fonts from the system using:

    cSysFont := GetSysFont( )
    DEFINE FONT oMfont NAME cSysFont SIZE 0,-12 BOLD

All dialogs inherit from this same font, and all displays were sized to work properly.

With version 11.03, this changed. Now a new font is used, and it clips all of my predefined text. Prompts no longer fit in the button space allocated, and labels for fields ( defined in the .rc file ) are being chopped.

I saw no mention in the notes of any change. Reverting back to 10.12 resolves the problem, which means once again I have no 2011 useable FWH.

Can anyone tell me what has happened here ? It is clearly a change between 10.12 and 11.03.

Thank you.

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Fonts in 11.03
Posted: Wed Apr 13, 2011 05:10 PM

GetSysFont() function returns "Ms Sans Serif" in both 11.03 and 10.12. There was no change in this function in the recent past.

Interestingly, contrary to what we may expect, the return value is actually hard coded as "Ms Sans Serif". This function does not acertain the font configured on the system.

You can test this by "msginfo( getsysfont() )" on both 11.03 and 10.12.

You can also compare the source code of the function in both the versions. \fwh\source\function\getsysin.prg

Regards



G. N. Rao.

Hyderabad, India
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: Fonts in 11.03
Posted: Wed Apr 13, 2011 09:20 PM
OK ... but with absolutely NO CHANGE in my code, with 10.12 we see the following:


And with 11.03 we see:


Please note how the letters are dropped off the end in .03, suggesting a rendering issue with the new version. Again, I emphasize that the exact same code is used in both cases, and the only difference is which FWH version is used in the build.

So, obviously something has changed in FWH 11.03 that is not documented related to fonts.

Thanks.
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 PM
Re: Fonts in 11.03
Posted: Wed Apr 13, 2011 09:36 PM
Tim

Please download FWH again, (from official site)

this problem is solved: http://forums.fivetechsupport.com/viewtopic.php?p=112702#p112702
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: Fonts in 11.03
Posted: Wed Apr 13, 2011 10:21 PM

OK ... still a bit different but I can live with that. Its got an issue on the button bar ... the prompt used to fit but not now. I'll work with it.

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit

Continue the discussion