<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hi Jorge,</p>
<p>Thank you for your reply.</p>
<p>Do you know where in the QGIS project these LegendGraphic or legend style settings would be configured/stored?</p>
<p>Or could one use the .ini file to store such settings globally?</p>
<p>Your suggestion about Apache rewrite rules might be a good workaround for now, but it would be nice being able to set this through other means, ideally globally for all projects.</p>
<p>Thanks for this discussion!</p>
<p>Andreas</p>
<p id="reply-intro">On 2021-06-17 18:24, Jorge Gustavo Rocha wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">Hi Andreas,<br /><br />The default values are in fact the values used in the QGIS project.<br />These GetLegendGraphics parameters are used to overwrite those default<br />settings.<br /><br />These are parameters and are not read from the environment. It should<br />not be difficult to read them from the environment too, but it requires<br />some additional logic on the server side.<br /><br />Some time ago, in our local municipality, I added some rewrite rules to<br />Apache to use the same font in each GetLegendGraphics request, since not<br />all people were using the same font on QGIS projects. The rewrite just<br />adds<br />&TRANSPARENT=true&ITEMFONTFAMILY=FreightSans&LAYERFONTFAMILY=FreightSans<br />to each GetLengenGraphic request. The legend was much more uniform with<br />this simple rewrite.<br /><br />As a workaround, I suggest something like these rewrite rules on the<br />server side.<br /><br />Regards,<br /><br />Jorge<br /><br />On 17/06/21 16:33, Andreas Neumann wrote:
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">Hi,<br /><br />I have a question regarding the default values for changing the look and<br />feel of GetLegendGraphics as described at<br /><a href="https://docs.qgis.org/3.16/en/docs/server_manual/services.html#getlegendgraphics" target="_blank" rel="noopener noreferrer">https://docs.qgis.org/3.16/en/docs/server_manual/services.html#getlegendgraphics</a><br /><<a href="https://docs.qgis.org/3.16/en/docs/server_manual/services.html#getlegendgraphics" target="_blank" rel="noopener noreferrer">https://docs.qgis.org/3.16/en/docs/server_manual/services.html#getlegendgraphics</a>><br />(e.g. LAYERFONTFAMILY, SYMBOLWIDTH, etc.).<br /><br />Is there a way to specify "default" values  for these settings, e.g. in<br />an environment variable or through other means?<br /><br />Thank you if you know anything about it.<br /><br />Andreas<br /><br /><br />_______________________________________________<br />QGIS-Developer mailing list<br /><a href="mailto:QGIS-Developer@lists.osgeo.org">QGIS-Developer@lists.osgeo.org</a><br />List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank" rel="noopener noreferrer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br />Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank" rel="noopener noreferrer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br /><br /></blockquote>
<br />J. Gustavo<br />-- <br />Jorge Gustavo Rocha<br />Departamento de Informática<br />Universidade do Minho<br />4710-057 Braga<br />Gabinete 3.29 (Piso 3)<br />Tel: +351 253604480<br />Fax: +351 253604471<br />Móvel: +351 910333888<br />skype: nabocudnosor<br />_______________________________________________<br />QGIS-Developer mailing list<br /><a href="mailto:QGIS-Developer@lists.osgeo.org">QGIS-Developer@lists.osgeo.org</a><br />List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank" rel="noopener noreferrer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br />Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank" rel="noopener noreferrer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></div>
</blockquote>
<p><br /></p>

</body></html>