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

Already on GitHub? Sign in to your account

Addition of different text effects like underline, outline may be strikethrought #529

Open
artemp opened this Issue Oct 11, 2011 · 16 comments

Comments

Projects
None yet
6 participants
Owner

artemp commented Oct 11, 2011

Underlined citynames is the good possibility to make map readable if you need to show several different groups of them (administrative centers for example)

Owner

artemp commented Oct 11, 2011

[springmeyer] Yes, we should add support for this. However it does not come automatically with either of the graphics api's Mapnik uses, eg. AGG and CAIRO.

Freetype offers basic info on where an underline should be positioned relative to text:
{{{
underline_position;
underline_thickness;
}}}

So, the task would be to manually draw the necessary lines in AGG or Cairo.

Owner

artemp commented Oct 11, 2011

[springmeyer] moving to http://trac.mapnik.org/milestone/GSOC%20Text%20Placement, as I think some or most of this is being addressed.

Owner

artemp commented Oct 11, 2011

[herm] This requires changes to placement finder, however this function is already quite complicated and should be split in several smaller parts before doing this work.

Owner

springmeyer commented Dec 22, 2011

@herm - any chance you might be able to look at integrating your existing placement work into master soon?

Member

herm commented Dec 24, 2011

Actually I started working on merging my code yesterday. However a lot of issues remain because the automatic merge totally failed. I had to check a few hundred differences by hand and some patches that have been applied to trunk have to be converted to the new placement system. As of e293394 it passes it's own tests, but not everything is ready yet.

Owner

springmeyer commented Dec 24, 2011

Great work making progress on this, I can imagine it was rugged. Ideally we can integrate your work by staging changes by breaking them out into separate branches and pull requests. Eg removal of glyph symbolizer would be best as a separate change to make reviewing core placement changes easier. What do you think?

Member

herm commented Dec 25, 2011

All changes are already split in small parts in the textplacement branch history. Splitting it again will be much work without any real advantage.

Owner

springmeyer commented Jan 17, 2012

I'd like to look into splitting - will let you know when/if I have a chance to get to it.

Owner

springmeyer commented Apr 9, 2012

moving to 2.1 milestone.

is there a known workaround how to achieve underline in current version 2.2?

der-stefan commented Oct 3, 2014 edited

It would really be a nice feature to underline texts, for example for capitals. Right now you "only" can use text-transform="uppercase" and bold fonts, but official maps often use underlined labels.

2014-10-03 16:27 GMT+02:00 der-stefan notifications@github.com:

It would really be a nice feature to underline texts, for example for
capitals. Right now you "only" can user text-transform="uppercase" and bold
fonts, but official maps often use underlined labels.

I second this. Maybe one could work around this missing functionality by
compiling a new font with only underlined chars, but native support would
be nice.

+1 for this feature.

Any news about the text effects? Was it perhaps implemented, but not documented?

Owner

springmeyer commented Oct 5, 2015

nothing has been implemented @der-stefan

@springmeyer: Thanks for the info. Hopefully it won't get forgotten for some future release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment