Files
odfstudio/emfio/qa/cppunit/emf/data/TestExtTextOutScaleGM_COMPATIBLE.emf
Bartosz Kosiorek b6857c1f16 tdf#138087 tdf#142548 EMF Fix font scaling and orientation in GM_COMPATIBLE
When importing EMF files, certain records (like EXTTEXTOUTW) in
GM_COMPATIBLE mode were not respecting non-proportional scaling
or single-axis mirroring. This resulted in text that was too wide/narrow
or rotated in the wrong direction.

Key changes:
- Added font width scaling based on the ratio between fXScale and fYScale.
- Handled 180-degree rotation when both axes are negative.
- Corrected font orientation for single-axis mirroring by inverting the
  angle (3600 - orientation) to compensate for the reversed chirality
  of the coordinate system.

Change-Id: Ib1126c192a80b973f343f25bf20ec119d94d71a8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199770
Tested-by: Jenkins
Reviewed-by: Bartosz Kosiorek <gang65@poczta.onet.pl>
2026-02-21 08:30:48 +01:00

4.0 KiB