I can’t find where the problem is, the first time i draw a text with a new font, then the performance is very slow. For exemple it’s take around 5s (on iphone 5s) or 500ms on ipad pro to draw a text at the first time, but only 20ms the next time i redo the same operation.
i do nothing special, the font is HelveticaNeue-Light, and after i do only think like :
CTFontCreateWithName
CTFramesetterCreateFrame
CTLineGetTypographicBounds
CTLineGetGlyphRuns
CTLineCreateWithAttributedString
CTLineCreateTruncatedLine
etc.
i m on delphi, but i think it’s not matter because i use the core text api