Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Conversation

lkzhao
Copy link

@lkzhao lkzhao commented Jan 21, 2016

User can specify a minimumScaleFactor on ASTextNode.
Then the ASTextRenderer will shrink the font size if there are words that doesn't fit in the container.

If the word is too long, i.e. even with the minimumScaleFactor applied, it sill doesn't fit in the container. Then it will fall back to the default font size.

@appleguy appleguy added this to the 1.9.7 milestone Jan 24, 2016
@appleguy appleguy changed the title add ASTextKitFontSizeAdjuster which shrinks the font size to fit long words [ASTextNode] Support iteratively shrinking font size in order to ensure no single words are wrapped. Jan 24, 2016
@lkzhao lkzhao force-pushed the ASTextKitFontSizeAdjuster branch from 1d64210 to f37c805 Compare January 26, 2016 03:12
@appleguy
Copy link
Contributor

This is the start of great things to come! Will merge after tests run. Thank you @lkzhao, very much.

appleguy added a commit that referenced this pull request Jan 26, 2016
[ASTextNode] Support iteratively shrinking font size in order to ensure no single words are wrapped.
@appleguy appleguy merged commit 508e3db into facebookarchive:master Jan 26, 2016
@lkzhao lkzhao mentioned this pull request Jan 26, 2016
yxztj pushed a commit to iftechio/AsyncDisplayKit that referenced this pull request Sep 29, 2018
…ve#1091)

* Shouldn't hold the lock while adding subnodes

* Add comments, good call @nguyenhuy
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants