[Chameleon] Locate widget

Godwin, Elizabeth Godwinl at AGR.GC.CA
Thu Sep 2 11:13:06 EDT 2004


Ok... So it seems I looked too quickly.  I think I also assumed that the
widget was calling the default fonts (chameleon/etc).

That said... should a generic widget be using it's OWN fonts, or those
supplied by the application?  It's obviously using mine, but one
shouldn't have to go and change the widget to change the font used by
the locate widget.

Perhaps it should be an attribute set at the widget since it is
something that affects the Look and Feel of the application.  ie
font=sans or font=arial etc.  Should fonts be part of skins since they
also affect buttons etc?

Should I post an enhancement?

Liz

-----Original Message-----
From: Paul Spencer [mailto:pagameba at magma.ca] 
Sent: September 2, 2004 9:36 AM
To: Godwin, Elizabeth
Cc: chameleon at lists.maptools.org
Subject: Re: [Chameleon] Locate widget


Liz,

can you try changing to another font that is in the font file?  Also, 
please triple check that you are using the font file you think you are 
using (i.e. change its name on disk and in the map file and make sure 
that it still loads the map file ok).

Paul

Godwin, Elizabeth wrote:

> I've discovered that the Locate widget (using cvs) fails when I'm 
> using
> it in my custom application. 
>  
> It fails when setting the font to "sans" on line 1051 ish in the Draw 
> point function in Locate.widget.php.   At least, this is my assumption

> as commenting out that line and the next one (set font type to 
> Truetype)
> makes the error go away.
>  
> Why might it fail here, when it works in the CVS samples?  I'm using 
> the
> same font files in the same ../etc/fonts.txt file setup as with the
samples.
>  
> Also I've noticed that the error triggers one of my custom widgets to
> open it's popup, thus causing more errors.
>  
> I've noticed postings on the throwing errors to popups, but not the
> locate widget problem.  Anyone else experiencing this?
>  
> Cheers,
>  
> Liz Godwin
>  
> 
> 
> ----------------------------------------------------------------------
> --
> 
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org 
> http://lists.maptools.org/mailman/listinfo/chameleon

-- 
  -----------------------------------------------------------------
|Paul Spencer                           pspencer at dmsolutions.ca   |
|-----------------------------------------------------------------|
|Applications & Software Development                              |
|DM Solutions Group Inc                 http://www.dmsolutions.ca/|
  -----------------------------------------------------------------




More information about the Chameleon mailing list