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