[mapserver-users] problem using some fonts on pdf output

Brent Fraser bfraser at geoanalytic.com
Fri Dec 12 16:22:03 EST 2008


José,

  I think it has to do with font embedding in the output pdf.  Looking at the source code, Mapserver appears to embed fonts used for symbols, but not for text labels.

Brent Fraser

José María Michia wrote:
> Hi all.
> 
> I have a mapfile, with some layers, with labels. I wish to use two
> differents fonts, "arial" and "times". I have the two fonts as tff.
> All work fine when I use shp2img utility program for make PNG files.
> But, when I change output format to PDF, the text that must be in
> times font, appears in other font (a Sans variant). I've opened the
> PDF in Acroread and Inkscape, with same results.
> 
> I'm using:
> 
> Linux Gentoo
> Mapserver 5.2.1 from sources
> 
> "Sans" is nice font, and I happy with the map produced, but I wish to
> know what happens. (I need "PDF files", and not "PNG files", because
> the final maps are hardcopy maps).
> 
> Thanks for any advice.
> 
> Saludos
> José María
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 


More information about the mapserver-users mailing list