-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement NSLineBreakByWordWrapping #328
Comments
At present only start, middle and end trunction is implemented. |
All right, where should I implement this? So you can then pull it in the source code |
In DTCoreTextLayoutFrame, in _buildLinesWithTypesetter, line 245ff On Mar 5, 2013, at 12:57 PM, Dermiste notifications@github.com wrote:
|
In line 502 there is: Which prevents from going in the "_buildLinesWithTypesetter" function as self.lineBreakMode = 0 (NSLineBreakByWordWrapping = 0). |
@Dermiste Well, isn't word wrapping the default and not truncating? |
All right, I think there was a mistake in my understanding of the constant :) |
Please fix whatever problem you see. |
@Dermiste so what does that mean for this issue? Can we close it? Or is there some problem that you like to fix? |
Not sure yet, we are trying a few solution over here, I keep you posted |
Since there has not being any activity on this issue in several months we are closing it for now. If you are interested in providing a fix or solution you are encouraged to provide a pull request. Please read the release notes for the latest 1.6.20 release. If you still require assistance, you can hire me to work on your issues for a reasonable fee. |
Hello,
I've been trying to use NSLineBreakByWordWrapping on a DTAttributedLabel. It does work, but does not seem to use the truncationString I'm passing on (in this case "...").
The text was updated successfully, but these errors were encountered: