checkDevice();      return new Point(72, 72);
return new Point(0, 0);
public Point getDPI() {	checkDevice();	/* Use the character encoding for the default locale */	/* AW	byte [] buffer = Converter.wcsToMbcs(null, "default-printer-resolution", true);	int pool = OS.XpGetOneAttribute(xDisplay, printContext, OS.XPDocAttr, buffer);    int length = OS.strlen(pool);	buffer = new byte[length];	OS.memmove(buffer, pool, length);	OS.XtFree(pool);	String resolution = new String(buffer, 0, buffer.length);	int res = 300; // default	if (resolution.length() == 0) {	*/		/* If we can't get the info from the DocAttrs, ask the printer. */		/* Use the character encoding for the default locale */		/* AW		buffer = Converter.wcsToMbcs(null, "printer-resolutions-supported", true);		pool = OS.XpGetOneAttribute(xDisplay, printContext, OS.XPPrinterAttr, buffer);    		length = OS.strlen(pool);		buffer = new byte[length];		OS.memmove(buffer, pool, length);		OS.XtFree(pool);		int n = 0;		while (!Compatibility.isWhitespace((char)buffer[n]) && n < buffer.length) n++;		resolution = new String(buffer, 0, n);	}	if (resolution.length() != 0) {		try {			res = Integer.parseInt(resolution);		} catch (NumberFormatException ex) {}	}	return new Point(res, res);	*/	return new Point(72, 72);}