Hi all!!<br><br>Working in my problem with the labels, i see  that is needed to set the minSize and the maxSize to the labelObj object, and with the following lines all work fine:<br><br>Etiquetas.setMaxSize(256);<br>Etiquetas.setMinSize
(4);<br><br>thanks to all of you for your help !!!<br><br><br><div><span class="gmail_quote">On 7/24/06, <b class="gmail_sendername">Rodriguez, Heraldo</b> <<a href="mailto:hrodriguez@siscat.com.ar">hrodriguez@siscat.com.ar
</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>











<div link="blue" vlink="blue" lang="ES">

<div>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-GB">Hi Alejandro ,  I hope
this helps. You should replicate in mapscript something similar to  the
configuration that appear below.</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-GB">  I understand that he
Type attribute should be setted to truetype  By the way, did you check if the  FONTSET
attribute </span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-GB">Is pointing to the correct
location</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-GB"> </span></font></p>

<p style="margin-left: 70.8pt; text-indent: 35.4pt;"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-GB"> </span></font></p>

<p style="margin-left: 70.8pt; text-indent: 35.4pt;"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-GB"> </span></font></p>

<p style="margin-left: 70.8pt; text-indent: 35.4pt;"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-GB">FONTSET         "/usr/local/common/mapserver/font.list"
</span></font></p>

<p style="margin-left: 70.8pt; text-indent: 35.4pt;"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-GB"> </span></font></p>

<p style="margin-left: 70.8pt; text-indent: 35.4pt;"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-GB"> </span></font></p>

<p style="margin-left: 70.8pt; text-indent: 35.4pt;"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-GB"> </span></font></p>

<p style="margin-left: 70.8pt; text-indent: 35.4pt;"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-GB">Label</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-GB">                                               Size     8
</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-GB">                                               type      truetype</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-GB">                                               POSITION
AUTO</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-GB">                                               MINDISTANCE
 100       </span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-GB">                                               font       "vera"</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-GB">                                               color
    66 89 255</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-GB">                                               minfeaturesize
5            </span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-GB">                                   </span></font><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">
end</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">                                   Regards.</span></font></p>

<div>

<p><b><font color="#339966" face="Century Gothic" size="2"><span style="font-size: 10pt; color: rgb(51, 153, 102); font-weight: bold;"><img src="cid:image001.jpg@01C6AF0E.C85D2BB0" height="34" width="43">Lic. Heraldo G. Rodriguez
</span></font></b></p>

<p><font color="blue" face="Century Gothic" size="2"><span style="font-size: 10pt; color: blue;">  </span></font><font color="navy"><span style="color: navy;"><a href="mailto:hrodriguez@siscat.com.ar" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
<font face="Century Gothic" size="2"><span style="font-size: 10pt;">hrodriguez@siscat.com.ar</span></font></a></span></font><font color="blue" face="Century Gothic" size="2"><span style="font-size: 10pt; color: blue;"></span>
</font></p>

<p><font color="blue" face="Century Gothic" size="2"><span style="font-size: 10pt; color: blue;">   TE
4326-4002 int 255</span></font><font color="navy"><span style="color: navy;"></span></font></p>

<p><font color="blue" face="Century Gothic" size="2"><span style="font-size: 10pt; color: blue;">  Dpto.
Desarrollo</span></font></p>

<p><font color="blue" face="Century Gothic" size="2"><span style="font-size: 10pt; color: blue;">  Sistemas
Catastrales S.A</span></font><font color="blue" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: blue;"></span></font></p>

<p><font color="navy" face="Times New Roman" size="3"><span style="font-size: 12pt; color: navy;"> </span></font></p>

</div>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<div>

<div style="text-align: center;" align="center"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">

<hr align="center" size="2" width="100%">

</span></font></div>

<p><b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">De:</span></font></b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;"> Alejandro Rico
[mailto:<a href="mailto:jarg58@GMAIL.COM" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">jarg58@GMAIL.COM</a>] <br>
<b><span style="font-weight: bold;">Enviado el:</span></b> sábado, 22 de julio de
2006 20:21<br>
<b><span style="font-weight: bold;">Para:</span></b>
<a href="mailto:MAPSERVER-USERS@LISTS.UMN.EDU" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">MAPSERVER-USERS@LISTS.UMN.EDU</a><br>
<b><span style="font-weight: bold;">Asunto:</span></b> Re: [UMN_MAPSERVER-USERS]
Adding Labels to a Vector Map with Java Mapscript</span></font></p>

</div></div><div><span class="e" id="q_10ca0cbe99577cb8_1">

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>

<p style="margin-bottom: 12pt;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">Hi !!!<br>
I try with your suggestions but it doesn't work.<br>
here's a sample image of the map generated, and the fontset file<br>
<br>
thanks !!!</span></font></p>

<div>

<p><span><font face="Times New Roman" size="3"><span style="font-size: 12pt;">On 7/22/06, <b><span style="font-weight: bold;">Umberto
Nicoletti</span></b> <<a href="mailto:umberto.nicoletti@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">umberto.nicoletti@gmail.com</a>>
wrote:</span></font></span></p>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">Can you post a sample generated image with only this layer on and your<br>
fontset file?<br>
You could also try to remove mindistance and to set the layer's status<br>
to MS_DEFAULT.<br>
<br>
Regards,<br>
Umberto<br>
<br>
On 7/21/06, Alejandro Rico < <a href="mailto:jarg58@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">jarg58@gmail.com</a>>
wrote:<br>
> Hi !!!<br>
><br>
> I'm working with a vector map made in Java Mapscript, with 2 layers, and i<br>
> need that one of them has labels to identify a way, but
when  the program <br>
> runs, mapserver draws a very little ununderstandable labels, and  it
doesn't<br>
> take the font size change. Someone can help me with
this???  thanks.<br>
><br>
> here's my code:<br>
><br>
> Capa = new layerObj(Mapa); <br>
>            
Capa.setName("Vias");<br>
>            
Capa.setType(mapscriptConstants.MS_LAYER_LINE);<br>
>            
Capa.setStatus(mapscriptConstants.MS_ON );<br>
>            
String Comando = new String("the_geom FROM (select gid,<br>
> the_geom, nomb_comun||' '||nomvial as Nombre FROM "+Localidad+"
WHERE codigo<br>
> IN ("+CodigoVia+","+CodigoInterseccion+")) AS ViasMapa
<br>
> USING UNIQUE gid USING SRID=-1");<br>
>            
Capa.setData(Comando);<br>
>            
Capa.setLabelitem("Nombre");<br>
>            
Capa.setConnection("user=geotrans dbname=Geotrans <br>
> host=localhost");<br>
>            
Capa.setConnectiontype (mapscriptConstants.MS_POSTGIS);<br>
>            
Clase = new classObj(Capa);<br>
>            
Estilo = new styleObj(Clase);<br>
>            
Estilo.setColor(new colorObj(255,0,0,0));<br>
>            
labelObj Etiquetas = new labelObj(); <br>
>            
Etiquetas.setSize(18);<br>
>            
Etiquetas.setColor(new colorObj(0,255,255,0));<br>
>            
Etiquetas.setType(mapscriptConstants.MS_TRUETYPE);<br>
>            
Etiquetas.setAntialias(mapscriptConstants.MS_TRUE );<br>
>            
Etiquetas.setPosition(mapscriptConstants.MS_CL);<br>
>            
Etiquetas.setPartials(mapscriptConstants.MS_FALSE);<br>
>            
Etiquetas.setMindistance (300);<br>
>            
Etiquetas.setFont("vera");<br>
>            
Clase.setLabel(Etiquetas);<br>
><br>
>
Mapa.draw().save("/usr/local/tomcat/webapps/geotrans/Mapas/mapaAcc",null);<br>
> -- <br>
> Alejandro Rico</span></font></p>

</div>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"><br>
<br clear="all">
<br>
-- <br>
Alejandro Rico </span></font></p>

</span></div><div></div>

</div>



</div></blockquote></div><br><br clear="all"><br>-- <br>Alejandro Rico