Skip to content

Commit 1d42263

Browse files
DelazJgithub-actions[bot]
authored andcommitted
Update label engine options and labels export option
1 parent 2485506 commit 1d42263

File tree

4 files changed

+24
-31
lines changed

4 files changed

+24
-31
lines changed

docs/user_manual/map_views/map_view.rst

+3-12
Original file line numberDiff line numberDiff line change
@@ -1291,24 +1291,15 @@ In the dialog that opens:
12911291
https://north-road.com/2019/09/03/qgis-3-10-loves-geospatialpdf/.
12921292

12931293
* :guilabel:`Rasterize map`
1294-
* |checkbox| :guilabel:`Simplify geometries to reduce output file
1295-
size`:
1294+
* |checkbox| :guilabel:`Simplify geometries to reduce output file size`:
12961295
Geometries will be simplified while exporting the map by removing
12971296
vertices that are not discernibly different at the export
12981297
resolution (e.g. if the export resolution is ``300 dpi``, vertices
12991298
that are less than ``1/600 inch`` apart will be removed).
13001299
This can reduce the size and complexity of the export file (very
13011300
large files can fail to load in other applications).
1302-
* Set the :guilabel:`Text export`: controls whether text labels are
1303-
exported as proper text objects (:guilabel:`Always export texts
1304-
as text objects`) or as paths only (:guilabel:`Always export texts
1305-
as paths`).
1306-
If they are exported as text objects then they can be edited in
1307-
external applications (e.g. Inkscape) as normal text.
1308-
BUT the side effect is that the rendering quality is decreased,
1309-
AND there are issues with rendering when certain text settings
1310-
like buffers are in place.
1311-
That’s why exporting as paths is recommended.
1301+
* Set the :guilabel:`Text export`: controls whether text labels are always
1302+
or preferably exported as :ref:`text or outline objects <render_labels_text>`.
13121303

13131304
#. Click :guilabel:`Save` to select file location, name and format.
13141305

docs/user_manual/print_composer/create_output.rst

+4-16
Original file line numberDiff line numberDiff line change
@@ -175,14 +175,8 @@ To export a layout as SVG:
175175
any redundant vertices which are not discernably different at the export
176176
resolution (e.g. if the export resolution is ``300 dpi``, vertices that are
177177
less than ``1/600 inch`` apart will be removed).
178-
* Set the :guilabel:`Text export`: controls whether text labels are exported
179-
as proper text objects (:guilabel:`Always export texts as text
180-
objects`) or as paths only (:guilabel:`Always export texts as paths`).
181-
If they are exported as text objects, they can be edited in external
182-
applications (e.g. Inkscape) as normal text. BUT the side effect is that
183-
the rendering quality is reduced, AND there are issues with rendering when
184-
certain text settings like buffers are in place. That’s why exporting as
185-
paths is recommended.
178+
* Set the :guilabel:`Text export`: controls whether text labels are always
179+
or preferably exported as :ref:`text or outline objects <render_labels_text>`.
186180
* Apply |checkbox| :guilabel:`Crop to content` :ref:`option <crop_to_content>`
187181
* |unchecked| :guilabel:`Disable tiled raster layer exports`: When exporting
188182
files, QGIS uses a built-in raster layer tiled rendering that saves memory.
@@ -237,14 +231,8 @@ To export a layout as PDF:
237231
is on the first page.
238232
* |checkbox| :guilabel:`Export RDF metadata` of the document such as the
239233
title, author, date, description...
240-
* Set the :guilabel:`Text export`: controls whether text labels are exported
241-
as proper text objects (:guilabel:`Always export texts as text
242-
objects`) or as paths only (:guilabel:`Always export texts as paths`).
243-
If they are exported as text objects then they can be edited in external
244-
applications (e.g. Inkscape) as normal text. BUT the side effect is that
245-
the rendering quality is decreased, AND there are issues with rendering when
246-
certain text settings like buffers are in place. That’s why exporting as
247-
paths is recommended.
234+
* Set the :guilabel:`Text export`: controls whether text labels are always
235+
or preferably exported as :ref:`text or outline objects <render_labels_text>`.
248236
* Control the PDF :guilabel:`Image compression` using:
249237

250238
* :guilabel:`Lossy (JPEG)`, which is the default compression mode
Loading

docs/user_manual/working_with_vector/vector_properties.rst

+17-3
Original file line numberDiff line numberDiff line change
@@ -1447,15 +1447,27 @@ options:
14471447
polygon features the number of possible labels placement based on their size.
14481448
The longer or wider a feature is, the more candidates it has, and its labels
14491449
can be better placed with less risk of collision.
1450+
1451+
.. _render_labels_text:
1452+
14501453
* :guilabel:`Text rendering`: sets the default value for label rendering
14511454
widgets when :ref:`exporting a map canvas <exportingmapcanvas>` or
14521455
:ref:`a layout <create-output>` to PDF or SVG.
14531456
If :guilabel:`Always render labels as text` is selected then labels can be
14541457
edited in external applications (e.g. Inkscape) as normal text. BUT the side
14551458
effect is that the rendering quality is decreased, and there are issues with
1456-
rendering when certain text settings like buffers are in place. That's why
1457-
:guilabel:`Always render labels as paths (recommended)` which exports labels
1458-
as outlines, is recommended.
1459+
rendering when certain text settings like buffers are in place.
1460+
That's why :guilabel:`Always render labels as paths (recommended)`
1461+
which exports labels as outlines but guarantees complete compatibility
1462+
with the full range of formatting options available, is recommended.
1463+
With :guilabel:`Prefer rendering labels as text` option, labels are rendered as text objects,
1464+
unless doing so results in rendering artifacts or poor quality rendering (depending on text format settings).
1465+
1466+
.. note:: When rendering labels as text to a vector based device (e.g. PDF or SVG),
1467+
care must be taken to ensure that the required fonts are available to users
1468+
when opening the created files, or default fallback fonts will be used to display the output instead.
1469+
(Although PDF exports MAY automatically embed some fonts when possible, depending on the user’s platform).
1470+
14591471
* |checkbox| :guilabel:`Allow truncated labels on edges of map`: controls
14601472
whether labels which fall partially outside of the map extent should be
14611473
rendered. If checked, these labels will be shown (when there's no way to
@@ -1473,6 +1485,8 @@ options:
14731485
Like the label says, it's useful only for debugging and testing the effect different
14741486
labeling settings have. This could be handy for a better manual placement with
14751487
tools from the :ref:`label toolbar <label_toolbar>`.
1488+
* |unchecked| :guilabel:`Show label metrics (for debugging)`:
1489+
displays the text bounds of the label in red and baselines in blue
14761490
* :guilabel:`Project labeling version`: QGIS supports two different versions of
14771491
label automatic placement:
14781492

0 commit comments

Comments
 (0)