Skip to content

Commit

Permalink
Merge pull request #780 from nsidc/copyright-label-consistent-text-style
Browse files Browse the repository at this point in the history
Make text style for copyright logo consistent between systems
  • Loading branch information
mfisher87 authored Aug 24, 2023
2 parents ed1f8f7 + b52e901 commit 6fdf27e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions qgreenland/util/qgis/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def _add_decorations(project: qgc.QgsProject) -> None:
)
project.writeEntry("CopyrightLabel", "/Label", copyright_label)
project.writeEntry("CopyrightLabel", "/Placement", 0)
project.writeEntry("CopyrightLabel", "/MarginH", 0)
project.writeEntry("CopyrightLabel", "/MarginH", 1)
project.writeEntry("CopyrightLabel", "/MarginV", 0)

# Add buffer around copyright text
Expand All @@ -291,7 +291,8 @@ def _add_decorations(project: qgc.QgsProject) -> None:
"CopyrightLabel",
"/Font",
(
'<text-style><text-buffer bufferColor="250,250,250,255"'
'<text-style fontFamily="Open Sans" namedStyle="Regular" fontSize="12">'
'<text-buffer bufferColor="250,250,250,255"'
' bufferJoinStyle="128" bufferSize="1" bufferDraw="1"'
' bufferSizeUnits="MM" bufferOpacity="1" bufferBlendMode="0"'
' bufferSizeMapUnitScale="3x:0,0,0,0,0,0" bufferNoFill="1"/></text-style>'
Expand All @@ -301,8 +302,8 @@ def _add_decorations(project: qgc.QgsProject) -> None:
# Add Image (QGreenland logo):
project.writeEntry("Image", "/Enabled", True)
project.writeEntry("Image", "/Placement", 0)
project.writeEntry("Image", "/MarginH", 4)
project.writeEntry("Image", "/MarginV", 8)
project.writeEntry("Image", "/MarginH", 1)
project.writeEntry("Image", "/MarginV", 12)
project.writeEntry("Image", "/Size", 24)
project.writeEntry("Image", "/ImagePath", "qgreenland.png")

Expand Down

0 comments on commit 6fdf27e

Please sign in to comment.