Skip to content

Servo can't render OpenType ligatures in 'mort' or 'morx' format, only in 'GSUB' #4320

Closed

Description

@pcwalton

So there are at least three ways to specify ligatures in TrueType/OpenType fonts: mort, morx, and GSUB. GSUB is the newest. However, all of my fonts only have mort or morx. So ligatures don't render in most fonts.

I guess we have to convert from mort or morx to GSUB.

Activity

  1. added
    E-more-complex
    E-very-complex
    and removed
    E-more-complex
    on Dec 11, 2014
  2. khaledhosny commented on Dec 13, 2014

    @khaledhosny

    mort and morx are part of AAT not OpenType, the only way to do glyph substitution in OpenType is with GSUB. So not an old/new distniction, but to different technologies.

  3. behdad commented on Dec 16, 2014

    @behdad

    We will eventually implement mort / morx in HarfBuzz natively. In the mean time, if you are building on OS X and build HarfBuzz --with-coretext, then you should get mort / morx working. HarfBuzz will internally call into CoreText for those fonts.

  4. added
    E-less-complex
    A-build
    and removed
    E-very-complex
    on May 20, 2016
  5. mbrubeck commented on May 20, 2016

    @mbrubeck
    Contributor

    If someone wants to enable this on Mac OS, they can clone the servo/rust-harfbuzz repo and edit the makefile.cargo to add --with-coretext to the configure arguments if $TARGET contains "apple-darwin". You can use a path override to test Servo with your local copy of harfbuzz-sys.

    (Cross-platform support is outside of the Servo scope; we'll just wait for it to be implemented in Harfbuzz.)

  6. behdad commented on May 20, 2016

    @behdad

    sgtm

  7. added 3 commits that reference this issue on May 26, 2016
  8. jdm commented on Jun 3, 2016

    @jdm
    Member

    All that's left here is upgrading the version of harfbuzz that Servo uses: ./mach cargo-update -p harfbuzz-sys

  9. added a commit that references this issue on Jun 3, 2016
    19a7945
  10. mbrubeck commented on Jun 3, 2016

    @mbrubeck
    Contributor

    #11591 includes the harfbuzz-sys update.

  11. added
    C-assigned
    on Jun 3, 2016
  12. added a commit that references this issue on Jun 10, 2016
    221f9be
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-buildA-layout/textA-platform/shapingC-assignedE-less-complexP-mac

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions