leftcol = leftmargin;
accumulated_ics = (float) 0.0; /* initial value */
for (cursor = 0; cursor < lines[line].length(); ++cursor) {
int glyphIndex = (int) lines[line].charAt(cursor);
Glyph glyph; /* the glyph for this character */
glyph = font.getGlyph(glyphIndex);
if (glyph == null) {
glyph = font.getGlyph(' ');
}
if (glyph != null) {
int toprow = row + font.getMaxheight() + font.getY()
- glyph.getHeight() - glyph.getY();
/* row number in image of top row in glyph */
insert_character(glyph, toprow, leftcol, bits);
leftcol += glyph.getXadd();
{
/* handle extra intercharacter space (-space option) */
int full_pixels; /* integer part of accumulated_ics */
accumulated_ics += intercharacter_space;
full_pixels = (int) accumulated_ics;