We have a situation where we have code that works on a developer's computer (Windows 10, CF2018 Dev. Ed. (Enterprise-level functionality), plus whatever else is unique about their system), but does not work on a dev/test server (Windows Server 2019, CF2018 Standard Ed.). The specific issue is with font handling. The code uses fonts, based on a user's language preference (English, Spanish, or Chinese), and builds a PDF, using CFDocument. On the developer's computer, the logic for using this font OR that font works. On the dev/test box, it does not. This indicates to me that the code can access the fonts needed for the either/or choice on the developer's computer, but cannot access those fonts on the dev/test box. Do you have any suggestions on how to find the differences between the two systems? We have confirmed what I think are the easy things, same upgrade level, same Java version, Font Management settings, same CF Admin settings, etc. I have also looked at the system fonts on the systems, to make sure that the fonts are available in the OS. I get that, if this worked in an earlier version of CF (it did, in fact, work in CF11), but not in CF2018, I would chaulk it up to deprecated features, and have the developer recode it. However, since it runs on one system and not another, I am less inclined to do that. Any assistance or suggestions would be most appreciated. Thanks.
You may want to try switching to the cfhtmltopdf tag in place of cfdocument, this seems to handle fonts better.
Thanks for the tip. We will take a look at switching. Do you think that it could address the consistency issue over different computers?