Definition of Font Size?

Definition of Font Size?

Postby Ross_ValuSoft » Wed May 26, 2010 9: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
User avatar
Ross_ValuSoft
 
Posts: 87
Joined: Thu Dec 18, 2008 11:27 am
Location: Melbourne, Australia

Re: Definition of Font Size?

Postby Enrico Maria Giordano » Wed May 26, 2010 3:49 pm

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

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8307
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Definition of Font Size?

Postby Ross_ValuSoft » 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
User avatar
Ross_ValuSoft
 
Posts: 87
Joined: Thu Dec 18, 2008 11:27 am
Location: Melbourne, Australia

Re: Definition of Font Size?

Postby Enrico Maria Giordano » Thu May 27, 2010 6: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
User avatar
Enrico Maria Giordano
 
Posts: 8307
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Definition of Font Size?

Postby Ross_ValuSoft » Thu May 27, 2010 8:05 am

Thanks Enrico.

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

Enjoy your day.

Cheers,

Ross
User avatar
Ross_ValuSoft
 
Posts: 87
Joined: Thu Dec 18, 2008 11:27 am
Location: Melbourne, Australia


Return to FiveWin for Pocket PC

Who is online

Users browsing this forum: No registered users and 2 guests