- int width = vm.getUserInfo(6);
- int height = vm.getUserInfo(7);
- if (width == 0 || height == 0) {
- Log.log(Freetype.class, "warning glyph has zero width/height");
- glyph.p = Platform.createAlphaOnlyPicture(new byte[] { }, 0, 0);
-
- } else {
- byte[] data = new byte[width * height];
- int addr = vm.getUserInfo(5);
- vm.copyin(addr,data,width*height);
- glyph.p = Platform.createAlphaOnlyPicture(data, width, height);
- }
-
+ glyph.width = vm.getUserInfo(6);
+ glyph.height = vm.getUserInfo(7);
+
+ glyph.data = new byte[glyph.width * glyph.height];
+ int addr = vm.getUserInfo(5);
+ vm.copyin(addr, glyph.data, glyph.width * glyph.height);
+