Definition of Font Size?

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

Definition of Font Size?

Post by Ross_ValuSoft »

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
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: Definition of Font Size?

Post by Enrico Maria Giordano »

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

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

Re: Definition of Font Size?

Post by Ross_ValuSoft »

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
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: Definition of Font Size?

Post by Enrico Maria Giordano »

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

Re: Definition of Font Size?

Post by Ross_ValuSoft »

Thanks Enrico.

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

Enjoy your day.

Cheers,

Ross
Post Reply