BonMot
BonMot copied to clipboard
Beautiful, easy attributed strings in Swift
If I have text of different sizes in an attributed string, is it possible to top align them? Or do I have to create the labels and top align them...
`BONTextAlignmentConstraint` strongly holds its `firstItem` and `secondItem` internally. This causes a known retain cycle if a view referenced by the constraint also strongly holds the constraint. However, there may be...
`BONTextAlignmentConstraint` relies (or heavily implies reliance) on the KVO-ability of the `font` property of `UILabel`, `UIButton`, `UITextView`, and `UITextField`. We should add unit tests to check our assumptions about these...
Line height, leading, and line height multiple all affect the distance between the top and bottom of a label and its text. `BONTextAlignmentConstraint` should take these into account, based on...
I have a case where I'm creating a `StringStyle`, retrieving its `attributes`, and caching those for later manual construction of an `NSAttributedString`. The `StringStyle` in question has a custom `transform`...
I don't know whether there is a big demand for these (signs point to "no"), but I wanted to log it here in case someone wants it. Specifically, we should...
In [WWDC 2013 session 223](https://developer.apple.com/videos/play/wwdc2013/223/), at around 39:20, [Ned Holbrook](https://twitter.com/nedley) introduces language tagging with the `kCTLanguageAttributeName` attribute. This is distinct from the accessibility language tag which we added support for...
I'd like to create string templates with which I can substitute values optionally using an associated Formatter. Does this fit with your roadmap? For example: Given: let template = "A...
Currently, you can set a value for `NSKernAttributeName` with `.tracking(.point(10))` or `.tracking(.adobe(100))` (for example). Passing nonzero values affects the tracking (overall letter spacing over a range). Passing 0 disables the...
`kCharacterAlternativesType` is where it's at. All the cool kids are doing it. It's used to enable specific alternate characters in some fonts, like alternate ampersands, vertically-centered colons, and different ligature...