Monday, October 16, 2023
HomeiOS DevelopmentDTCoreText 1.6.23 | Cocoanetics

DTCoreText 1.6.23 | Cocoanetics


Sizzling on the heels of the earlier upkeep launch, which was solely 3 Months in the past, this one was required as a result of Apple not permits Apps to comprise references to UIWebView.

The primary change was that from each DTCoreText in addition to, beforehand, DTFoundation we eliminated some helper strategies for UIWebView. A view utilized by the demo to embed YouTube movies was moved to the Demo app. There was a bug in DTImageTextAttachment which precipitated some photos to be sq..

There was a lacking macro which prevented compiling with a extremely outdated deployment goal. That was additionally addressed.

There’s a recognized challenge in iOS 13 whenever you attempt to use dynamic kind fonts when parsing HTML. For those who attempt to set a dynamic kind font’s title or household by way of parsing choice, you get this warning:

CoreText efficiency word: Consumer known as CTFontCreateWithName() utilizing title ".SFUI-Common" and received font with PostScript title "TimesNewRomanPSMT". For greatest efficiency, solely use PostScript names when calling this API.

Nicely, the issue is that we now have no API that might assist you to set the font occasion itself on DTCoreText, however solely to set a font or household title. That is transferred to an inside font descriptor which is handed all the way down to sub-tags, being modified as wanted. The primary downside is that should you get the font descriptor for a dynamic font, there are different attributes set on the descriptor that are obligatory for correct dynamic level dimension and font face decision.

What’s wanted here’s a strategy to set a font itself – not simply its title – as an choice and to create an acceptable font descriptor for it that preserves the dynamic kind functionality. If any person had been to sponsor the creation of this performance, I’d be pleased so as to add it. You’ll be able to e-mail me at oliver@cocoanetics.com to inquire. In fact, pull requests are welcome as properly.

The replace is tagged on GitHub and obtainable by way of CocoaPods.


Tagged as:

Classes: Updates



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments