简体   繁体   English

通过 java 设置 Android

[英]Aspose Android via java

I am using aspose java jar for web application and aspose Android via java for mobile application. I am using aspose java jar for web application and aspose Android via java for mobile application. By default aspose increase font size when i create pdf from mobile.默认情况下,当我从移动设备创建 pdf 时会增加字体大小。 Can someone tell me what exactly aspose doing for mobile?有人能告诉我 aspose 究竟为移动设备做什么吗?

Thanks for your inquiry.感谢您的询问。 I suspect that the difference in font size is actually the difference in fonts.我怀疑字体大小的差异实际上是fonts的差异。 Android has a limited set of fonts and when Aspose.Words cannot find some fonts upon rendering document to PDF it tries to substitute them. Android has a limited set of fonts and when Aspose.Words cannot find some fonts upon rendering document to PDF it tries to substitute them. You can configure font substitution rules using FontSubstitutionSetings class.您可以使用FontSubstitutionSetings class 配置字体替换规则。 If you need the exact rendering, then the same set of fonts must be used on different platforms.如果需要精确的渲染,那么同一套fonts必须在不同平台上使用。 You can put the required fonts into a folder and use it as font source in FontSettings .您可以将所需的 fonts 放入一个文件夹中,并将其用作FontSettings中的字体源。

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

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