Ticket #2398 (closed defect: fixed)

Opened 6 years ago

Last modified 4 years ago

AGG does not render text or truetype symbols using character number

Reported by: tbonfort Owned by: tbonfort
Priority: high Milestone:
Component: AGG Version: 5.2
Severity: normal Keywords:
Cc: project10@…

Description

from  http://mapserver.gis.umn.edu/docs/reference/symbology/examples :

setting a character for truetype symbols can be done by specifying its character number (same way as with html entities)

CHARACTER "r"

which is not supported by the AGG font rendering

Attachments

symbols_with_GD.png Download (3.5 KB) - added by elzouavo 5 years ago.
Symbols with GD using arial font and MapInfo? Symbols font
symbols_with_AGG.png Download (7.9 KB) - added by elzouavo 5 years ago.
Symbols with AGG using arial font and MapInfo? Symbols font
symbols_with_GD_and_AGG.zip Download (22.5 KB) - added by elzouavo 5 years ago.
all files to test (without arial font)

Change History

Changed 6 years ago by tbonfort

should be fixed in r7040 . project10, can you confirm and close the bug ?

Changed 6 years ago by project10

  • status changed from new to closed
  • resolution set to fixed

Confirmed, the TrueType? labels are now displayed. Thank you tbonfort.

Changed 5 years ago by elzouavo

Symbols with GD using arial font and MapInfo? Symbols font

Changed 5 years ago by elzouavo

Symbols with AGG using arial font and MapInfo? Symbols font

Changed 5 years ago by elzouavo

  • priority changed from normal to high
  • status changed from closed to reopened
  • version changed from unspecified to 5.2
  • resolution fixed deleted

All is OK when rendering uses GD. When rendering uses AGG symbols with Mapinfo Symbols font are not well rendered.

The symbols :
SYMBOL

NAME "mapinfosymbols_x0037"
TYPE TRUETYPE
FONT mapinfosymbols
FILLED true
ANTIALIAS true
CHARACTER'7'

END
SYMBOL

NAME "arial_x0021"
TYPE TRUETYPE
FONT arial
FILLED true
ANTIALIAS true
CHARACTER "!"

END

See symbols_with_GD.png to view the result with GD. See symbols_with_AGG.png to view the result with AGG. All is in the ZIP file.

Changed 5 years ago by elzouavo

all files to test (without arial font)

Changed 5 years ago by elzouavo

It seems that the symbol fonts are not supported by AGG.

OGG supports only character fonts.

Changed 4 years ago by tbonfort

  • status changed from reopened to closed
  • resolution set to fixed

lookup by character number is ok.

for the problem raised by elzouavo, see #3018

Note: See TracTickets for help on using tickets.