Tom's Hardware > Forum > Windows XP > Device Driver > Problem to calculate width of glyph path

Problem to calculate width of glyph path

Forum Windows XP : Device Driver - Problem to calculate width of glyph path

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

Archived from groups: microsoft.public.windowsxp.device_driver.dev (More info?)

 

Hello,

I am implementing a driver, which shows characters. To draw the
characters I read the path for every glyph. I do not read the bitmap.
This is done by the following two lines.

....
FONTOBJ_cGetGlyphs(pfo, FO_PATHOBJ, 1, &(pgp->hg), (LPVOID)&pgd);
....
pPath = pgd->gdf.ppo;
PATHOBJ_vEnumStart(pPath);
....

I receive nearly perfect results. My problem is, to show the "script"
letters correctly. These letters have a lot of bezier curves. The
problem is, sometimes the width of the curve is thin, sometimes not, but
my output of the path does not show this.

Is there a calculation formula I have to use?


Help on this woul be nice.

thx

Sponsored Links
Register or log in to remove.
Tom's Hardware > Forum > Windows XP > Device Driver > Problem to calculate width of glyph path
Go to:

There are 1277 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them