by yucani » Mar 21, 2008 @ 10:17am
after creating the font , i run following code:
char dst[89], src[89];
ulong w,h;
estrcpy(src,"alles wird gut, und noch viel besser");
font.PrepareFontWrap(dst, src, 100);
h=font.GetFontHeight(src);
w=font.GetFontWidth(src);
the results:
alles wird gut, und
noch viel besser
w=167
h=12
so the GetFontWidth ignores the wrap, but after counting the CR in the dest string one is able to find out the real hight.
Does i understand the procedure correct?