int xSrcSurf, ySrcSurf; // Start point in String rectangle
int xDstSurf, yDstSurf; // Start point in Surface rectangle
int clWidth, clHeight;
for (int i = 0; i < glyphVector.getNumGlyphs(); i++) {
Glyph gl = ((CommonGlyphVector) glyphVector).vector[i];
if (gl.getPointWidth() == 0) {
continue;
}
byte[] data = gl.getBitmap();
if (data != null) {
Point2D pos = glyphVector.getGlyphPosition(i);
xSrcSurf = 0;//gl.bmp_left;
ySrcSurf = 0;//gl.bmp_rows - gl.bmp_top;
xDstSurf = x + (int)pos.getX() + (int) gl.getGlyphPointMetrics().getLSB();// + gl.bmp_left;
yDstSurf = y - gl.bmp_top/*getPointHeight()*/ + (int) pos.getY();// - (gl.bmp_rows-gl.bmp_top);
int textWidth = gl.bmp_width;
int textHeight = gl.getPointHeight();
// if Regions don't intersect
if ((xDstSurf > cMaxX) || (yDstSurf > cMaxY) || (xDstSurf + textWidth < cMinX)
|| (yDstSurf + textHeight < cMinY)) {
// Nothing to do