Takes ascent/descent in account in the text layer
Fixes fips regression from #4068
Merge pull request #4089 from yurydelendik/issue3725

Takes ascent/descent in account in the text layer
Merge pull request #4093 from yurydelendik/issue4068

Fixes fips regression from #4068