WIP: Generalising more marker placement code.

Moved some common properties out of `text_properties` to be
re-used for marker placement in `placement_finder`. Added marker
placement along a line (not rotated at the moment), but it doesn't
match the old placement code for markers yet.