float widthInTexture;
for(int i = 0; i < lowercase.length; i++){
width = glyphWidths[0][i];
widthInTexture = (((float) width) / font.getWidth()) * font.getWidthRatio();
Sprite g = new Sprite(font, glyphWidths[0][i], glyphHeight, tpos, 0, widthInTexture, this.glyphHeightRatio);
tpos += widthInTexture;
this.glyphMap.put(lowercase[i], g);
}
tpos = 0;
for(int i = 0; i < uppercase.length; i++){
width = glyphWidths[1][i];
widthInTexture = (((float) width) / font.getWidth()) * font.getWidthRatio();
Sprite g = new Sprite(font, glyphWidths[1][i], glyphHeight, tpos, this.glyphHeightRatio, widthInTexture, this.glyphHeightRatio);
tpos += widthInTexture;
this.glyphMap.put(uppercase[i], g);
}
tpos = 0;
for(int i = 0; i < signs.length; i++){
width = glyphWidths[2][i];
widthInTexture = (((float) width) / font.getWidth()) * font.getWidthRatio();
Sprite g = new Sprite(font, glyphWidths[2][i], glyphHeight, tpos, 2*this.glyphHeightRatio, widthInTexture, this.glyphHeightRatio);
tpos += widthInTexture;
this.glyphMap.put(signs[i], g);
}
tpos = 0;
for(int i = 0; i < extra.length; i++){
width = glyphWidths[3][i];
widthInTexture = (((float) width) / font.getWidth()) * font.getWidthRatio();
Sprite g = new Sprite(font, glyphWidths[3][i], glyphHeight, tpos, 3*this.glyphHeightRatio, widthInTexture, this.glyphHeightRatio);
tpos += widthInTexture;
this.glyphMap.put(extra[i], g);
}
}