简体   繁体   English

警告在4.2之前的Xcode版本中使用Tahoma字体可能会产生意外结果。

[英]warning Using the font Tahoma in versions of Xcode prior to 4.2 may have unexpected results.ios

I am getting this warning in Xcode ...plz give me idea to solve this warning issue 我在Xcode收到此警告...请给我个主意来解决此警告问题

Using the font Tahoma in versions of Xcode prior to 4.2 may have unexpected results.iOS 在4.2之前的Xcode版本中使用Tahoma字体可能会产生意外结果。

May Be Mistake Should be in How To add Font in Application. 可能是错误的,应该在如何在应用程序中添加字体。

This is Step for, How to add custom font in Application. 这是步骤,如何在应用程序中添加自定义字体。

1 - Add .TTF font in your application 1-在您的应用程序中添加.TTF字体
2 - Modify the application-info.plist file . 2-修改application-info.plist file
3 - Add the key "Fonts provided by application" to a new row 3-将关键字“应用程序提供的字体”添加到新行
4 - and add each .TTF file (of font) to each line. 4-并将每个.TTF文件( .TTF字体)添加到每一行。

For more info read This and This site. 欲了解更多信息阅读网站。

FOR Your INFORMATION : 供你参考 :

For Bold 对于大胆

// Equivalent to [UIFont fontWithName:@"FontName-BoldMT" size:17]
UIFont* font = [UIFont fontWithFamilyName:@"FontName" traits:GSBoldFontMask size:17];

And bold/italic 和粗体/斜体

UIFont* font = [UIFont fontWithMarkupDescription:@"font-family: FontName; font-size: 17px; font-weight: bold/italic;"]; // set here, either bold/italic.
  1. Go to xib 前往xib
  2. click on the "show file Inspector icon" (first icon). 单击“显示文件检查器图标”(第一个图标)。
  3. Under the document versioning change your development greater than 4.2 在文档版本控制下,将您的开发更改为大于4.2

在IB中,转到“ 文件检查 器” ,其中文件版本控制中的界面生成器文件下的开发值大于当前值(xcode版本)。

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

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