Bug report #12066

font marker symbols wrong size in map units

Added by Oskar Karlin about 5 years ago. Updated about 1 year ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Symbology
Affected QGIS version:2.6.1 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:end of life
Crashes QGIS or corrupts data:No Copied to github as #:20267

Description

New description:

#12066-8

Old description:

I have all my symbols size set using Map units. It looks great in almost all zoom levels but at one zoom level the houses (one of the layers) becomes incredible large!

Screen_Shot_2015-01-27_at_16.56.49.png - Large symbols!! (220 KB) Oskar Karlin, 2015-01-27 08:20 AM

Screen_Shot_2015-01-27_at_16.57.08.png - Houses in the right size (335 KB) Oskar Karlin, 2015-01-27 08:20 AM

GSDSymbolsTerrngkartan.ttf (8.83 KB) Oskar Karlin, 2015-01-30 10:28 AM

History

#1 Updated by Giovanni Manghi about 5 years ago

  • Category set to Symbology
  • Status changed from Open to Feedback

Is the symbol used part of the qgis library? or is a custom one? If is the latter can you attach it? what are map units in your project?

#2 Updated by Oskar Karlin about 5 years ago

The symbol is a font symbol.

#3 Updated by Oskar Karlin about 5 years ago

Oh and the map is using meters. Projection Sweref 99 TM.

#4 Updated by Giovanni Manghi about 5 years ago

Oskar Karlin wrote:

The symbol is a font symbol.

what is the name of the font? is truetype?

#5 Updated by Oskar Karlin about 5 years ago

It's a truetype font. Attached.

#6 Updated by Giovanni Manghi about 5 years ago

Oskar Karlin wrote:

It's a truetype font. Attached.

I may have understand the issue. What scale and how many map units are you using?

#7 Updated by Oskar Karlin about 5 years ago

From 1:74000 and up (more zoomed out) this behaviour appears. And for some reason it's only one of all symbols that gets this crazy size. And the other symbols come from same font. The size of the symbol is 25 map units (i e 25 meters). For your knowledge, the symbol size changes also radically in the preview in the layer list.

#8 Updated by Giovanni Manghi over 4 years ago

Oskar Karlin wrote:

From 1:74000 and up (more zoomed out) this behaviour appears. And for some reason it's only one of all symbols that gets this crazy size. And the other symbols come from same font. The size of the symbol is 25 map units (i e 25 meters).

and what would be this specific symbol?

What I see is a slightly different issue, but maybe related (and I'm seeing it in qgis 1.8 up to master):

for font marker symbols, when defined in map units, then they all render as expected only starting from a certain scale. Before that they render the same size (so wrong) and a message shows in the log:

QFont::setPixelSize: Pixel size <= 0 (0)

#9 Updated by Giovanni Manghi almost 4 years ago

  • Subject changed from Some symbols get crazy large size at some zoom levels to font marker symbols wrong size in map units
  • Status changed from Feedback to Open
  • Operating System deleted (Mac OS X)

#10 Updated by Giovanni Manghi almost 3 years ago

  • Regression? set to No
  • Easy fix? set to No

#11 Updated by Jürgen Fischer over 2 years ago

  • Description updated (diff)

#12 Updated by Giovanni Manghi about 1 year ago

  • Status changed from Open to Closed
  • Resolution set to end of life

Also available in: Atom PDF