[MapServer-dev] Global Font Scaling
Scott
public at postholer.com
Sat Sep 20 09:24:11 PDT 2025
Hey Seth,
SYMBOLSCALEDENOM. Yep, that's it.
I've been using mapserver for years and that went completely under my radar.
In many cases I use an attribute to set the font size, when an SQL query
is involved, never with an expression. Otherwise, size is hard-coded.
Thank you!
Scott
On 9/20/25 00:43, Seth G wrote:
> Hi Scott,
>
> I'm not sure if I fully understand the requirement. Do you have an example LABEL block?
> There are several options for LABEL SIZE - https://mapserver.org/mapfile/label.html#mapfile-label-size
>
> "When scaling is in effect (SYMBOLSCALEDENOM is specified for the LAYER), SIZE gives the size of the font to be used at the map scale 1:SYMBOLSCALEDENOM"
>
> You can also use an attribute or expression to calculate the size.
>
> Seth
> --
> web:https://geographika.net & https://mapserverstudio.net
> mastodon: @geographika at mastodon.social
>
> On Thu, Sep 18, 2025, at 1:21 AM, Scott via MapServer-dev wrote:
>> Simple question, maybe not a simple answer. ;)
>>
>> Does some sort of text scaling variable exist that allows you to
>> globally change font size?
>>
>> Say all your LABEL fonts have fixed SIZE and you want to reduce the font
>> size by SCALE 0.8
>>
>> Does nything like that exist?
>>
>> TIA,
>> Scott
>> _______________________________________________
>> MapServer-dev mailing list
>> MapServer-dev at lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/mapserver-dev
More information about the MapServer-dev
mailing list