BonMot v5.1 Release Notes
Release Date: 2018-02-24 // about 6 years ago-
👀 See all commits since 5.0.1.
🆕 New Features
- Add support for making a font bold , italic, and _ bold/italic _ via the new
.emphasis
attribute. The cool thing about emphasis is that it can modify existing fonts, without having to re-specify the font. This means that you can do something like this:StringStyle(.font(.systemFont(ofSize: 17)), .emphasis(.italic))
, and you'll get an italic version of the system font. Or, you can take any style and get the bold and/or italic version of it without knowing what its font is:someExistingStyle.byAdding(.emphasis([.bold, .italic]))
. Check out the example project for a cool use case for this in XML parsing! (@ZevEisenberg, #303 via #325) - 👉 Make
Tracking
'skerning(for:)
method public. (@acacuce, #324)
👌 Improvements
- Add support for making a font bold , italic, and _ bold/italic _ via the new