Skip to content

Add G_UNICODE_SCRIPT_MATH to GUnicodeScript

Alexis King requested to merge lexi.lambda/glib:unicode-script-math into main

This MR adds a new G_UNICODE_SCRIPT_MATH member to GUnicodeScript, which corresponds to the ISO 15924 script code Zmth.

This is not a “real” Unicode script in the sense that no characters are actually assigned this script, but it corresponds to a real OpenType script tag. It is therefore necessary to have some way to represent the math script in Pango, as certain OpenType shaping features may depend on the selection of the math script. Since Pango’s PangoScript is just an alias for GUnicodeScript, the extra member must be added to GLib.

See also harfbuzz#3417, which adds support for the Zmth ISO 15924 script code in HarfBuzz.

Merge request reports