[GIS] Subscript labels in QGIS legends

labelinglegendqgis

Is it possible to include subscript and superscript text in the title of a legend item in QGIS ? I have tried using <sub>some text</sub> but this just appears in the title with no change to the contents.

I am looking to have layer titles such as

Annual NO2 concentration (μg/m3)

The superscript is not a big issue, as I can use the character map to get a 3, but I don't know how to get the subscript.

Best Answer

Dealing recently with this issue I have found very helpful website Tiny Text Generator - you simply write there number/text and it translates it to small caps, superscript and subscript. You can simply copy / paste into QGIS characters like ᵗʰ or ¹ ² ³ ⁴ ⁵ ⁶ ⁷ ⁸ ⁹ ⁰ or ₁ ₂ ₃ ₄ ₅ ₆ ₇ ₈ ₉ ₀ - if your character is one of mentioned you can actually copy it straight from this answer into QGIS.

Definitely Works in:

  • feature labels in map
  • composer legend
  • composer texts (labels)
Related Question