<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">(Forwarding this on on behalf of a fontspec user who would like a new feature. Not currently subscribed so please CC me directly if you have further comment.)</div><div class=""><br class=""></div><div class="">TL;DR: +lfbd feature works in XeTeX but +rtbd does not.</div><div class=""><br class=""></div><div class="">If there are further requests for fontspec OpenType feature support, please let me know via Github :)</div><div class=""><br class=""></div><div class="">All the best,</div><div class="">Will</div><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">Begin forwarded message:</div><br class="Apple-interchange-newline"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">From: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">Pablo Rodríguez <<a href="mailto:notifications@github.com" class="">notifications@github.com</a>><br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">Subject: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class=""><b class="">Re: [wspr/fontspec] add optical bounds to fontspec (#282)</b><br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">Date: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">17 March 2017 at 5:18:33 am ACDT<br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><br class=""></div><div class=""><p class="">Will, sorry because I was so stupid not to recognize what I already knew.</p><p class="">The following works in LuaTeX and (partially) in XeTeX from TL 2016:</p>
<div class="highlight highlight-text-tex"><pre class=""><span class="pl-c1">\input</span> ifluatex.sty
<span class="pl-c1">\ifluatex\input</span> luaotfload.sty<span class="pl-k">\fi</span>
<span class="pl-c1">\font</span><span class="pl-cce">\1</span>="TestOPBD-Regular:+lfbd,+rtbd"
<span class="pl-cce">\1</span> Ἠ

Ἠ<span class="pl-c1">\hfill</span> Ἠ

Ἦ<span class="pl-c1">\hfill</span> ὩὩ

ἯἯ<span class="pl-c1">\hfill</span> ὩὩ
<span class="pl-c1">\bye</span></pre></div><p class="">Output from ConTeXt (sorry, but I don’t know how to get a reasonable page size in plain TeX):</p><p class=""><a href="https://cloud.githubusercontent.com/assets/203767/24013230/047699c2-0a81-11e7-87fa-ede28bcd08f4.png" target="_blank" class=""><img src="https://cloud.githubusercontent.com/assets/203767/24013230/047699c2-0a81-11e7-87fa-ede28bcd08f4.png" alt="opbd-1" style="max-width:100%;" class=""></a></p><p class="">What I knew: <code class="">opbd</code> is handled by the application, not by the font (which provides both <code class="">lfbd</code> and <code class="">rtbd</code>, but no <code class="">opbd</code>).</p><p class="">To test both sides of optical margin, I added <code class="">rtbd</code> values to the font provided for testing at <a href="http://www.ousia.tk/TestOPBD-Regular.otf" class="">http://www.ousia.tk/TestOPBD-Regular.otf</a>.</p><p class="">The partial failure in XeTeX is that <code class="">rtbd</code> doesn’t seem to work.</p><p class="">I’m not subscribed to the XeTeX mailing list. If you were, would you be so kind to report this issue there?</p><p class="">I guess an option name such as <code class="">OpticalBounds</code> or <code class="">OpticalMargins</code> might make sense here.</p></div></blockquote></div><br class=""></div><link itemprop="url" href="https://github.com/wspr/fontspec/issues/282#issuecomment-287155442" class=""></body></html>