font missing warning
Hello! We are getting this warning when we try to create a PDF: Feb 1, 2011 4:35:03 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'Consolas,normal,400' not found. Substituting with 'any,normal,400'. Our environment - we have another program that creates the XML and XSL. We use FOP to create the PDF from these files. Some things to note about our problem: - If we have a simple XSL, then we don't get this error - We have two environments (TEST and PRODUCTION), it works OK in our TEST environment - We are using FOP 0.95 - We use auto-detect/ in the fop configuration file to detect the font. Does anybody know what could be causing this issue? Thank you! The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof.
RE: font missing warning
Obviously it means it can't find the font. auto-detect is usually not a good idea. It depends on the font file being found on the machine it's running on. What file contains that font triplet? Is that installed on the production machine? Obviously it's either not installed there or there's something different about the search path. From: Roberto Cahanap [mailto:rcaha...@bioreference.com] Sent: Wednesday, February 02, 2011 9:12 AM To: fop-users@xmlgraphics.apache.org Subject: font missing warning Hello! We are getting this warning when we try to create a PDF: Feb 1, 2011 4:35:03 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'Consolas,normal,400' not found. Substituting with 'any,normal,400'. Our environment - we have another program that creates the XML and XSL. We use FOP to create the PDF from these files. Some things to note about our problem: - If we have a simple XSL, then we don't get this error - We have two environments (TEST and PRODUCTION), it works OK in our TEST environment - We are using FOP 0.95 - We use auto-detect/ in the fop configuration file to detect the font. Does anybody know what could be causing this issue? Thank you! The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof.
Re: font missing warning
Hi Roberto, You can do 1 of 2 things, either a) place the font in the correct folder or b) you can be explicit about the location of the font (http://xmlgraphics.apache.org/fop/0.95/configuration.html#renderers). I'd suggest that you go for the latter rather than the former as it gives you better control over where the font is. Hope that helps Mehdi On 2 February 2011 14:18, Eric Douglas edoug...@blockhouse.com wrote: Obviously it means it can't find the font. auto-detect is usually not a good idea. It depends on the font file being found on the machine it's running on. What file contains that font triplet? Is that installed on the production machine? Obviously it's either not installed there or there's something different about the search path. From: Roberto Cahanap [mailto:rcaha...@bioreference.com] Sent: Wednesday, February 02, 2011 9:12 AM To: fop-users@xmlgraphics.apache.org Subject: font missing warning Hello! We are getting this warning when we try to create a PDF: Feb 1, 2011 4:35:03 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'Consolas,normal,400' not found. Substituting with 'any,normal,400'. Our environment – we have another program that creates the XML and XSL. We use FOP to create the PDF from these files. Some things to note about our problem: - If we have a simple XSL, then we don’t get this error - We have two environments (TEST and PRODUCTION), it works OK in our TEST environment - We are using FOP 0.95 - We use auto-detect/ in the fop configuration file to detect the font. Does anybody know what could be causing this issue? Thank you! The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
RE: font missing warning
Hello Eric, What I don't understand is that a simple page does not get this error and finds the font. The file is installed on the production machine (Windows Server 2003 Enterprise Edition), it's called CONSOLA.TTF (Consolas True Type). I'm going to run a couple of experiments today to see what's up with this issue. Roberto Cahanap Developer, Reporting Department Bio-Reference Laboratories, Inc. Phone: 800-229-5227 x8499 Cell: 201-693-0132 Fax: 201-475-0344 Email: rcaha...@bioreference.com From: Eric Douglas [mailto:edoug...@blockhouse.com] Sent: Wednesday, February 02, 2011 9:19 AM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning Obviously it means it can't find the font. auto-detect is usually not a good idea. It depends on the font file being found on the machine it's running on. What file contains that font triplet? Is that installed on the production machine? Obviously it's either not installed there or there's something different about the search path. From: Roberto Cahanap [mailto:rcaha...@bioreference.com] Sent: Wednesday, February 02, 2011 9:12 AM To: fop-users@xmlgraphics.apache.org Subject: font missing warning Hello! We are getting this warning when we try to create a PDF: Feb 1, 2011 4:35:03 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'Consolas,normal,400' not found. Substituting with 'any,normal,400'. Our environment - we have another program that creates the XML and XSL. We use FOP to create the PDF from these files. Some things to note about our problem: - If we have a simple XSL, then we don't get this error - We have two environments (TEST and PRODUCTION), it works OK in our TEST environment - We are using FOP 0.95 - We use auto-detect/ in the fop configuration file to detect the font. Does anybody know what could be causing this issue? Thank you! The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof. The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof.
RE: font missing warning
Hi Mehdi, OK, I will tell it explicitly where the font is located. Hopefully that will solve the problem Thank you for helping. Roberto Cahanap Developer, Reporting Department Bio-Reference Laboratories, Inc. Phone: 800-229-5227 x8499 Cell: 201-693-0132 Fax: 201-475-0344 Email: rcaha...@bioreference.com -Original Message- From: mehdi houshmand [mailto:med1...@gmail.com] Sent: Wednesday, February 02, 2011 9:32 AM To: fop-users@xmlgraphics.apache.org Subject: Re: font missing warning Hi Roberto, You can do 1 of 2 things, either a) place the font in the correct folder or b) you can be explicit about the location of the font (http://xmlgraphics.apache.org/fop/0.95/configuration.html#renderers). I'd suggest that you go for the latter rather than the former as it gives you better control over where the font is. Hope that helps Mehdi On 2 February 2011 14:18, Eric Douglas edoug...@blockhouse.com wrote: Obviously it means it can't find the font. auto-detect is usually not a good idea. It depends on the font file being found on the machine it's running on. What file contains that font triplet? Is that installed on the production machine? Obviously it's either not installed there or there's something different about the search path. From: Roberto Cahanap [mailto:rcaha...@bioreference.com] Sent: Wednesday, February 02, 2011 9:12 AM To: fop-users@xmlgraphics.apache.org Subject: font missing warning Hello! We are getting this warning when we try to create a PDF: Feb 1, 2011 4:35:03 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'Consolas,normal,400' not found. Substituting with 'any,normal,400'. Our environment - we have another program that creates the XML and XSL. We use FOP to create the PDF from these files. Some things to note about our problem: - If we have a simple XSL, then we don't get this error - We have two environments (TEST and PRODUCTION), it works OK in our TEST environment - We are using FOP 0.95 - We use auto-detect/ in the fop configuration file to detect the font. Does anybody know what could be causing this issue? Thank you! The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
RE: font missing warning
That depends what you mean by simple versus not simple. It would be a lot easier to understand what you're talking about if you have one that works and one that doesn't work on the same machine, Are they referencing the same fop config file? Can you send a sample of each xslt or fo file? From: Roberto Cahanap [mailto:rcaha...@bioreference.com] Sent: Wednesday, February 02, 2011 9:57 AM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning Hello Eric, What I don't understand is that a simple page does not get this error and finds the font. The file is installed on the production machine (Windows Server 2003 Enterprise Edition), it's called CONSOLA.TTF (Consolas True Type). I'm going to run a couple of experiments today to see what's up with this issue. Roberto Cahanap Developer, Reporting Department Bio-Reference Laboratories, Inc. Phone: 800-229-5227 x8499 Cell: 201-693-0132 Fax: 201-475-0344 Email: rcaha...@bioreference.com From: Eric Douglas [mailto:edoug...@blockhouse.com] Sent: Wednesday, February 02, 2011 9:19 AM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning Obviously it means it can't find the font. auto-detect is usually not a good idea. It depends on the font file being found on the machine it's running on. What file contains that font triplet? Is that installed on the production machine? Obviously it's either not installed there or there's something different about the search path. From: Roberto Cahanap [mailto:rcaha...@bioreference.com] Sent: Wednesday, February 02, 2011 9:12 AM To: fop-users@xmlgraphics.apache.org Subject: font missing warning Hello! We are getting this warning when we try to create a PDF: Feb 1, 2011 4:35:03 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'Consolas,normal,400' not found. Substituting with 'any,normal,400'. Our environment - we have another program that creates the XML and XSL. We use FOP to create the PDF from these files. Some things to note about our problem: - If we have a simple XSL, then we don't get this error - We have two environments (TEST and PRODUCTION), it works OK in our TEST environment - We are using FOP 0.95 - We use auto-detect/ in the fop configuration file to detect the font. Does anybody know what could be causing this issue? Thank you! The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof. The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof.
RE: font missing warning
Eric, After doing some testing, the simple one was not working also. It also had that missing font warning. I had the output from our other software set it to HTML instead of routing it to FOP for pdf. But here's a partial listing of the one that I'm interested in getting to work: xsl:template match=body mode=table11 name=table8 fo:table-row fo:table-cell xsl:attribute name=font-family'Consolas'/xsl:attribute fo:block fo:inline xsl:if test=@linetype = 1 fo:inline xsl:attribute name=width19cm/xsl:attribute xsl:call-template name=clinical xsl:with-param name=type select=@linetype / I'm doing some more test to see what the issue is... Roberto Cahanap Developer, Reporting Department Bio-Reference Laboratories, Inc. Phone: 800-229-5227 x8499 Cell: 201-693-0132 Fax: 201-475-0344 Email: rcaha...@bioreference.com From: Eric Douglas [mailto:edoug...@blockhouse.com] Sent: Wednesday, February 02, 2011 10:04 AM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning That depends what you mean by simple versus not simple. It would be a lot easier to understand what you're talking about if you have one that works and one that doesn't work on the same machine, Are they referencing the same fop config file? Can you send a sample of each xslt or fo file? From: Roberto Cahanap [mailto:rcaha...@bioreference.com] Sent: Wednesday, February 02, 2011 9:57 AM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning Hello Eric, What I don't understand is that a simple page does not get this error and finds the font. The file is installed on the production machine (Windows Server 2003 Enterprise Edition), it's called CONSOLA.TTF (Consolas True Type). I'm going to run a couple of experiments today to see what's up with this issue. Roberto Cahanap Developer, Reporting Department Bio-Reference Laboratories, Inc. Phone: 800-229-5227 x8499 Cell: 201-693-0132 Fax: 201-475-0344 Email: rcaha...@bioreference.com From: Eric Douglas [mailto:edoug...@blockhouse.com] Sent: Wednesday, February 02, 2011 9:19 AM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning Obviously it means it can't find the font. auto-detect is usually not a good idea. It depends on the font file being found on the machine it's running on. What file contains that font triplet? Is that installed on the production machine? Obviously it's either not installed there or there's something different about the search path. From: Roberto Cahanap [mailto:rcaha...@bioreference.com] Sent: Wednesday, February 02, 2011 9:12 AM To: fop-users@xmlgraphics.apache.org Subject: font missing warning Hello! We are getting this warning when we try to create a PDF: Feb 1, 2011 4:35:03 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'Consolas,normal,400' not found. Substituting with 'any,normal,400'. Our environment - we have another program that creates the XML and XSL. We use FOP to create the PDF from these files. Some things to note about our problem: - If we have a simple XSL, then we don't get this error - We have two environments (TEST and PRODUCTION), it works OK in our TEST environment - We are using FOP 0.95 - We use auto-detect/ in the fop configuration file to detect the font. Does anybody know what could be causing this issue? Thank you! The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof. The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof. The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may
RE: font missing warning
If it's not working at all on the production server then if it is actually working on the test server that suggests the search path is wrong. Have you tried hardcoding the path? If it's not actually working on the test server it may just not like your font. I don't recal if OpenType fonts are fully supported in FOP 0.95. Can you try 1.0, or test a different type of font? From: Roberto Cahanap [mailto:rcaha...@bioreference.com] Sent: Wednesday, February 02, 2011 10:29 AM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning Eric, After doing some testing, the simple one was not working also. It also had that missing font warning. I had the output from our other software set it to HTML instead of routing it to FOP for pdf.
RE: font missing warning
I vaguely remember that we had a similar issue with our Test server (it's working now on this Test server). To get it to work, I remembered deleting the fop cache file, but I can't seem to find the location of this cache file now. Help! From: Eric Douglas [mailto:edoug...@blockhouse.com] Sent: Wednesday, February 02, 2011 10:49 AM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning If it's not working at all on the production server then if it is actually working on the test server that suggests the search path is wrong. Have you tried hardcoding the path? If it's not actually working on the test server it may just not like your font. I don't recal if OpenType fonts are fully supported in FOP 0.95. Can you try 1.0, or test a different type of font? From: Roberto Cahanap [mailto:rcaha...@bioreference.com] Sent: Wednesday, February 02, 2011 10:29 AM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning Eric, After doing some testing, the simple one was not working also. It also had that missing font warning. I had the output from our other software set it to HTML instead of routing it to FOP for pdf. The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof.
RE: font missing warning
Eric, Our Test server's fonts are located in the C: drive. The Production server's fonts are located in the H: drive (that's where Windows was installed). How do I tell FOP that the fonts are located on the H: drive? Maybe that's the issue? From: Eric Douglas [mailto:edoug...@blockhouse.com] Sent: Wednesday, February 02, 2011 10:49 AM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning If it's not working at all on the production server then if it is actually working on the test server that suggests the search path is wrong. Have you tried hardcoding the path? If it's not actually working on the test server it may just not like your font. I don't recal if OpenType fonts are fully supported in FOP 0.95. Can you try 1.0, or test a different type of font? From: Roberto Cahanap [mailto:rcaha...@bioreference.com] Sent: Wednesday, February 02, 2011 10:29 AM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning Eric, After doing some testing, the simple one was not working also. It also had that missing font warning. I had the output from our other software set it to HTML instead of routing it to FOP for pdf. The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof.
RE: font missing warning
We're assuming it is correctly finding and using the font on the test server. Have you tried hardcoding the path to the fonts on the production server instead of using auto-detect? From: Roberto Cahanap [mailto:rcaha...@bioreference.com] Sent: Wednesday, February 02, 2011 11:16 AM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning Eric, Our Test server's fonts are located in the C: drive. The Production server's fonts are located in the H: drive (that's where Windows was installed). How do I tell FOP that the fonts are located on the H: drive? Maybe that's the issue? From: Eric Douglas [mailto:edoug...@blockhouse.com] Sent: Wednesday, February 02, 2011 10:49 AM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning If it's not working at all on the production server then if it is actually working on the test server that suggests the search path is wrong. Have you tried hardcoding the path? If it's not actually working on the test server it may just not like your font. I don't recal if OpenType fonts are fully supported in FOP 0.95. Can you try 1.0, or test a different type of font? From: Roberto Cahanap [mailto:rcaha...@bioreference.com] Sent: Wednesday, February 02, 2011 10:29 AM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning Eric, After doing some testing, the simple one was not working also. It also had that missing font warning. I had the output from our other software set it to HTML instead of routing it to FOP for pdf. The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof.
Re: font missing warning
Normally, FOP puts the fop-fonts.cache file in user.home/.fop. If that directory is not writable the cache file is put into the temp directory. It could indeed help to delete the cache file. If there was a problem loading a particular font, it can get flagged as invalid and won't be loaded again later. On 02.02.2011 16:52:05 Roberto Cahanap wrote: I vaguely remember that we had a similar issue with our Test server (it's working now on this Test server). To get it to work, I remembered deleting the fop cache file, but I can't seem to find the location of this cache file now. Help! snip/ Jeremias Maerki - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
RE: font missing warning
Hello Jeremias, Thank you for shaking my memory. Yes on the TEST server, we have a folder named .FOP that is in the USERACCOUNT's directory. Inside this is a file called fop-fonts.cache. There is no such folder on our Production server. Would you know why this is so? If this folder is not there, then where would it be looking for these cached fonts? If like you say in the temp directory, where would that be on a Windows system? Thank you again. -Original Message- From: Jeremias Maerki [mailto:d...@jeremias-maerki.ch] Sent: Wednesday, February 02, 2011 12:22 PM To: fop-users@xmlgraphics.apache.org Subject: Re: font missing warning Normally, FOP puts the fop-fonts.cache file in user.home/.fop. If that directory is not writable the cache file is put into the temp directory. It could indeed help to delete the cache file. If there was a problem loading a particular font, it can get flagged as invalid and won't be loaded again later. On 02.02.2011 16:52:05 Roberto Cahanap wrote: I vaguely remember that we had a similar issue with our Test server (it's working now on this Test server). To get it to work, I remembered deleting the fop cache file, but I can't seem to find the location of this cache file now. Help! snip/ Jeremias Maerki - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: font missing warning
Check the environment (set on Windows). Look for the TEMP entry. It's TEMP=C:\Users\Jeremias\AppData\Local\Temp on my machine for my user. If it's not around, maybe the user under which FOP is running has no write access to the user directory or there is no user directory at all. I have no idea. I love remote debugging. ;-) On 02.02.2011 18:58:53 Roberto Cahanap wrote: Hello Jeremias, Thank you for shaking my memory. Yes on the TEST server, we have a folder named .FOP that is in the USERACCOUNT's directory. Inside this is a file called fop-fonts.cache. There is no such folder on our Production server. Would you know why this is so? If this folder is not there, then where would it be looking for these cached fonts? If like you say in the temp directory, where would that be on a Windows system? Thank you again. -Original Message- From: Jeremias Maerki [mailto:d...@jeremias-maerki.ch] Sent: Wednesday, February 02, 2011 12:22 PM To: fop-users@xmlgraphics.apache.org Subject: Re: font missing warning Normally, FOP puts the fop-fonts.cache file in user.home/.fop. If that directory is not writable the cache file is put into the temp directory. It could indeed help to delete the cache file. If there was a problem loading a particular font, it can get flagged as invalid and won't be loaded again later. On 02.02.2011 16:52:05 Roberto Cahanap wrote: I vaguely remember that we had a similar issue with our Test server (it's working now on this Test server). To get it to work, I remembered deleting the fop cache file, but I can't seem to find the location of this cache file now. Help! snip/ Jeremias Maerki - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof. Jeremias Maerki - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
RE: font missing warning
Remote debugging means assumptions or questions or both. I started by assuming this user like most is running from a command line. Finding the fonts correctly is a lot easier from embedded code. It's even easier if I can compile the fonts into a jar and reference them internally so they never have a path. The second easiest way is if you can reference them with a path relative to the path of the fop.jar. Users frequently expect remote debugging but unless you have remote access to view their machine instructions look like Step 1: Does your screen show this? If yes do this, else do that. -Original Message- From: Jeremias Maerki [mailto:d...@jeremias-maerki.ch] Sent: Wednesday, February 02, 2011 1:35 PM To: fop-users@xmlgraphics.apache.org Subject: Re: font missing warning Check the environment (set on Windows). Look for the TEMP entry. It's TEMP=C:\Users\Jeremias\AppData\Local\Temp on my machine for my user. If it's not around, maybe the user under which FOP is running has no write access to the user directory or there is no user directory at all. I have no idea. I love remote debugging. ;-) On 02.02.2011 18:58:53 Roberto Cahanap wrote: Hello Jeremias, Thank you for shaking my memory. Yes on the TEST server, we have a folder named .FOP that is in the USERACCOUNT's directory. Inside this is a file called fop-fonts.cache. There is no such folder on our Production server. Would you know why this is so? If this folder is not there, then where would it be looking for these cached fonts? If like you say in the temp directory, where would that be on a Windows system? Thank you again. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
RE: font missing warning
Thanks for the help Jeremias. I'm new to FOP, so I don't know the ins and outs of it. Hopefully by fixing this issue, I'll learn a little from it. We are just running the FOP.BAT file to get our results, so like I said, I don't know really know what's going on. Yes remote debugging is hard. Thanks for your suggestions. -Original Message- From: Jeremias Maerki [mailto:d...@jeremias-maerki.ch] Sent: Wednesday, February 02, 2011 1:35 PM To: fop-users@xmlgraphics.apache.org Subject: Re: font missing warning Check the environment (set on Windows). Look for the TEMP entry. It's TEMP=C:\Users\Jeremias\AppData\Local\Temp on my machine for my user. If it's not around, maybe the user under which FOP is running has no write access to the user directory or there is no user directory at all. I have no idea. I love remote debugging. ;-) On 02.02.2011 18:58:53 Roberto Cahanap wrote: Hello Jeremias, Thank you for shaking my memory. Yes on the TEST server, we have a folder named .FOP that is in the USERACCOUNT's directory. Inside this is a file called fop-fonts.cache. There is no such folder on our Production server. Would you know why this is so? If this folder is not there, then where would it be looking for these cached fonts? If like you say in the temp directory, where would that be on a Windows system? Thank you again. -Original Message- From: Jeremias Maerki [mailto:d...@jeremias-maerki.ch] Sent: Wednesday, February 02, 2011 12:22 PM To: fop-users@xmlgraphics.apache.org Subject: Re: font missing warning Normally, FOP puts the fop-fonts.cache file in user.home/.fop. If that directory is not writable the cache file is put into the temp directory. It could indeed help to delete the cache file. If there was a problem loading a particular font, it can get flagged as invalid and won't be loaded again later. On 02.02.2011 16:52:05 Roberto Cahanap wrote: I vaguely remember that we had a similar issue with our Test server (it's working now on this Test server). To get it to work, I remembered deleting the fop cache file, but I can't seem to find the location of this cache file now. Help! snip/ Jeremias Maerki - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof. Jeremias Maerki - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
RE: font missing warning
compile the fonts into a jar... Yikes! That's foreign language to me, that sounds like java talk. Still testing and getting advice... :-) -Original Message- From: Eric Douglas [mailto:edoug...@blockhouse.com] Sent: Wednesday, February 02, 2011 1:48 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning Remote debugging means assumptions or questions or both. I started by assuming this user like most is running from a command line. Finding the fonts correctly is a lot easier from embedded code. It's even easier if I can compile the fonts into a jar and reference them internally so they never have a path. The second easiest way is if you can reference them with a path relative to the path of the fop.jar. Users frequently expect remote debugging but unless you have remote access to view their machine instructions look like Step 1: Does your screen show this? If yes do this, else do that. -Original Message- From: Jeremias Maerki [mailto:d...@jeremias-maerki.ch] Sent: Wednesday, February 02, 2011 1:35 PM To: fop-users@xmlgraphics.apache.org Subject: Re: font missing warning Check the environment (set on Windows). Look for the TEMP entry. It's TEMP=C:\Users\Jeremias\AppData\Local\Temp on my machine for my user. If it's not around, maybe the user under which FOP is running has no write access to the user directory or there is no user directory at all. I have no idea. I love remote debugging. ;-) On 02.02.2011 18:58:53 Roberto Cahanap wrote: Hello Jeremias, Thank you for shaking my memory. Yes on the TEST server, we have a folder named .FOP that is in the USERACCOUNT's directory. Inside this is a file called fop-fonts.cache. There is no such folder on our Production server. Would you know why this is so? If this folder is not there, then where would it be looking for these cached fonts? If like you say in the temp directory, where would that be on a Windows system? Thank you again. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
RE: font missing warning
Yes. If you're using FOP you're running Java. Somewhere you have a file fop.jar. To compile the fonts into a jar you would need a Java editor (Eclipse, Netbeans). To use them as such you'd have to write your own Java code. That's the path I'm going. Fop doesn't provide an easy way to do that, but embedding them in a jar puts them in with the programs so using embedded code you can reference them directly. The custom jar has to be on the Java classpath so you don't have to worry about hardcoded font paths or auto detection. If you got it to work with the config file telling it where your fonts are I wouldn't worry about it. Other advantages to embedding the specific fonts you need in a jar 1) You can load custom fonts and get them to work on any system. 2) You don't need a config file. 3) The fonts go with the programs so you wouldn't have to worry about different machines having different versions of the same file. We actually had a problem years ago running reports in Courier font on client PCs which were running Windows 98 and for some reasons some PCs had a different version of font so the same report using a font file of the same name produced different output. If I'm testing a program on my PC or a test server I'd rather not rely on the test machine having the same file as the production server or another client machine unless It's a file I specifically put there. -Original Message- From: Roberto Cahanap [mailto:rcaha...@bioreference.com] Sent: Wednesday, February 02, 2011 2:08 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning compile the fonts into a jar... Yikes! That's foreign language to me, that sounds like java talk. Still testing and getting advice... :-) -Original Message- From: Eric Douglas [mailto:edoug...@blockhouse.com] Sent: Wednesday, February 02, 2011 1:48 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning Remote debugging means assumptions or questions or both. I started by assuming this user like most is running from a command line. Finding the fonts correctly is a lot easier from embedded code. It's even easier if I can compile the fonts into a jar and reference them internally so they never have a path. The second easiest way is if you can reference them with a path relative to the path of the fop.jar. Users frequently expect remote debugging but unless you have remote access to view their machine instructions look like Step 1: Does your screen show this? If yes do this, else do that. -Original Message- From: Jeremias Maerki [mailto:d...@jeremias-maerki.ch] Sent: Wednesday, February 02, 2011 1:35 PM To: fop-users@xmlgraphics.apache.org Subject: Re: font missing warning Check the environment (set on Windows). Look for the TEMP entry. It's TEMP=C:\Users\Jeremias\AppData\Local\Temp on my machine for my user. If it's not around, maybe the user under which FOP is running has no write access to the user directory or there is no user directory at all. I have no idea. I love remote debugging. ;-) On 02.02.2011 18:58:53 Roberto Cahanap wrote: Hello Jeremias, Thank you for shaking my memory. Yes on the TEST server, we have a folder named .FOP that is in the USERACCOUNT's directory. Inside this is a file called fop-fonts.cache. There is no such folder on our Production server. Would you know why this is so? If this folder is not there, then where would it be looking for these cached fonts? If like you say in the temp directory, where would that be on a Windows system? Thank you again. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
RE: font missing warning
I'm getting somewhere... On the Test server, I renamed conf.xconf. When I tried to create the pdf from the Test server, I get this: WARNING: Font 'Consolas,normal,400' not found. Substituting with 'any,normal,400' But when I renamed it back to conf.xconf, I am still getting this error. I read in the docs that you can specify the config, so I did this: C:\Program Files\Apache\fopfop -xsl \temp\roberto\test2.xsl -xml \temp\roberto\test2.xml -pdf \temp\roberto\test2c.pdf -c conf\fop.xconf It worked again. I did the same on the PRODUCTION server, adding the -c option at the end, it also worked. Now, I'm trying to figure out where to put this -c option in the FOP.BAT so that it can work within. Thanks again Eric and Jeremias. -Original Message- From: Eric Douglas [mailto:edoug...@blockhouse.com] Sent: Wednesday, February 02, 2011 2:43 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning Yes. If you're using FOP you're running Java. Somewhere you have a file fop.jar. To compile the fonts into a jar you would need a Java editor (Eclipse, Netbeans). To use them as such you'd have to write your own Java code. That's the path I'm going. Fop doesn't provide an easy way to do that, but embedding them in a jar puts them in with the programs so using embedded code you can reference them directly. The custom jar has to be on the Java classpath so you don't have to worry about hardcoded font paths or auto detection. If you got it to work with the config file telling it where your fonts are I wouldn't worry about it. Other advantages to embedding the specific fonts you need in a jar 1) You can load custom fonts and get them to work on any system. 2) You don't need a config file. 3) The fonts go with the programs so you wouldn't have to worry about different machines having different versions of the same file. We actually had a problem years ago running reports in Courier font on client PCs which were running Windows 98 and for some reasons some PCs had a different version of font so the same report using a font file of the same name produced different output. If I'm testing a program on my PC or a test server I'd rather not rely on the test machine having the same file as the production server or another client machine unless It's a file I specifically put there. -Original Message- From: Roberto Cahanap [mailto:rcaha...@bioreference.com] Sent: Wednesday, February 02, 2011 2:08 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning compile the fonts into a jar... Yikes! That's foreign language to me, that sounds like java talk. Still testing and getting advice... :-) -Original Message- From: Eric Douglas [mailto:edoug...@blockhouse.com] Sent: Wednesday, February 02, 2011 1:48 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning Remote debugging means assumptions or questions or both. I started by assuming this user like most is running from a command line. Finding the fonts correctly is a lot easier from embedded code. It's even easier if I can compile the fonts into a jar and reference them internally so they never have a path. The second easiest way is if you can reference them with a path relative to the path of the fop.jar. Users frequently expect remote debugging but unless you have remote access to view their machine instructions look like Step 1: Does your screen show this? If yes do this, else do that. -Original Message- From: Jeremias Maerki [mailto:d...@jeremias-maerki.ch] Sent: Wednesday, February 02, 2011 1:35 PM To: fop-users@xmlgraphics.apache.org Subject: Re: font missing warning Check the environment (set on Windows). Look for the TEMP entry. It's TEMP=C:\Users\Jeremias\AppData\Local\Temp on my machine for my user. If it's not around, maybe the user under which FOP is running has no write access to the user directory or there is no user directory at all. I have no idea. I love remote debugging. ;-) On 02.02.2011 18:58:53 Roberto Cahanap wrote: Hello Jeremias, Thank you for shaking my memory. Yes on the TEST server, we have a folder named .FOP that is in the USERACCOUNT's directory. Inside this is a file called fop-fonts.cache. There is no such folder on our Production server. Would you know why this is so? If this folder is not there, then where would it be looking for these cached fonts? If like you say in the temp directory, where would that be on a Windows system? Thank you again. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging
RE: font missing warning
Those are arguments. The bat accepts arguments as a pass value. So it's just Fop.bat -xsl \temp\roberto\test2.xsl -xml \temp\roberto\test2.xml -pdf \temp\roberto\test2c.pdf -c conf\fop.xconf -Original Message- From: Roberto Cahanap [mailto:rcaha...@bioreference.com] Sent: Wednesday, February 02, 2011 2:52 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning I'm getting somewhere... On the Test server, I renamed conf.xconf. When I tried to create the pdf from the Test server, I get this: WARNING: Font 'Consolas,normal,400' not found. Substituting with 'any,normal,400' But when I renamed it back to conf.xconf, I am still getting this error. I read in the docs that you can specify the config, so I did this: C:\Program Files\Apache\fopfop -xsl \temp\roberto\test2.xsl -xml \temp\roberto\test2.xml -pdf \temp\roberto\test2c.pdf -c conf\fop.xconf It worked again. I did the same on the PRODUCTION server, adding the -c option at the end, it also worked. Now, I'm trying to figure out where to put this -c option in the FOP.BAT so that it can work within. Thanks again Eric and Jeremias. -Original Message- From: Eric Douglas [mailto:edoug...@blockhouse.com] Sent: Wednesday, February 02, 2011 2:43 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning Yes. If you're using FOP you're running Java. Somewhere you have a file fop.jar. To compile the fonts into a jar you would need a Java editor (Eclipse, Netbeans). To use them as such you'd have to write your own Java code. That's the path I'm going. Fop doesn't provide an easy way to do that, but embedding them in a jar puts them in with the programs so using embedded code you can reference them directly. The custom jar has to be on the Java classpath so you don't have to worry about hardcoded font paths or auto detection. If you got it to work with the config file telling it where your fonts are I wouldn't worry about it. Other advantages to embedding the specific fonts you need in a jar 1) You can load custom fonts and get them to work on any system. 2) You don't need a config file. 3) The fonts go with the programs so you wouldn't have to worry about different machines having different versions of the same file. We actually had a problem years ago running reports in Courier font on client PCs which were running Windows 98 and for some reasons some PCs had a different version of font so the same report using a font file of the same name produced different output. If I'm testing a program on my PC or a test server I'd rather not rely on the test machine having the same file as the production server or another client machine unless It's a file I specifically put there. -Original Message- From: Roberto Cahanap [mailto:rcaha...@bioreference.com] Sent: Wednesday, February 02, 2011 2:08 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning compile the fonts into a jar... Yikes! That's foreign language to me, that sounds like java talk. Still testing and getting advice... :-) -Original Message- From: Eric Douglas [mailto:edoug...@blockhouse.com] Sent: Wednesday, February 02, 2011 1:48 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning Remote debugging means assumptions or questions or both. I started by assuming this user like most is running from a command line. Finding the fonts correctly is a lot easier from embedded code. It's even easier if I can compile the fonts into a jar and reference them internally so they never have a path. The second easiest way is if you can reference them with a path relative to the path of the fop.jar. Users frequently expect remote debugging but unless you have remote access to view their machine instructions look like Step 1: Does your screen show this? If yes do this, else do that. -Original Message- From: Jeremias Maerki [mailto:d...@jeremias-maerki.ch] Sent: Wednesday, February 02, 2011 1:35 PM To: fop-users@xmlgraphics.apache.org Subject: Re: font missing warning Check the environment (set on Windows). Look for the TEMP entry. It's TEMP=C:\Users\Jeremias\AppData\Local\Temp on my machine for my user. If it's not around, maybe the user under which FOP is running has no write access to the user directory or there is no user directory at all. I have no idea. I love remote debugging. ;-) On 02.02.2011 18:58:53 Roberto Cahanap wrote: Hello Jeremias, Thank you for shaking my memory. Yes on the TEST server, we have a folder named .FOP that is in the USERACCOUNT's directory. Inside this is a file called fop-fonts.cache. There is no such folder on our Production server. Would you know why this is so? If this folder is not there, then where would it be looking for these cached fonts? If like you say in the temp directory, where would that be on a Windows system? Thank you again. - To unsubscribe, e-mail: fop
RE: font missing warning
Yes, but is there a way to place the -c conf\fop.xconf inside this batch file. Our software runs the FOP.BAT, I don't really know how this software tells it where the XSL and XML is located. I'm just wondering how I can hard code this inside the batch file. -Original Message- From: Eric Douglas [mailto:edoug...@blockhouse.com] Sent: Wednesday, February 02, 2011 3:01 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning Those are arguments. The bat accepts arguments as a pass value. So it's just Fop.bat -xsl \temp\roberto\test2.xsl -xml \temp\roberto\test2.xml -pdf \temp\roberto\test2c.pdf -c conf\fop.xconf -Original Message- From: Roberto Cahanap [mailto:rcaha...@bioreference.com] Sent: Wednesday, February 02, 2011 2:52 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning I'm getting somewhere... On the Test server, I renamed conf.xconf. When I tried to create the pdf from the Test server, I get this: WARNING: Font 'Consolas,normal,400' not found. Substituting with 'any,normal,400' But when I renamed it back to conf.xconf, I am still getting this error. I read in the docs that you can specify the config, so I did this: C:\Program Files\Apache\fopfop -xsl \temp\roberto\test2.xsl -xml \temp\roberto\test2.xml -pdf \temp\roberto\test2c.pdf -c conf\fop.xconf It worked again. I did the same on the PRODUCTION server, adding the -c option at the end, it also worked. Now, I'm trying to figure out where to put this -c option in the FOP.BAT so that it can work within. Thanks again Eric and Jeremias. -Original Message- From: Eric Douglas [mailto:edoug...@blockhouse.com] Sent: Wednesday, February 02, 2011 2:43 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning Yes. If you're using FOP you're running Java. Somewhere you have a file fop.jar. To compile the fonts into a jar you would need a Java editor (Eclipse, Netbeans). To use them as such you'd have to write your own Java code. That's the path I'm going. Fop doesn't provide an easy way to do that, but embedding them in a jar puts them in with the programs so using embedded code you can reference them directly. The custom jar has to be on the Java classpath so you don't have to worry about hardcoded font paths or auto detection. If you got it to work with the config file telling it where your fonts are I wouldn't worry about it. Other advantages to embedding the specific fonts you need in a jar 1) You can load custom fonts and get them to work on any system. 2) You don't need a config file. 3) The fonts go with the programs so you wouldn't have to worry about different machines having different versions of the same file. We actually had a problem years ago running reports in Courier font on client PCs which were running Windows 98 and for some reasons some PCs had a different version of font so the same report using a font file of the same name produced different output. If I'm testing a program on my PC or a test server I'd rather not rely on the test machine having the same file as the production server or another client machine unless It's a file I specifically put there. -Original Message- From: Roberto Cahanap [mailto:rcaha...@bioreference.com] Sent: Wednesday, February 02, 2011 2:08 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning compile the fonts into a jar... Yikes! That's foreign language to me, that sounds like java talk. Still testing and getting advice... :-) -Original Message- From: Eric Douglas [mailto:edoug...@blockhouse.com] Sent: Wednesday, February 02, 2011 1:48 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning Remote debugging means assumptions or questions or both. I started by assuming this user like most is running from a command line. Finding the fonts correctly is a lot easier from embedded code. It's even easier if I can compile the fonts into a jar and reference them internally so they never have a path. The second easiest way is if you can reference them with a path relative to the path of the fop.jar. Users frequently expect remote debugging but unless you have remote access to view their machine instructions look like Step 1: Does your screen show this? If yes do this, else do that. -Original Message- From: Jeremias Maerki [mailto:d...@jeremias-maerki.ch] Sent: Wednesday, February 02, 2011 1:35 PM To: fop-users@xmlgraphics.apache.org Subject: Re: font missing warning Check the environment (set on Windows). Look for the TEMP entry. It's TEMP=C:\Users\Jeremias\AppData\Local\Temp on my machine for my user. If it's not around, maybe the user under which FOP is running has no write access to the user directory or there is no user directory at all. I have no idea. I love remote debugging. ;-) On 02.02.2011 18:58:53 Roberto Cahanap wrote: Hello Jeremias, Thank you for shaking my memory. Yes on the TEST server, we have a folder named .FOP
Re: font missing warning
I don't know if this is an option for you, but why don't you just create another batch script that contains the arguments. That way you can leave the working code working and configure another batch script. Mehdi On 2 February 2011 20:01, Roberto Cahanap rcaha...@bioreference.com wrote: Yes, but is there a way to place the -c conf\fop.xconf inside this batch file. Our software runs the FOP.BAT, I don't really know how this software tells it where the XSL and XML is located. I'm just wondering how I can hard code this inside the batch file. -Original Message- From: Eric Douglas [mailto:edoug...@blockhouse.com] Sent: Wednesday, February 02, 2011 3:01 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning Those are arguments. The bat accepts arguments as a pass value. So it's just Fop.bat -xsl \temp\roberto\test2.xsl -xml \temp\roberto\test2.xml -pdf \temp\roberto\test2c.pdf -c conf\fop.xconf -Original Message- From: Roberto Cahanap [mailto:rcaha...@bioreference.com] Sent: Wednesday, February 02, 2011 2:52 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning I'm getting somewhere... On the Test server, I renamed conf.xconf. When I tried to create the pdf from the Test server, I get this: WARNING: Font 'Consolas,normal,400' not found. Substituting with 'any,normal,400' But when I renamed it back to conf.xconf, I am still getting this error. I read in the docs that you can specify the config, so I did this: C:\Program Files\Apache\fopfop -xsl \temp\roberto\test2.xsl -xml \temp\roberto\test2.xml -pdf \temp\roberto\test2c.pdf -c conf\fop.xconf It worked again. I did the same on the PRODUCTION server, adding the -c option at the end, it also worked. Now, I'm trying to figure out where to put this -c option in the FOP.BAT so that it can work within. Thanks again Eric and Jeremias. -Original Message- From: Eric Douglas [mailto:edoug...@blockhouse.com] Sent: Wednesday, February 02, 2011 2:43 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning Yes. If you're using FOP you're running Java. Somewhere you have a file fop.jar. To compile the fonts into a jar you would need a Java editor (Eclipse, Netbeans). To use them as such you'd have to write your own Java code. That's the path I'm going. Fop doesn't provide an easy way to do that, but embedding them in a jar puts them in with the programs so using embedded code you can reference them directly. The custom jar has to be on the Java classpath so you don't have to worry about hardcoded font paths or auto detection. If you got it to work with the config file telling it where your fonts are I wouldn't worry about it. Other advantages to embedding the specific fonts you need in a jar 1) You can load custom fonts and get them to work on any system. 2) You don't need a config file. 3) The fonts go with the programs so you wouldn't have to worry about different machines having different versions of the same file. We actually had a problem years ago running reports in Courier font on client PCs which were running Windows 98 and for some reasons some PCs had a different version of font so the same report using a font file of the same name produced different output. If I'm testing a program on my PC or a test server I'd rather not rely on the test machine having the same file as the production server or another client machine unless It's a file I specifically put there. -Original Message- From: Roberto Cahanap [mailto:rcaha...@bioreference.com] Sent: Wednesday, February 02, 2011 2:08 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning compile the fonts into a jar... Yikes! That's foreign language to me, that sounds like java talk. Still testing and getting advice... :-) -Original Message- From: Eric Douglas [mailto:edoug...@blockhouse.com] Sent: Wednesday, February 02, 2011 1:48 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning Remote debugging means assumptions or questions or both. I started by assuming this user like most is running from a command line. Finding the fonts correctly is a lot easier from embedded code. It's even easier if I can compile the fonts into a jar and reference them internally so they never have a path. The second easiest way is if you can reference them with a path relative to the path of the fop.jar. Users frequently expect remote debugging but unless you have remote access to view their machine instructions look like Step 1: Does your screen show this? If yes do this, else do that. -Original Message- From: Jeremias Maerki [mailto:d...@jeremias-maerki.ch] Sent: Wednesday, February 02, 2011 1:35 PM To: fop-users@xmlgraphics.apache.org Subject: Re: font missing warning Check the environment (set on Windows). Look for the TEMP entry. It's TEMP=C:\Users\Jeremias
RE: font missing warning
Ah true! Yes. I will leave fop.bat alone and create another batch file referring to it? Maybe that will work. I will see. Thank you Mehdi. -Original Message- From: mehdi houshmand [mailto:med1...@gmail.com] Sent: Wednesday, February 02, 2011 3:05 PM To: fop-users@xmlgraphics.apache.org Subject: Re: font missing warning I don't know if this is an option for you, but why don't you just create another batch script that contains the arguments. That way you can leave the working code working and configure another batch script. Mehdi On 2 February 2011 20:01, Roberto Cahanap rcaha...@bioreference.com wrote: Yes, but is there a way to place the -c conf\fop.xconf inside this batch file. Our software runs the FOP.BAT, I don't really know how this software tells it where the XSL and XML is located. I'm just wondering how I can hard code this inside the batch file. -Original Message- From: Eric Douglas [mailto:edoug...@blockhouse.com] Sent: Wednesday, February 02, 2011 3:01 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning Those are arguments. The bat accepts arguments as a pass value. So it's just Fop.bat -xsl \temp\roberto\test2.xsl -xml \temp\roberto\test2.xml -pdf \temp\roberto\test2c.pdf -c conf\fop.xconf -Original Message- From: Roberto Cahanap [mailto:rcaha...@bioreference.com] Sent: Wednesday, February 02, 2011 2:52 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning I'm getting somewhere... On the Test server, I renamed conf.xconf. When I tried to create the pdf from the Test server, I get this: WARNING: Font 'Consolas,normal,400' not found. Substituting with 'any,normal,400' But when I renamed it back to conf.xconf, I am still getting this error. I read in the docs that you can specify the config, so I did this: C:\Program Files\Apache\fopfop -xsl \temp\roberto\test2.xsl -xml \temp\roberto\test2.xml -pdf \temp\roberto\test2c.pdf -c conf\fop.xconf It worked again. I did the same on the PRODUCTION server, adding the -c option at the end, it also worked. Now, I'm trying to figure out where to put this -c option in the FOP.BAT so that it can work within. Thanks again Eric and Jeremias. -Original Message- From: Eric Douglas [mailto:edoug...@blockhouse.com] Sent: Wednesday, February 02, 2011 2:43 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning Yes. If you're using FOP you're running Java. Somewhere you have a file fop.jar. To compile the fonts into a jar you would need a Java editor (Eclipse, Netbeans). To use them as such you'd have to write your own Java code. That's the path I'm going. Fop doesn't provide an easy way to do that, but embedding them in a jar puts them in with the programs so using embedded code you can reference them directly. The custom jar has to be on the Java classpath so you don't have to worry about hardcoded font paths or auto detection. If you got it to work with the config file telling it where your fonts are I wouldn't worry about it. Other advantages to embedding the specific fonts you need in a jar 1) You can load custom fonts and get them to work on any system. 2) You don't need a config file. 3) The fonts go with the programs so you wouldn't have to worry about different machines having different versions of the same file. We actually had a problem years ago running reports in Courier font on client PCs which were running Windows 98 and for some reasons some PCs had a different version of font so the same report using a font file of the same name produced different output. If I'm testing a program on my PC or a test server I'd rather not rely on the test machine having the same file as the production server or another client machine unless It's a file I specifically put there. -Original Message- From: Roberto Cahanap [mailto:rcaha...@bioreference.com] Sent: Wednesday, February 02, 2011 2:08 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning compile the fonts into a jar... Yikes! That's foreign language to me, that sounds like java talk. Still testing and getting advice... :-) -Original Message- From: Eric Douglas [mailto:edoug...@blockhouse.com] Sent: Wednesday, February 02, 2011 1:48 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning Remote debugging means assumptions or questions or both. I started by assuming this user like most is running from a command line. Finding the fonts correctly is a lot easier from embedded code. It's even easier if I can compile the fonts into a jar and reference them internally so they never have a path. The second easiest way is if you can reference them with a path relative to the path of the fop.jar. Users frequently expect remote debugging but unless you have remote access to view their machine instructions look like Step 1: Does your screen show
RE: font missing warning
If you can modify the batch file and you can't modify the line which calls the batch file just put the arguments into the batch file if you want to hardcode them. Just put your argument string in where it's accepting arguments. That would be the line ending with %1. Either that or put the Fop.bat statement as I described below (except start with fop2.bat) into a new file named fop.bat and rename fop.bat. -Original Message- From: Roberto Cahanap [mailto:rcaha...@bioreference.com] Sent: Wednesday, February 02, 2011 3:02 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning Yes, but is there a way to place the -c conf\fop.xconf inside this batch file. Our software runs the FOP.BAT, I don't really know how this software tells it where the XSL and XML is located. I'm just wondering how I can hard code this inside the batch file. -Original Message- From: Eric Douglas [mailto:edoug...@blockhouse.com] Sent: Wednesday, February 02, 2011 3:01 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning Those are arguments. The bat accepts arguments as a pass value. So it's just Fop.bat -xsl \temp\roberto\test2.xsl -xml \temp\roberto\test2.xml -pdf \temp\roberto\test2c.pdf -c conf\fop.xconf -Original Message- From: Roberto Cahanap [mailto:rcaha...@bioreference.com] Sent: Wednesday, February 02, 2011 2:52 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning I'm getting somewhere... On the Test server, I renamed conf.xconf. When I tried to create the pdf from the Test server, I get this: WARNING: Font 'Consolas,normal,400' not found. Substituting with 'any,normal,400' But when I renamed it back to conf.xconf, I am still getting this error. I read in the docs that you can specify the config, so I did this: C:\Program Files\Apache\fopfop -xsl \temp\roberto\test2.xsl -xml \temp\roberto\test2.xml -pdf \temp\roberto\test2c.pdf -c conf\fop.xconf It worked again. I did the same on the PRODUCTION server, adding the -c option at the end, it also worked. Now, I'm trying to figure out where to put this -c option in the FOP.BAT so that it can work within. Thanks again Eric and Jeremias. -Original Message- From: Eric Douglas [mailto:edoug...@blockhouse.com] Sent: Wednesday, February 02, 2011 2:43 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning Yes. If you're using FOP you're running Java. Somewhere you have a file fop.jar. To compile the fonts into a jar you would need a Java editor (Eclipse, Netbeans). To use them as such you'd have to write your own Java code. That's the path I'm going. Fop doesn't provide an easy way to do that, but embedding them in a jar puts them in with the programs so using embedded code you can reference them directly. The custom jar has to be on the Java classpath so you don't have to worry about hardcoded font paths or auto detection. If you got it to work with the config file telling it where your fonts are I wouldn't worry about it. Other advantages to embedding the specific fonts you need in a jar 1) You can load custom fonts and get them to work on any system. 2) You don't need a config file. 3) The fonts go with the programs so you wouldn't have to worry about different machines having different versions of the same file. We actually had a problem years ago running reports in Courier font on client PCs which were running Windows 98 and for some reasons some PCs had a different version of font so the same report using a font file of the same name produced different output. If I'm testing a program on my PC or a test server I'd rather not rely on the test machine having the same file as the production server or another client machine unless It's a file I specifically put there. -Original Message- From: Roberto Cahanap [mailto:rcaha...@bioreference.com] Sent: Wednesday, February 02, 2011 2:08 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning compile the fonts into a jar... Yikes! That's foreign language to me, that sounds like java talk. Still testing and getting advice... :-) -Original Message- From: Eric Douglas [mailto:edoug...@blockhouse.com] Sent: Wednesday, February 02, 2011 1:48 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning Remote debugging means assumptions or questions or both. I started by assuming this user like most is running from a command line. Finding the fonts correctly is a lot easier from embedded code. It's even easier if I can compile the fonts into a jar and reference them internally so they never have a path. The second easiest way is if you can reference them with a path relative to the path of the fop.jar. Users frequently expect remote debugging but unless you have remote access to view their machine instructions look like Step 1: Does your screen show this? If yes do this, else do that. -Original Message- From: Jeremias Maerki [mailto:d
RE: font missing warning
To everyone! I emailed the software group that's responsible for calling FOP.BAT (shoutout for Intersystems Cache/Zen software!), and they responded that there's a variable that I can set that take the configuration file location. I set this variable, and it now works! Woohoo!!! I can now go home and shovel from this North East (U.S.) winter storm. Thank you again folks! -Roberto -Original Message- From: Eric Douglas [mailto:edoug...@blockhouse.com] Sent: Wednesday, February 02, 2011 3:09 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning If you can modify the batch file and you can't modify the line which calls the batch file just put the arguments into the batch file if you want to hardcode them. Just put your argument string in where it's accepting arguments. That would be the line ending with %1. Either that or put the Fop.bat statement as I described below (except start with fop2.bat) into a new file named fop.bat and rename fop.bat. -Original Message- From: Roberto Cahanap [mailto:rcaha...@bioreference.com] Sent: Wednesday, February 02, 2011 3:02 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning Yes, but is there a way to place the -c conf\fop.xconf inside this batch file. Our software runs the FOP.BAT, I don't really know how this software tells it where the XSL and XML is located. I'm just wondering how I can hard code this inside the batch file. -Original Message- From: Eric Douglas [mailto:edoug...@blockhouse.com] Sent: Wednesday, February 02, 2011 3:01 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning Those are arguments. The bat accepts arguments as a pass value. So it's just Fop.bat -xsl \temp\roberto\test2.xsl -xml \temp\roberto\test2.xml -pdf \temp\roberto\test2c.pdf -c conf\fop.xconf -Original Message- From: Roberto Cahanap [mailto:rcaha...@bioreference.com] Sent: Wednesday, February 02, 2011 2:52 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning I'm getting somewhere... On the Test server, I renamed conf.xconf. When I tried to create the pdf from the Test server, I get this: WARNING: Font 'Consolas,normal,400' not found. Substituting with 'any,normal,400' But when I renamed it back to conf.xconf, I am still getting this error. I read in the docs that you can specify the config, so I did this: C:\Program Files\Apache\fopfop -xsl \temp\roberto\test2.xsl -xml \temp\roberto\test2.xml -pdf \temp\roberto\test2c.pdf -c conf\fop.xconf It worked again. I did the same on the PRODUCTION server, adding the -c option at the end, it also worked. Now, I'm trying to figure out where to put this -c option in the FOP.BAT so that it can work within. Thanks again Eric and Jeremias. -Original Message- From: Eric Douglas [mailto:edoug...@blockhouse.com] Sent: Wednesday, February 02, 2011 2:43 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning Yes. If you're using FOP you're running Java. Somewhere you have a file fop.jar. To compile the fonts into a jar you would need a Java editor (Eclipse, Netbeans). To use them as such you'd have to write your own Java code. That's the path I'm going. Fop doesn't provide an easy way to do that, but embedding them in a jar puts them in with the programs so using embedded code you can reference them directly. The custom jar has to be on the Java classpath so you don't have to worry about hardcoded font paths or auto detection. If you got it to work with the config file telling it where your fonts are I wouldn't worry about it. Other advantages to embedding the specific fonts you need in a jar 1) You can load custom fonts and get them to work on any system. 2) You don't need a config file. 3) The fonts go with the programs so you wouldn't have to worry about different machines having different versions of the same file. We actually had a problem years ago running reports in Courier font on client PCs which were running Windows 98 and for some reasons some PCs had a different version of font so the same report using a font file of the same name produced different output. If I'm testing a program on my PC or a test server I'd rather not rely on the test machine having the same file as the production server or another client machine unless It's a file I specifically put there. -Original Message- From: Roberto Cahanap [mailto:rcaha...@bioreference.com] Sent: Wednesday, February 02, 2011 2:08 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning compile the fonts into a jar... Yikes! That's foreign language to me, that sounds like java talk. Still testing and getting advice... :-) -Original Message- From: Eric Douglas [mailto:edoug...@blockhouse.com] Sent: Wednesday, February 02, 2011 1:48 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning Remote debugging means assumptions or questions or both. I started by assuming