[Mapserver-users] TrueType Font and Label Angle
Jonathan W. Lowe
info at giswebsite.com
Mon Jan 13 09:53:18 PST 2003
Larry,
For what it's worth, my installation on RedHat 8.0 didn't have the label angle
problems, so it is possible to successfully compile the software on Linux. At
one point in my efforts to overcome the label angle problems, I found a
reference that said the mere presence of freetype2 might force the compiler to
use freetype2 (the supposed culprit in the label angle problem) rather than
freetype1. Do you have root access to the system on which you are compiling? I
had to isolate libraries like gd and freetype in a local directory in order to
be sure my compilation used exactly the libraries I intended it to use.
Hope this helps. (I'm still dealing with the label angle problem on FreeBSD as
it turns out, so am hoping for more insight also.)
Jonathan
Quoting "Ellenbecker, Larry" <LEllenbecker at co.winnebago.wi.us>:
> List,
>
> I'm trying to get true type fonts working with my application on Linux. The
> application is up a running on both Linux and NT. True type fonts are
> working just fine on NT, but on Linux I've had the following problems. My
> application is straight CGI.
>
> System Specs: RedHat 7.0 with freetype-1..3.1. freetype-2.1.2, gd-2.0.9
> and mapserver-3.6.1.
>
> After compiling and installing both freetype fonts and GD,
> I compiled mapsever and got the msGetLabelSize(): Could not find/open font.
> Initaially my application was sitting at:
>
> /var/www/html/simple with simple.map FONSET
> fonts/fonts.txt
>
> When I moved my fonts directory to /var/www/html/fonts and
> changed simple.map FONSET ../fonts/fonts.txt I was able to use true type
> font arial in my application. I then ran into the next issue with Label
> Angle. I couldn't get the labels to follow the appropriate line orientation
> as it does on my NT version. I researched the list and found Jonathan
> Lowe's "line layer label angle changes(solved)" . I've tried to follow
> these directions but am still unable to get the labels to plot with the
> correct orientation of the line. The BUFFER, BACKGROUNDSHADOWSIZE AND
> BACKGROUNDCOLOR create a background box oriented in the appropriate
> position but the text doesn't hit the background box.
>
> Has anyone got a sure fire method for resolving truetype
> label angle problems - I'd sure appreciate any assistance.
>
> Larry L. Ellenbecker
> GIS Systems Analyst
> Winnebago County
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
>
Jonathan W. Lowe
email - info at giswebsite.com
website - http://www.giswebsite.com
More information about the MapServer-users
mailing list