FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Pocket PC Definition of Font Size?
Posts: 87
Joined: Thu Dec 18, 2008 11:27 AM
Definition of Font Size?
Posted: Wed May 26, 2010 09:40 AM

Hi all,

In many of the sample files I find typically ...

DEFINE FONT oFont NAME 'Arial' SIZE 0, -10

The help files says [ SIZE <nWidth>, <nHeight> ] , so does this mean that nWidth is zero (0) and height minus 10?

I am confused. Please explain the real purpose of "SIZE 0, -10"?

Thanks,

Ross

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Definition of Font Size?
Posted: Wed May 26, 2010 03:49 PM

It basically means that the width of the font is automatic calculated using the provided height.

EMG

Posts: 87
Joined: Thu Dec 18, 2008 11:27 AM
Re: Definition of Font Size?
Posted: Wed May 26, 2010 11:48 PM
Enrico Maria Giordano wrote:It basically means that the width of the font is automatic calculated using the provided height.

EMG
Thanks for the reply Enrico ... but what does a height of -10 mean? Is it upside down? I know that is a stupid suggestion ... but so is a dimension of minus ten.

I have tried many different combinations with the emulator and nothing changes. The same font size every time ...

Thanks,

Ross
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Definition of Font Size?
Posted: Thu May 27, 2010 06:42 AM
Ross_ValuSoft wrote:what does a height of -10 mean?


It's only a conventional sign that means "please, calculate the width of the font that best fits the absolute value of the provided height".

EMG
Posts: 87
Joined: Thu Dec 18, 2008 11:27 AM
Re: Definition of Font Size?
Posted: Thu May 27, 2010 08:05 AM

Thanks Enrico.

Isn't the world of programming a great source of frustration and jubilation?

Enjoy your day.

Cheers,

Ross

Continue the discussion