Prev: FabPaintLib
Next: MS Access Permissions Problem
From: Marcos Nogueira on 21 Dec 2006 06:54 Hello All, Now that I know about the ColorRef property and the RGB and GetxValue functions, which facilitate storing and retrieving Color information, I wonder if Font doesn't have similar, "hidden" stuff that allows to store Font parameters in a single "number", which can be retrieved and processed to construct a font object. TIA, Marcos Nogueira S. Paulo - Brazil
From: G Schaller on 21 Dec 2006 07:19 It does indeed. Why don't you open the SDK and take a peek? Here are some that most people use commonly (for some reason Grafx declines to add them to the GUI classes event though most of the 3rd party product suppliers routinely demand it...) ACCESS Escapement CLASS Font RETURN SELF:lfEscapement ASSIGN Escapement(iEscapement) CLASS Font SELF:lfEscapement := iEscapement SELF:bFontChanged := TRUE RETURN iEscapement ACCESS Orientation CLASS Font RETURN SELF:lfOrientation ASSIGN Orientation(iOrientation) CLASS Font SELF:lfOrientation := iOrientation SELF:bFontChanged := TRUE RETURN iOrientation ACCESS PitchAndFamily CLASS Font RETURN SELF:lfPitchAndFamily ASSIGN PitchAndFamily(iPitchAndFamily) CLASS Font SELF:lfPitchAndFamily := iPitchAndFamily SELF:bFontChanged := TRUE RETURN iPitchAndFamily ACCESS Rotation CLASS Font RETURN SELF:lfOrientation ASSIGN Rotation(iRotation) CLASS Font SELF:lfOrientation := iRotation SELF:lfEscapement := iRotation SELF:bFontChanged := TRUE RETURN iRotation ACCESS Weight CLASS Font RETURN SELF:lfWeight ASSIGN Weight(iWeight) CLASS Font SELF:lfWeight := iWeight SELF:bFontChanged := TRUE RETURN iWeight "Marcos Nogueira" <marcos.nogueira(a)ig.com.br> wrote in message news:1166702099.944681.66730(a)80g2000cwy.googlegroups.com: > Hello All, > > Now that I know about the ColorRef property and the RGB and GetxValue > functions, which facilitate storing and retrieving Color information, I > wonder if Font doesn't have similar, "hidden" stuff that allows to > store Font parameters in a single "number", which can be retrieved and > processed to construct a font object. > > TIA, > > Marcos Nogueira > S. Paulo - Brazil
From: Saulo Rodrigues on 21 Dec 2006 07:28 Hi Marcos > Now that I know about the ColorRef property and the RGB and GetxValue > functions, which facilitate storing and retrieving Color information, I > wonder if Font doesn't have similar, "hidden" stuff that allows to > store Font parameters in a single "number", which can be retrieved and > processed to construct a font object. Basically __FontCharSet, __FontFaceName, __FontHeight, __FontPitchAndFamily, __PointSize. BTW, it is all there in SDK and bBrowser have some additonal accesses/assigns like escapement, orientation and rotation. hth Saulo
From: Marcos Nogueira on 21 Dec 2006 13:07 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. Thanks anyway for your input, Marcos
From: Saulo Rodrigues on 21 Dec 2006 13:47
Marcos, > 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. This is the point: you can't deal at the same way you do with colors, afaik. Anyway you should take a look at the LOGFONT structure. There you will see the whole information about any kind of fonts. hth Saulo |