-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
newly added "letter spacing" and "word spacing" label values ignored when setting placement to curved (on line layer) #15784
Comments
Author Name: Larry Shaffer (Larry Shaffer) Hi, They aren't ignored, they're just not implemented yet. :^) Currently, multi-line labels and direction symbol are also non-functional for curved labels. See [[New Labeling changes and roadmap]] The problem is with how the PAL engine creates curved labels. Basically, it chops up the text into individual characters, creating a single label comprised of multiple smaller labels. Since each character is a label unto itself, there is no actual letter or word spacing. The base of each letter is 'chained' to the previous one. Turn on 'show candidates' under Automated placement settings to see this. There are several solutions I'm looking at:
Some methods of drawing the text on the resultant path:
|
Author Name: Mathieu Pellerin - nIRV (Mathieu Pellerin - nIRV) Larry, depending on how hard / long it'd take to implement any of the above listed options, maybe it'd be good to at least provide a hint to the users that the values are not taken into account. Disabling the input fields for these two settings when the curved placement is selected might be a good way to do that. |
Author Name: Larry Shaffer (Larry Shaffer) Ok. I'll look at doing that ASAP. |
Author Name: Larry Shaffer (Larry Shaffer) Implemented in commit 59fe8fd. Please test. The solution opted for was a variation on Fix it in PAL lib, which works within QgsPalGeometry to mimic Qt-derived letter/word spacing and storing it in the associated pal::LabelInfo. PAL lib uses that to figure the width of each character it 'chops up' and generates candidates for. While character spacing worked right away, word spacing was much trickier to implement so it mimicked the other label placements that accomplish spacing via direct Qt support.
|
Author Name: Mathieu Pellerin - nIRV (Mathieu Pellerin - nIRV) Kudos Larry, it's working beautifully.
|
Author Name: Mathieu Pellerin - nIRV (Mathieu Pellerin - nIRV)
Original Redmine Issue: 6593
Affected QGIS version: master
Redmine category:labelling
Assignee: Larry Shaffer
Subject says it all. The letter spacing and word spacing values are ignored when the placement is set to curved on line layers.
The text was updated successfully, but these errors were encountered: