简体   繁体   English

在Codenameone应用程序中使用ttf文件的优缺点

[英]Advantages and Disadvantages of using ttf file in Codenameone application

请在Codenameone应用程序中使用ttf字体的优点和缺点是什么?

Disadvantages may be: 缺点可能是:

  • Some ttf font sizes may not look great on different devices if your sizes don't fall within small, medium and large. 如果您的ttf字体大小不在小号,中号和大号之间,则某些ttf字体大小可能看起来不太理想。
  • Few extra kilobytes add to your overall app size (Not really bad). 额外的几千字节增加了您的整体应用程序大小(不是很差)。

Advantages includes but not limited to: 优势包括但不限于:

  • Ability to customize your app look and feel by using any font of your choice. 可以使用您选择的任何字体来自定义应用的外观。 Supported on all platforms. 在所有平台上都受支持。
  • Allow to have thousands of icons (even flat logos) without having a huge app through fonticon. 通过fonticon可以拥有数千个图标(甚至是平面徽标),而无需安装大型应用程序。

  • Reduction in app size by using fonticon (ttf font) to generate icons and even logos. 通过使用fonticon(ttf字体)生成图标甚至徽标来减小应用程序大小。

  • Easy Integration. 易于集成。
  • Supports having different font variant and size like light, regular, bold and so on... 支持具有不同的字体变体和大小,例如浅色,常规,粗体等。
  • Allows using millimetres for a very large font. 允许使用毫米表示非常大的字体。

Codenameone now supports using platform native fonts on iOS and Android. Codenameone现在支持在iOS和Android上使用平台本机字体。 Read more about the new native fonts here 在此处详细了解新的本机字体

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

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