Fix for #7627, wrong label scaling in print or PDF

- Add shadow device dpi output (high resolution)
- [API] Add scaleToPixelContext method to QgsPalLayerSettings for better precision scaling