B4X FEED B4I/iOS unable to render custom fonts correctly (Gotham-Medium and Gotham-Book)

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: B4I\/iOS unable to render custom fonts correctly (Gotham-Medium and Gotham-Book) است. این موضوع تا کنون 86 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع B4I\/iOS unable to render custom fonts correctly (Gotham-Medium and Gotham-Book)
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
86
پسندها
0
آخرین ارسال توسط PracticalSoft
Jun 6, 2020
11,517
4,383
Hello,
i'm trying to port one app from android to iOS. The app on Android runs just fine.
In the iOS App i can't manage dialogs to work reliably: text disappear, height after sizetofit is set to zero and i have narrowed down the issue to the fonts i'm using in the app, because if i use another font (builtin or custom) the problem goes away.

I'm using two variants of the Gotham Font, Medium and Book, obtained from FreeFontsFamily. I have tried to look for alternatives on the net but they are always the same files so the problem is always the same.

In my application i get this log entry when the font is applied to some of labels, though all have problems in rendering (I have a routine for setting the font size based on label height/width and the height result is always wrong, measuring text dimension with the string MeasureHeight method always return zero for the height, regardless of font size.)

B4X:

!!! _NSLayoutTreeGetBaselineOffsetForGlyphAtIndex invalid glyph index...



 

عقب
بالا