Re: [JAVA2D] Type 1 font measurement
On Tue, 2006-10-24 at 11:16 -0700, Phil Race wrote: Well since we don't look at the AFM file ... -phil. Peter B. West wrote: ... Generally speaking, the logical bounds of characters in Type1 fonts seems to be slightly smaller than the width given in the AFM file for that font. ... Phil, Plese correct me if I'm wrong, but don't the horizontal metrics in the AFM file simply reflect the sbw or hsbw commands that are required at the start of each CharString? For example, when I open a .pfb file, isolated from its .afm, in FontForge, and look at individual characters, I get values for left side bearing and for width that are consistent with the values in the afm file for that font. This is why I'm puzzled by the differences in Java2D. These difference make for great difficulties in using 2D to measure text which will be rendered by some other renderer. Peter === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message signoff JAVA2D-INTEREST. For general help, send email to [EMAIL PROTECTED] and include in the body of the message help.
[JAVA2D] Contour / Boundary tracing
Hi to ALL! Help me with Contour/Boundary tracing. (input binary image) Please send some source code. Thanks. [Message sent by forum member 'vkscorp' (vkscorp)] http://forums.java.net/jive/thread.jspa?messageID=166793 === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message signoff JAVA2D-INTEREST. For general help, send email to [EMAIL PROTECTED] and include in the body of the message help.
Re: [JAVA2D] javax.print.PrintService limitations
Thanks (also to Jennifer) for the information. See my comments below - there is no ServiceUIFactory available for any of my print services Do you mean the serices returned to you by the JDK? No, we don't currently support these on the services. But the principle use for these is if you write your own print service, its a way to add in its functionalitu to ServiceUI.printDialog(..) without rewriting it. What are you trying to do ? I do not use any custom print services, only the ones returned from the JDK. Basically I am trying to rebuild the cross platform service dialog (the one that you create with PrinterJob.printDialog(PrinterRequestAttributeSet a) ). I have to do this because the user must be able to select Print All/Print Selection/Print Page Range, which does not seem to be possible with the dialogs from the JDK. Creating this dialog is not that difficult, but while doing this I noticed that the Properties button next to the print service is always disabled on the JDK's print dialog. So I tried to improve this for my dialog but found no way of doing this. So in one sentence, I want the user to be able to open the printer's native dialog when pressing on the properties button on my own print dialog. But how do I get the printer's native dialog? - setting Chromaticity to monochrome still produces color prints on our color laser printer (and I can select color mode for our black and white printer) Not sure about this. Did you check if the service/driver supported this option? It could be that it does not. Yes, printService.isAttributeCategorySupported(Chromaticity.class) returns true. But I am using Windows and as Jennifer wrote, some drivers just ignore this. But if I can display the native printer dialog, this wouldn't be needed. - the PrintQuality attribute never seems to be supported Is this Windows? On Windows the GDI DEVMODE struct interprets a positive value in the dmPrintQuality as X resolution instead quoting MSDN : dmYResolution Specifies the y-resolution, in dots per inch, of the printer. If the printer initializes this member, the dmPrintQuality member specifies the x-resolution, in dots per inch, of the printer. so you get resolution OR quality, never both. Ok, so maybe I can find a way to make the user believe he/she selects the print quality when acutally the resolution is set. But here too, the printer's native dialog would fix this. Thanks again for the detailed information. Jan === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message signoff JAVA2D-INTEREST. For general help, send email to [EMAIL PROTECTED] and include in the body of the message help.
Re: [JAVA2D] javax.print.PrintService limitations
Jan Bösenberg (INCORS GmbH) wrote: Thanks (also to Jennifer) for the information. See my comments below - there is no ServiceUIFactory available for any of my print services Do you mean the serices returned to you by the JDK? No, we don't currently support these on the services. But the principle use for these is if you write your own print service, its a way to add in its functionalitu to ServiceUI.printDialog(..) without rewriting it. What are you trying to do ? I do not use any custom print services, only the ones returned from the JDK. Basically I am trying to rebuild the cross platform service dialog (the one that you create with PrinterJob.printDialog(PrinterRequestAttributeSet a) ). I have to do this because the user must be able to select Print All/Print Selection/Print Page Range, which does not seem to be possible with the dialogs from the JDK. Creating this dialog is not that difficult, but while doing this I noticed that the Properties button next to the print service is always disabled on the JDK's print dialog. So I tried to improve this for my dialog but found no way of doing this. So in one sentence, I want the user to be able to open the printer's native dialog when pressing on the properties button on my own print dialog. But how do I get the printer's native dialog? We have an RFE for that one too :) 4673406 Provide a way to display win32 printer driver's dialog yes, we really should implement that one and it would be returned as you expect from a ServiceUIFactory. -phil. === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message signoff JAVA2D-INTEREST. For general help, send email to [EMAIL PROTECTED] and include in the body of the message help.