diff options
| author | Mitchell Hashimoto <m@mitchellh.com> | 2025-10-02 15:57:09 -0700 |
|---|---|---|
| committer | Mitchell Hashimoto <m@mitchellh.com> | 2025-10-03 07:10:43 -0700 |
| commit | 87b77e19803f1fccd4eaa7136ee2f0104369cfa2 (patch) | |
| tree | 9040d0b64146ee8604d2245319198c206fcbbd43 /src/font/Collection.zig | |
| parent | 4e3e0ed0563f359d8dcba3984d0a094f38049fe0 (diff) | |
ci: cleanup
Diffstat (limited to 'src/font/Collection.zig')
| -rw-r--r-- | src/font/Collection.zig | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/font/Collection.zig b/src/font/Collection.zig index e91fe03ae..5ec076608 100644 --- a/src/font/Collection.zig +++ b/src/font/Collection.zig @@ -223,12 +223,13 @@ fn getFaceFromEntry( // Calculate the scale factor for this // entry now that we have a loaded face. - entry.scale_factor = .{ - .scale = self.scaleFactor( + if (entry.scale_factor == .adjustment) { + const factor = self.scaleFactor( face.getMetrics(), entry.scale_factor.adjustment, - ), - }; + ); + entry.scale_factor = .{ .scale = factor }; + } // If our scale factor is something other // than 1.0 then we need to resize the face. |
