fheroes2 icon indicating copy to clipboard operation
fheroes2 copied to clipboard

Add multi-line text edit feature to edit Sign and Bottle texts and some fixes for text rendering

Open Districh-ru opened this issue 9 months ago • 0 comments

Relates to https://github.com/ihhub/fheroes2/issues/6845 This PR adds ability to input long phases in the multi-line input dialog. It adds ability to input Sign and Bottle text in Editor. It will be also used to input map description in the next PR.

https://github.com/ihhub/fheroes2/assets/113276641/46c71bda-3a35-4ec7-b305-dd1dafd9e8b4

This PR also fixes:

  • incorrect cursor position calculation for texts with spaces;
  • incorrect multi-line text width calculation for UniformedVerticalAlignment texts;
  • incorrect cutting of words for multi-font text cases: изображение =>> изображение

Districh-ru avatar May 03 '24 19:05 Districh-ru