public DefaultGlyph(org.xwt.Font f, char c) { super(f, c); }
public Picture getPicture() {
if (p == null && isLoaded) {
- p = createPicture(null);
+ Picture p = createPicture(null);
p.data = new int[data.length];
for(int i=0; i<data.length; i++) p.data[i] = (data[i] & 0xff) << 24;
- data = null;
+ this.data = null;
p.width = this.width;
p.height = this.height;
+ p.isLoaded = true;
+ this.p = p;
}
return p;
}