Search Unity

GUI.Label causing font warnings

Discussion in 'iOS and tvOS' started by embraceware, Dec 19, 2021.

  1. embraceware

    embraceware

    Joined:
    Apr 17, 2017
    Posts:
    32
    When using GUI.Label on iOS 15 devices I get this warning:

    CoreText note: Client requested name ".SFUI-Regular", it will get TimesNewRomanPSMT rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[UIFont systemFontOfSize:].

    Is there a workaround for this platform?

    I'm just using GUI.Label to display a debug FPS counter:
    GUI.Label(boxRect, "FPS Text Here");