~vcs-imports/libgnomekbd/master

Viewing all changes in revision 898.

  • Committer: Corentin Noël
  • Author(s): Daniel Kahn Gillmor
  • Date: 2022-06-22 07:22:17 UTC
  • Revision ID: git-v1:efd617958e26849ee2c518159f875a7f493f8b24
Invert alignment for RTL symbols to place them correctly

https://docs.gtk.org/Pango/method.Layout.set_auto_dir.html says:

> When the auto-computed direction of a paragraph differs from the
> base direction of the context, the interpretation of
> PANGO_ALIGN_LEFT and PANGO_ALIGN_RIGHT are swapped.

Now that symbols are placed based using alignment, we don't want RTL
symbols placed on the wrong side of the key rendering.  To do this, we
invert the alignment for RTL symbols.

Closes: #8

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: