From 3fd85c9c216a5d0dd5f3f6fd0d7bbd0b3b5cab36 Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Fri, 15 Sep 2023 18:30:20 +1000 Subject: [PATCH 1/2] Only swap for non-horizonal layouts. --- src/SixLabors.Fonts/TextLayout.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/SixLabors.Fonts/TextLayout.cs b/src/SixLabors.Fonts/TextLayout.cs index 6173b847..614e217d 100644 --- a/src/SixLabors.Fonts/TextLayout.cs +++ b/src/SixLabors.Fonts/TextLayout.cs @@ -828,6 +828,11 @@ private static void SubstituteBidiMirrors(FontMetrics fontMetrics, GlyphSubstitu // TODO: This only replaces certain glyphs. We should investigate the specification further. // https://www.unicode.org/reports/tr50/#vertical_alternates + if (collection.TextOptions.LayoutMode.IsHorizontal()) + { + return; + } + for (int i = 0; i < collection.Count; i++) { GlyphShapingData data = collection[i]; From b10de716b309e9df9bd1bde677e1dd849c1d96e4 Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Fri, 15 Sep 2023 18:35:13 +1000 Subject: [PATCH 2/2] Allow checks and publish from release branch --- .github/workflows/build-and-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index f2443756..4e7145ce 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -9,7 +9,7 @@ on: pull_request: branches: - main - + - release/* jobs: Build: strategy: