Skip to content

Commit

Permalink
Only swap for non-horizonal layouts.
Browse files Browse the repository at this point in the history
  • Loading branch information
JimBobSquarePants committed Sep 15, 2023
1 parent dc3e081 commit 3fd85c9
Showing 1 changed file with 5 additions and 0 deletions.
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 3fd85c9

Please sign in to comment.