Hello,
In STROBJ_bGetAdvanceWidths function there is parameter POINTQF which gives array of POINTQF structures. I am using this function to get the width of the glyphs in the string which I get in DrvTextOut function hook. Can anybody tell me how to get width of the gluph from this POINTQF structure ?. This structure has two LARGE_INTEGER members which are 64 bit in length and DDK MSDN says it’s in (28.36, 28.36) format. What is this format ?
FUNCTION :
BOOL STROBJ_bGetAdvanceWidths(
IN STROBJ *pso,
IN ULONG iFirst,
IN ULONG c,
OUT POINTQF *pptqD
);
Thanks and regards
Hrishikesh Lele
From the DDK docs:
Graphics DDIs use fractional coordinates that can specify a location on
the device surface within one-sixteenth of a pixel. (On vector devices,
the fractional coordinates are sixteen times more accurate than the
device resolution.) The fractional coordinates are represented as 32-bit
numbers in signed 28.4 bit FIX notation. In this notation, the
highest-order 28 bits represent the integer part of the coordinate, and
the lowest 4 bits represent the fractional part. For example, 0x0000003C
equals +3.7500, and 0xFFFFFFE8 equals -1.5000.
FIX coordinates represent control points for lines and Bezier curves.
For certain objects, such as rectangular clip regions, GDI uses signed
32-bit integers to represent coordinates. Because coordinates are 28-bit
quantities, the highest 5 bits of an integer coordinate are either all
cleared or all set.
This posting is provided “AS IS” with no warranties, and confers no
rights.
-----Original Message-----
From: Hrishikesh Lele [mailto:xxxxx@yahoo.com]
Sent: Thursday, February 28, 2002 3:25 AM
To: NT Developers Interest List
Subject: [ntdev] POINTQF structure ?
Hello,
In STROBJ_bGetAdvanceWidths function there is parameter POINTQF which
gives array of POINTQF structures. I am using this function to get the
width of the glyphs in the string which I get in DrvTextOut function
hook. Can anybody tell me how to get width of the gluph from this
POINTQF structure ?. This structure has two LARGE_INTEGER members which
are 64 bit in length and DDK MSDN says it’s in (28.36, 28.36) format.
What is this format ?
FUNCTION :
BOOL STROBJ_bGetAdvanceWidths(
IN STROBJ *pso,
IN ULONG iFirst,
IN ULONG c,
OUT POINTQF *pptqD
);
Thanks and regards
Hrishikesh Lele
You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to %%email.unsub%%