<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 9, 2020 at 11:10 AM Patrick <<a href="mailto:std300@gmail.com">std300@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello all,<br>
<br>
does harfbuzz enable OpenType features by default? And if yes, is<br>
there a list of the default enabled features?<br>
<br>
When I load a font, for example CrimsonPro, I get standard ligatures<br>
(fi for example). Where is this activated? Is this a harfbuzz or a<br>
font thing? If I don't want them, I have to disable the feature<br>
explicitly by "-liga"<br>
<br>
Background: I use harfbuzz with LuaTeX and my own bindings. A quick<br>
search makes me slightly confident that the backend software does not<br>
add liga without my knowledge.<br></blockquote><div><br></div><div>Hi,</div><div><br></div><div>Yes, some features are on by default. It happens in hb_ot_shape_collect_features() I believe.</div><div><br></div><div>See [1], and then [2] and [3] is what contributes the most.</div><div><br></div><div>[1] <a href="https://github.com/harfbuzz/harfbuzz/blob/5539d158b75470dcf41bb86e2e8b9a7a986447c0/src/hb-ot-shape.cc#L309">https://github.com/harfbuzz/harfbuzz/blob/5539d158b75470dcf41bb86e2e8b9a7a986447c0/src/hb-ot-shape.cc#L309</a></div><div>[2] <a href="https://github.com/harfbuzz/harfbuzz/blob/5539d158b75470dcf41bb86e2e8b9a7a986447c0/src/hb-ot-shape.cc#L284">https://github.com/harfbuzz/harfbuzz/blob/5539d158b75470dcf41bb86e2e8b9a7a986447c0/src/hb-ot-shape.cc#L284</a></div><div>[3] <a href="https://github.com/harfbuzz/harfbuzz/blob/5539d158b75470dcf41bb86e2e8b9a7a986447c0/src/hb-ot-shape.cc#L297">https://github.com/harfbuzz/harfbuzz/blob/5539d158b75470dcf41bb86e2e8b9a7a986447c0/src/hb-ot-shape.cc#L297</a></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Thank you<br>
<br>
 Patrick<br>
_______________________________________________<br>
HarfBuzz mailing list<br>
<a href="mailto:HarfBuzz@lists.freedesktop.org" target="_blank">HarfBuzz@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/harfbuzz" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/harfbuzz</a><br>
</blockquote></div></div>