[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: OpenType Features
From: |
Jay Anderson |
Subject: |
Re: OpenType Features |
Date: |
Sat, 30 Jan 2016 23:14:49 -0700 |
On Mon, Jan 18, 2016 at 10:37 AM, Jay Anderson <address@hidden> wrote:
> On Mon, Jan 18, 2016 at 9:59 AM, Jay Anderson <address@hidden> wrote:
>> First issue: It appears that lilypond is dependent on pango 1.6
>> (pangoft2 - required 1.6.0, INSTALL.txt says pango 1.12 or newer so
>> I'm not totally sure what to believe.). OpenType features were added
>> in pango 1.18 (assuming I'm reading this correctly:
>> https://developer.gnome.org/pango/unstable/api-index-1-18.html). Are
>> there known issues with making this the new minimum version?
>
> I was a little wrong here. Those OpenType feature methods are
> deprecated. The supported way to set them is through PangoAttributes
> using the PANGO_ATTR_FONT_FEATURES attribute type
> (https://developer.gnome.org/pango/unstable/pango-Text-Attributes.html#PangoAttrType).
> This was added in 1.38 which was released in 2015 September
> (https://github.com/GNOME/pango/releases/tag/1.38.0). This is rather
> new (newer than my operating system includes - 1.36.3). So the minimum
> version would need to be _much_ newer than 1.18.
An update for those interested. I got something working. The attached
patch is certainly not ready to be merged, but I'm curious if the
chosen interface seems reasonable (see smallcaps.ly which is
attached). It adds a new 'font-features' property to the
font-interface (at least that's what I think I'm doing
http://www.lilypond.org/doc/v2.18/Documentation/internals/font_002dinterface).
This is using a method from pango 1.38. I'm not sure this issues
surrounding using such a new version. (It's newer than the version
included in ubuntu 15.10 for instance.)
I haven't tested it much yet, but I'm pleased with the output (tested
with Cardo - http://scholarsfonts.net/cardofnt.html).
Thanks!
-----Jay
0001-Initial-work-to-support-opentype-font-features.patch
Description: Text Data
smallcaps.ly
Description: Text Data
smallcaps.pdf
Description: Adobe PDF document
- OpenType Features, Jay Anderson, 2016/01/18
- Re: OpenType Features, James, 2016/01/18
- Re: OpenType Features, Simon Albrecht, 2016/01/18
- Re: OpenType Features, Jay Anderson, 2016/01/18
- Re: OpenType Features,
Jay Anderson <=
- Re: OpenType Features, Simon Albrecht, 2016/01/31
- Re: OpenType Features, Jay Anderson, 2016/01/31
- Re: OpenType Features, Simon Albrecht, 2016/01/31
- Re: OpenType Features, Simon Albrecht, 2016/01/31
- Re: OpenType Features, Werner LEMBERG, 2016/01/31