Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ofn-text-path-selection
#1
If you create text where there is an overlap between characters:

   

The strokes of these characters overlap:

   

And if you try to get a selection from that path you don’t get the initial text:

   

This is because Gimp uses an “even-odd” algorithm to determine if a pixel is selected or not: drawing a line from the pixel in any random direction, the pixel is outside the selection if the line intersects an even number of strokes (0
is considered even), and inside the selection if the line intersects an odd number of strokes. If the overlap areas, such a line intersects two strokes, one for each character, so the overlap area is unselected.

This plugin uses a different algorithm: it identifies the strokes that belong to the same characters (more accurately, sets of nested strokes), and adds theses characters separately to the selection, so the overlap areas are the union of the selections for each characters and are selected:

   

As usual plugin is here. Enjoy.

Thanks to Akovia for the incentive and the help. Your PC shall not have burned in vain!
Reply


Messages In This Thread
ofn-text-path-selection - by Ofnuts - 05-14-2020, 10:14 PM
RE: ofn-text-path-selection - by akovia - 05-14-2020, 11:36 PM
RE: ofn-text-path-selection - by Ofnuts - 05-15-2020, 06:19 AM
RE: ofn-text-path-selection - by akovia - 05-17-2020, 06:04 PM
RE: ofn-text-path-selection - by Ofnuts - 05-17-2020, 07:31 PM

Forum Jump: