Menu

#1388 Support OpenType font features

Verified
Enhancement
2017-07-18
2010-11-08
Anonymous
No

Originally created by: *anonymous

Originally created by: lemzw...@googlemail.com

Currently, LilyPond doesn't support OpenType font features.  For example, many fonts already contain glyphs for small caps letters, but lilypond can't access such glyphs directly since OpenType fonts don't need to have named glyphs, and you need to activate an OpenType feature (`smcp' in this particular case) so that input character codes get properly mapped to caps glyphs.

I suggest that we implement an interface similar to the `fontspec' package for XeTeX and luatex:

  http://www.ctan.org/get/macros/xetex/latex/fontspec/fontspec.pdf

Discussion

1 2 > >> (Page 1 of 2)
  • Google Importer

    Google Importer - 2011-12-08

    Originally posted by: pkx1...@gmail.com

    (No comment was entered for this change.)

    Labels: -Priority-High

     
  • Google Importer

    Google Importer - 2013-05-17

    Originally posted by: aleksandr.andreev@gmail.com

    I'm offering $100 US for the design of an interface that allows stylistic sets to be turned on.

    Labels: Bounty

     
  • horndude77

    horndude77 - 2017-05-18

    Initial work to support opentype font features

    Following up on an old patch I send to the list. One comment was to use a list
    for combining multiple font features. This is now implemented. A possible issue
    is the pango API needed is somewhat newer. I'll investigate where I need to set
    that in an update (pointers and hints welcome).

    http://codereview.appspot.com/323850043

     
  • Anonymous

    Anonymous - 2017-05-18
    • Description has changed:

    Diff:

    
    
    • assigned_to: horndude77
    • Needs: -->
    • Type: --> Enhancement
     
  • Anonymous

    Anonymous - 2017-05-18
    • Patch: new --> review
     
  • Anonymous

    Anonymous - 2017-05-18

    Passes make, make check and a full make doc.

     
  • Anonymous

    Anonymous - 2017-05-20
    • Patch: review --> countdown
     
  • Anonymous

    Anonymous - 2017-05-20

    Patch on countdown for May 23rd

     
  • Anonymous

    Anonymous - 2017-05-23
    • Patch: countdown --> push
     
  • Anonymous

    Anonymous - 2017-05-23

    Patch counted down - please push.

     
  • Anonymous

    Anonymous - 2017-05-27

    Patch counted down - please push.

     
  • Anonymous

    Anonymous - 2017-05-30
     
  • Anonymous

    Anonymous - 2017-05-30

    Patch counted down - please push although you may need to rebase with current master.

     
  • Anonymous

    Anonymous - 2017-06-02
     
  • Anonymous

    Anonymous - 2017-06-02

    Jay, do you need someone else to push this for you (I can not recall who does and who does not have commit access) or is this waiting on something else?

    Patch counted down - please push.

     
  • horndude77

    horndude77 - 2017-06-05

    Update minimum pango version

    http://codereview.appspot.com/323850043

     
  • horndude77

    horndude77 - 2017-06-05

    Jay, do you need someone else to push this for you (I can not recall who does and who does not have commit access) or is this waiting on something else?

    I'd need someone else to push. It'd be useful for is someone to assess the version of pango.

    Sorry, I hadn't revisited this earlier (thanks for keeping on top of these things). I updated the code review for the minimum version of pango. At this point I'd expect most linux distributions to include a version of the library with this function, but the hard requirement could potentially cause issues when configuring with distributions not containing this version. 1.38 is the version when pango_attr_font_features_new was added: https://developer.gnome.org/pango/stable/pango-Text-Attributes.html#pango-attr-font-features-new.

     
  • Anonymous

    Anonymous - 2017-06-05
    • Needs: -->
    • Patch: new --> review
    • Type: --> Enhancement
     
  • Anonymous

    Anonymous - 2017-06-05

    Passes make, make check and a full make doc.

    As to the Pango version requirements, I am going to have to defer to teh rest of the dev team. My own Ubuntu 16:04 LTS system (I haven't checked my Home Fedora install) is using Pango 1.38.1 so I didn't have to do anything special.

    But we would have to update the Contributor's guide

    e.g. http://lilypond.org/doc/v2.19/Documentation/contributor-big-page#requirements-for-running-lilypond

     
  • David Kastrup

    David Kastrup - 2017-06-05

    So developers would need to have LilyDev 4.2 (with some version of Pango 1.40?) before we could push this patch?

     
  • Masamichi Hosoda

    Yes, I think so.
    Alternatively there is a way to install Guile 1.8 to LilyDev 5.2.

    Another solution is to use Ubuntu 16.04 which has Pango 1.38.1 and Guile 1.8.

     
  • Anonymous

    Anonymous - 2017-06-08
    • Patch: review --> countdown
     
  • Anonymous

    Anonymous - 2017-06-08

    So as far as I can tell there is nothing wrong with this going on countdown for June 11th (we will have to update LilyDev, but I don't see that as a blocking 'thing' for this patch).

    Patch on countdown for June 11th

     
1 2 > >> (Page 1 of 2)
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.