iOS Question Can not use Digitally Signed font as custom font?

Discussion in 'iOS Questions' started by susu, Jun 13, 2015.

  1. susu

    susu Well-Known Member Licensed User

    Hi, I used this code to change the font of Navigation Bar:

    Code:
    SetNavigationBarTitleStyle(Colors.White, Font.CreateNew2("Open Sans Light"18))
    Code:
    Sub SetNavigationBarTitleStyle(Color As Int, Fnt As Font)
       
    Dim attributes As NativeObject
       
    attributes = CreateMap("NSFont": Fnt, "NSColor"attributes.ColorToUIColor(Color))
       
    Dim no As NativeObject
       no.Initialize(
    "UINavigationBar").RunMethod("appearance"Null) _
         .RunMethod(
    "setTitleTextAttributes:"Array(attributes.RunMethod("ToDictionary"Null)))
    End Sub
    It used to work fine but today I can not use Open Sans Light font (Link on Dropbox)

    I see the difference of this font to others is "Digitally Signed". Is there a way to use it? Thanks.
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    susu likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice