You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature]: Layout legend, scale bar and graticule labels take a text size, and Publication Layout scales them with the sheet #2581
Publication Layout sizes its title, subtitle and footer by the sheet's short side (A4 = 1), but the legend (12 pt title, 9 pt rows), the scale bar's labels (8 pt) and the graticule's labels (8 pt) have fixed sizes, and the strips kept for the graticule's labels are fixed in mm. On A2, A1 and A0 they come out tiny next to the title. On A5 portrait, a long legend takes so much of the page that the map is fitted at a smaller scale and veiled. These elements have no setting for their text size, so this can't be fixed by hand either.
Proposed solution
Three pull requests, each with its own project capability:
Legend textSize (points of its rows, default 9; title and patches follow in proportion) in layout.addElement, layout.update and the Format pane. Layouts saved before draw the same.
Scale bar textSize (default 8) and grid labelSize (default 8), the same way.
Publication Layout sets the three to its sheet's factor, and scales the graticule's label strips with them. A4 sheets and figures stay as they are.
Estimated scope
Medium: a broader feature that is feasible in a reasonable timeframe
Alternatives considered
A single scale factor per element: less clear in the UI than a point size.
Per-item legend styles: a larger change, left for later.
Activity
jgregoriorincon commentedon Nov 21, 2026
I'm working on this, starting with part 1 (legend text size).
feat(layout): a legend takes a text size, its rows and swatches follo…
fix(layout): refuse a legend text size out of range, keep wide swatch…
fix(layout): cut an overflowing legend swatch to its row only, its si…
fix(layout): one cut for every legend swatch, one rule for the fit no…
docs(layout): say every key that tells a legend's fit in its box (ope…
fix(layout): hold a legend swatch's ink within the gap before its text (
fix(layout): hold a legend swatch's left side to the room left of it (o…
fix(schema): the comma the merge of main left out between two capabil…
feat(layout): a legend takes a text size, its rows and swatches follo…
A scale bar's labels keep within their reach; a box too short is said (…
A scale bar's labels keep their reach sideways; its frame's view tell…
Guide: a scale bar's labels keep their reach sideways and its frame t…
Scale bars that don't fit are told once a kind; a bar without ink isn…
Layout scale bars and grids take a label size (opengeos#2581)
A publication's scale box follows its bar's text size (opengeos#2581)
layout.update names the labelSize it refuses (opengeos#2581)
One capability for layout text sizes; shared size helpers (opengeos#2581
A scale bar's labels keep within their reach; a box too short is said (…
A scale bar's labels keep their reach sideways; its frame's view tell…
Guide: a scale bar's labels keep their reach sideways and its frame t…
Scale bars that don't fit are told once a kind; a bar without ink isn…
A scale bar too small and past the page's edge is told both (opengeos…
Layout scale bars and grids take a label size (opengeos#2581, part 2) (…
feat(layout): a publication sheet scales its legend, scale bar and gr…