Problem to calculate width of glyph path

B

baum

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top