Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add support for rectangular (box-styled) halo #1407

Merged
merged 5 commits into from
Dec 14, 2022

Conversation

stephanr
Copy link
Member

@stephanr stephanr commented Sep 30, 2022

This PR is a (smal) reworked part of the larger PR #1204

It adds the possibility to use rectangular helo effects when rendering text.
This is similar to the way deegree2 rendered halo as boxes.

It also contains an edge-case fix so that when halos are set (<> 0) it will be rendered with at least a size of one pixel.

EDIT:
For the test to work, it was necessary to include and load a font so that the test was run with the same font.
The Fonts distributed with each JDK distribution differ and can as well differ on the platforms (win/mac/linux).

EDIT2:
The previously added Font was replaced with an maven dependency.
The Font is licensed, under "SIL OPEN FONT LICENSE Version 1.1" see also https://search.maven.org/artifact/com.mpobjects.jasperreports.font/jasperreports-fonts-liberation/2.1.2/jar

@stephanr stephanr added enhancement enhancement or improvement WMS deegree Web Map Service labels Sep 30, 2022
@stephanr stephanr added this to the 3.5 milestone Sep 30, 2022
@stephanr stephanr force-pushed the enhancement/box-styled-halo-83 branch from a171319 to 50dc184 Compare October 4, 2022 13:03
@tfr42 tfr42 added the needs rebase PR is not up to date and needs rebase label Nov 23, 2022
@stephanr stephanr force-pushed the enhancement/box-styled-halo-83 branch from 50dc184 to 31f6a1e Compare November 30, 2022 15:19
@stephanr
Copy link
Member Author

Fixed merge conflict by rebase.

@stephanr stephanr removed the needs rebase PR is not up to date and needs rebase label Nov 30, 2022
Copy link
Member

@tfr42 tfr42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check if the TTF files may be added via a maven dependency.

@stephanr stephanr force-pushed the enhancement/box-styled-halo-83 branch from 31f6a1e to 0af25aa Compare December 14, 2022 16:02
@stephanr
Copy link
Member Author

Please check if the TTF files may be added via a maven dependency.

The font files are now tracked as maven test dependency.

@copierrj copierrj merged commit fef9c44 into deegree:main Dec 14, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement enhancement or improvement WMS deegree Web Map Service
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants