From: Marcos Nogueira on
Saulo,

> This is the point: you can't deal at the same way you do with colors,
> afaik.
I supposed I couldn't, but who knows?... sometimes uncle Bill is kind
to us... <g>

> Anyway you should take a look at the LOGFONT structure. There
> you will see the whole information about any kind of fonts.
I'll do it - thanks.

Marcos

From: Saulo Rodrigues on
> I supposed I couldn't, but who knows?... sometimes uncle Bill is kind
> to us... <g>

Don't bet! ;-)

Cheers
Saulo

From: Amilcar A. Camargo on
Hi Marcos,

On 21 Dec 2006 10:07:24 -0800, "Marcos Nogueira" <marcos.nogueira(a)ig.com.br>
wrote:

>Hello Geoff and Saulo,
>
>> It does indeed. Why don't you open the SDK and take a peek?
>I did, but didn't find what I was looking for. let me try to
>reformulate my question:
>A color has the CorRef access that returns a dword:
>dwColor := oColor:ColorRef
>I'd like to know whether a font as a similar property, something like:
>dwFont := oFont:FontRef
>// dwFont "encapsulates" all font data: size, pitch, family, etc.
>The Win32SDK mentions IFont, but I didn't understant it correctly. I'll
>read it more carefully.

You can get the whole Font structure (it does not include any color) with the
following

LOCAL pLFont IS _winLOGFONT

GetObject( SELF:oFont:Handle(), @pLFont )

pLFont will hold all the information about a FONT but it does not include color
information. Of course, the current implementation of the FONT Class does not
include a method or assign that allows to re-create a font based on a logical
font structure.

Best Regards and seasons greetings
Amilcar A. Camargo F.
Sand, S. A.
Guatemala, C. A.

(pls remove _no_ to e-mail)
From: Marcos Nogueira on
Amilcar,

> You can get the whole Font structure (it does not include any color) with the
> following
>
> LOCAL pLFont IS _winLOGFONT
>
> GetObject( SELF:oFont:Handle(), @pLFont )
>
> pLFont will hold all the information about a FONT but it does not include color
> information. Of course, the current implementation of the FONT Class does not
> include a method or assign that allows to re-create a font based on a logical
> font structure.
Very good - thanks. However, I've already decided to store font
parameters in a string, that is retrieved and parsed to be re-created
at runtime. It's working fine.

Best wishes for the new year,

Marcos

First  |  Prev  | 
Pages: 1 2
Prev: FabPaintLib
Next: MS Access Permissions Problem