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

susu

Well-Known Member
Licensed User
Hi, I used this code to change the font of Navigation Bar:

B4X:
SetNavigationBarTitleStyle(Colors.White, Font.CreateNew2("Open Sans Light", 18))
B4X:
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.
 
Top