Disable utf8 chars on external harfbuzz

This commit is contained in:
Rune Tynan 2024-04-16 22:31:02 -07:00
parent ba3b523107
commit eace810da6
No known key found for this signature in database
GPG Key ID: 7ECC932F8B2C731E
2 changed files with 4 additions and 0 deletions

View File

@ -154,6 +154,7 @@ fn main() {
)
.arg(
Arg::new("PATH")
.value_parser(clap::value_parser!(PathBuf))
.help("The path to the XDV or SPX file")
.required(true)
.index(1),

View File

@ -199,6 +199,9 @@ fn file_encoding() {
.go()
}
// Works around an issue where old (~2.7) Harfbuzz lays out glyphs differently.
// Remove this once all external Harfbuzz versions don't exhibit the glyph-swapping behavior.
#[cfg(not(feature = "external-harfbuzz"))]
#[test]
fn utf8_chars() {
TestCase::new("utf8_chars")