diff --git a/CHANGELOG.md b/CHANGELOG.md index 108d89b0..1547ddd9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -40,9 +40,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/): ### Fixed -- Archive extraction fails for target paths with non-ASCII characters on Windows ([#3607]) -- Make `ya pkg` ignore default remote name in user Git config ([#3648]) - Chafa v1.18.1 causes random ghost keypresses when previewing images ([#3678]) +- Make `ya pkg` ignore default remote name in user Git config ([#3648]) +- Archive extraction fails for target paths with non-ASCII characters on Windows ([#3607]) +- Escape backslashes in ImageMagick font path parameter ([#3708]) ### Improved @@ -1666,3 +1667,4 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/): [#3687]: https://github.com/sxyazi/yazi/pull/3687 [#3689]: https://github.com/sxyazi/yazi/pull/3689 [#3696]: https://github.com/sxyazi/yazi/pull/3696 +[#3708]: https://github.com/sxyazi/yazi/pull/3708 diff --git a/yazi-plugin/preset/plugins/font.lua b/yazi-plugin/preset/plugins/font.lua index cb5895fe..767b5ee3 100644 --- a/yazi-plugin/preset/plugins/font.lua +++ b/yazi-plugin/preset/plugins/font.lua @@ -33,7 +33,7 @@ function M:preload(job) "-gravity", "center", "-font", - tostring(job.file.path), + tostring(job.file.path):gsub("\\", "\\\\"), "-pointsize", 64, "xc:white",