简体   繁体   English

Mac OSX上的Java 7(更新7和9) - Applet打印小字体

[英]Java 7 (Update 7 and 9) on Mac OSX - Applet printing tiny fonts

As of Java 7, when you go to print from an Applet the fonts are no longer readable (super tiny). 从Java 7开始,当你从Applet打印时,字体不再可读(超小)。 A preview of the same on content on the screen is not an issue only show a font issue when you print the contents. 屏幕上内容相同的预览不是问题,只在打印内容时显示字体问题。

To see this failure in action you can test using this page: 要查看此操作失败,您可以使用此页面进行测试:

https://www.peernet.com/PEERNETReportsServer3/ademos.htm https://www.peernet.com/PEERNETReportsServer3/ademos.htm

On this page,: 在本页,:

  1. press the preview button to show the page to be printed 按预览按钮显示要打印的页面
  2. press the 'Print...' button, print to any printer and you see the textual information is just printed as dashes (super tiny font). 按“打印...”按钮,打印到任何打印机,您会看到文本信息只是以短划线(超小字体)打印。

Any suggestions on how to correct Java 7 printing from applets. 有关如何从applet更正Java 7打印的任何建议。

BTW: This is a problem on Lion and Mountain Lion with Java 7, it works OK from a full Java application as well as applet running in Windows and OSX with Java 6 BTW:这是使用Java 7的Lion和Mountain Lion的一个问题,它可以从完整的Java应用程序以及在Windows和OSX中使用Java 6运行的applet运行良好

This could be something similar to this question , although in this case it's Oracle on mac vs. oracle on Windows. 这可能类似于这个问题 ,尽管在这种情况下它是Mac上的Oracle和Windows上的oracle。 Sounds like the rendering for Java 7 is implemented differently and you're getting smaller fonts. 听起来Java 7的渲染实现方式不同,而且你的字体越来越小。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM