Using truetype fonts (Linux)

Stephen Davies sdc at SDC.COM.AU
Sat Nov 26 22:50:02 PST 2005


OOPS! I spoke too soon.

The error messages went away but I hadn't checked the results properly.

The symbol definition that I am building looks like this:

SYMBOL
        NAME "fence"
        TYPE TRUETYPE
        FONT "arial"
        CHARACTER "&#47"
        ANTIALIAS TRUE
        GAP 15
END

What I see when I try to draw a "fence" is not the "/" character but the 
string "&#47".

The character number used is irrelevant; whatever number I put in the 
symbol file is displayed as a string rather than as a character.

Stephen

>Thanks Steve. Problem solved.

>Cheers,
>Stephen

On Sun, 27 Nov 2005 12:44 pm, Stephen Woodbridge wrote:
> Stephen,
> 
> The file format is lines like:
> 
> <font_name>  </path/to/font/file>
> arial       /usr/share/fonts/truetype/arial.ttf
> arial-bold  /usr/share/fonts/truetype/arial-bold.ttf
> 
> I think blank lines are ignored and maybe lines starting with '#', but 
> not sure on these.
> 
> <font_name> it the name you refer to in your mapfile
> </path/to/font/file> is the actual path to the font file you want to 
use
> 
> -Steve W.
> 
> Stephen Davies wrote:
> > G'day.
> > 
> > I see references in postings and doco to fonts.list as what looks 
like a  
> > mechanism for telling mapserver where to find truetype fonts but I 
> > cannot find anything to tell me the format of this file.
> > 
> > The recent paper on cartographic symbols refers to "the ALIAS name 
of 
> > the font file to the parameter FONT as defined in the file 
fonts.list".
> > What does this mean?
> > 
> > I have a pretty full set of truetype fonts installed and use them 
> > successfully with other software but have no file called fonts.list 
> > anywhere on the system.
> > 
> > Is this maybe a windows-specific thing?
> > If so, how does one use truetype fonts with mapserver under Linux?
> > 
> > Cheers and thanks,
> > Stephen
> > 
> 
> 

-- 
========================================================================
This email is for the person(s) identified above, and is confidential to
the sender and the person(s).  No one else is authorised to use or
disseminate this email or its contents.

Stephen Davies Consulting                            Voice: 08-8177 1595
Adelaide, South Australia.                             Fax: 08-8177 0133
Computing & Network solutions.                       Mobile:0403 0405 83


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20051127/92ecc94d/attachment.sig>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20051127/92ecc94d/attachment-0001.sig>


More information about the MapServer-users mailing list