Opened 16 years ago

Closed 15 years ago

#2398 closed defect (fixed)

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 (3)

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

Download all attachments as: .zip

Change History (8)

comment:1 by tbonfort, 16 years ago

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

comment:2 by project10, 16 years ago

Resolution: fixed
Status: newclosed

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

by elzouavo, 15 years ago

Attachment: symbols_with_GD.png added

Symbols with GD using arial font and MapInfo Symbols font

by elzouavo, 15 years ago

Attachment: symbols_with_AGG.png added

Symbols with AGG using arial font and MapInfo Symbols font

comment:3 by elzouavo, 15 years ago

Priority: normalhigh
Resolution: fixed
Status: closedreopened
Version: unspecified5.2

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.

by elzouavo, 15 years ago

Attachment: symbols_with_GD_and_AGG.zip added

all files to test (without arial font)

comment:4 by elzouavo, 15 years ago

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

OGG supports only character fonts.

comment:5 by tbonfort, 15 years ago

Resolution: fixed
Status: reopenedclosed

lookup by character number is ok.

for the problem raised by elzouavo, see #3018

Note: See TracTickets for help on using tickets.