Hello Richard,
Finally, I found out which function is no longer working correctly with the system font in iOS 26.4. The issue is with CGContextGetTextPosition, which returns incorrect, almost random CGPoint values.
With all fonts except the system font, the text position is updated automatically after calling drawAtPoint. The system font is now the only exception.
This explains why the earlier workaround—using the Helvetica Neue font—worked well.
A better workaround is to calculate the text position manually and then call CGContextSetTextPosition after drawAtPoint. This makes it possible to use the system font again.
Best regards,
Rolf
Topic:
UI Frameworks
SubTopic:
UIKit