I understood this material pretty well so far. The one thing that I am missing
is the size of the Font that you are using for your frame of reference. My
screen. What factor do you use to multiply the screen resolution by to derive
This is just my understanding 7 years ago:
http://safariexamples.informit.com/0130869856/Samples/include/FontText.cpp
BOOL KTextFormator::TextOut(HDC hDC, int x, int y, LPCTSTR pString, int
nCount)
{
int Dx[MAX_PATH];
int lastx = 0;
float sum = 0.0;
int sumdx = 0;
for (int i=0; i<nCount; i++)
{
sum = sum + m_fCharWidth[pString[i]];
int newx = (int) (sum + 0.5);
Dx[i] = newx - lastx;
lastx = newx;
sumdx += Dx[i];
}
return ExtTextOut(hDC, x, y, 0, NULL, pString, nCount, Dx);
}
"Peter Olcott" <olcott@att.net> wrote in message
news:Wt0fg.2166$f76.306@dukeread06...
You can find some sample code here:
http://safariexamples.informit.com/0130869856/
--
Feng Yuan [MSFT] http://blogs.msdn.com/fyuan
That is great, now all that I need to know is how they would go about doing
this glyph placement calculation. Is that located somewhere in your sample
code?