don't clip text that is rotated (#15925)

# Objective

- Fixes #15922 , #15853 
- Don't clip text that is rotated by some angles

## Solution

- Compare to the absolute size before clipping
This commit is contained in:
François Mockers 2024-10-15 17:21:28 +02:00 committed by GitHub
parent af93e78b72
commit 812e599f77
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1158,9 +1158,9 @@ pub fn prepare_uinodes(
let transformed_rect_size =
glyph.transform.transform_vector3(rect_size);
if positions_diff[0].x - positions_diff[1].x
>= transformed_rect_size.x
>= transformed_rect_size.x.abs()
|| positions_diff[1].y - positions_diff[2].y
>= transformed_rect_size.y
>= transformed_rect_size.y.abs()
{
continue;
}