Skip to content

Commit

Permalink
Merge pull request #356 from SixLabors/js/v1-fix-355
Browse files Browse the repository at this point in the history
Fix 355
  • Loading branch information
JimBobSquarePants authored Sep 15, 2023
2 parents dc3e081 + b10de71 commit be8883c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
pull_request:
branches:
- main

- release/*
jobs:
Build:
strategy:
Expand Down
5 changes: 5 additions & 0 deletions src/SixLabors.Fonts/TextLayout.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit be8883c

Please sign in to comment.