Hi, I'm using stb_truetype.h and I've got some questions on how to properly position characters.
I'm using y+ goes up, I've got x0, y0, x1, y1 from stbtt_GetCodepointBox and scaled them. Are the following lines correct ?
1. bitmapY = baseLine + y0;
2. bitmapX = x + leftSideBearing; (Or x + x0 since x0 and leftSideBearing are always the same);
3. Some character like 'j' in the Verdana font have a negative left side bearing. Do I need to not use the left side bearing if it's the first character in the "line" since it will draw "out of bounds" ? This freetype.org
page seems to indicate that the left side bearing should always be positive.
4. nextX = x + advanceWidth + kerning( current, next )