PDA

View Full Version : GLYPHMETRICSFLOAT in DELPHI



spokojnie
01-28-2002, 11:14 PM
How can I use 'gmfCellIncX' in delphi? I need to get the center of the text
I am displaying.

I found the C++ code but I can't translate it in to Delphi.

GLYPHMETRICSFLOAT gmf[256]; this is in C++ but how to do it in DELPHI???????

I tried to do it in delphi as gmf: array[0...255] of GLYPHMETRICSFLOAT; but
I get an error during compilation :

Incompatible types: 'Array' and 'PGlyphMetricsFloat';

wglUseFontOutlines( h_DC, 0, 255,
base,
0.0, 0.2,
WGL_FONT_POLYGONS,
gmf); <--Incompatible types: 'Array' and 'PGlyphM
etricsFloat';

Please Help me!!!

Thank you for your time


[This message has been edited by spokojnie (edited 01-29-2002).]

[This message has been edited by spokojnie (edited 01-29-2002).]

MButchers
01-29-2002, 06:02 AM
Hello there,

try

wglUseFontOutlines( h_DC, 0, 255, base, 0.0, 0.2, WGL_FONT_POLYGONS, @gmf);

as you are using a constant array.

Mark