Feature request #3481

Enhancement: Options to stretch labels

Added by Alister Hood over 6 years ago. Updated 27 days ago.

Status:In Progress
Priority:Low
Assignee:-
Category:Labelling
Pull Request or Patch supplied:No Resolution:fixed/implemented
Easy fix?:No

Description

It would be very nice to be able to stretch the length of labels:
- either along a line, or inside a polygon
- either by increasing the space between words, or between letters
- either by specifying the spacing distance, or by automatically spacing to "fill" the length of the polygon or polyline.

e.g. see the labels on most of the rivers in this map http://en.wikipedia.org/wiki/File:National-atlas-north-dakota.PNG

e.g. see some of the labels in the attached map (China, Tibet, Arabian Sea, etc)

asia_map.jpg (246 KB) Alister Hood, 02/10/2011 11:44 PM

History

#1 Updated by bderstine - over 6 years ago

I agree, also called letter spacing. This should definitely be an option.

#2 Updated by Giovanni Manghi over 5 years ago

  • Target version changed from Version 1.7.0 to Version 1.7.4

#3 Updated by Giovanni Manghi about 5 years ago

  • Target version changed from Version 1.7.4 to Version 2.0.0

#4 Updated by Alister Hood almost 5 years ago

  • Pull Request or Patch supplied set to No
  • Status info deleted (0)
  • Assignee deleted (nobody -)
  • Category changed from Symbology to Labelling

#5 Updated by Pirmin Kalberer over 4 years ago

  • Target version changed from Version 2.0.0 to Future Release - Nice to have

#6 Updated by Alister Hood about 3 years ago

- either by specifying the spacing distance, or by automatically spacing to "fill" the length of the polygon or polyline.

I guess it would be even better if you instead of just filling the full length of the object you could specify a length to "fill" to, e.g. 50% of the length.

#7 Updated by Médéric RIBREUX over 1 year ago

  • Status changed from Open to In Progress
  • % Done changed from 0 to 30
  • Resolution set to fixed/implemented

Hello, bug triage...

in QGIS 2.13 master (and probably in previous versions), there are two spacing options:

  • letter which specifies the distance between the letters.
  • words which specifies the distance between two words.
  • both options can be defined by data (field or expression) so you can have some labels stretched and some other that are regular.
  • the units are the same than the font (Map Unit or Points).

The only things that don't exist for the moment are:

  • automatically spacing to "fill" the length of the polygon or polyline.
  • stretch along a line, or inside a polygon.

#8 Updated by Giovanni Manghi 27 days ago

  • Easy fix? set to No

Also available in: Atom PDF