<div dir="ltr">How can I tell if a feature is enabled by default? Is it constant across scripts? And are feature values always True/False<div class=""><div id=":1dh" class="" tabindex="0"><img class="" src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif"></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 1, 2016 at 6:34 PM, Ebrahim Byagowi <span dir="ltr"><<a href="mailto:ebraminio@gmail.com" target="_blank">ebraminio@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">By passing a list of opentype features to harfbuzz, it just modifies the default status of them but still has knows which ones should be enabled or disabled in case user didn't explicitly set them.<div><span class=""><br><div>> <span style="font-size:12.8px">Because i can turn off LIGA by passing a LIGA feature with value=0 and nothing will happen to arabic but CALT with value=1 changes it</span></div></span><div><span style="font-size:12.8px">In case of LIGA and CALT difference, that depends on that specific font you are using whether it has marked which feature by which tag. An identical stylic operation can have two different tag on different fonts.</span></div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jul 2, 2016 at 2:58 AM, Kelvin Ma <span dir="ltr"><<a href="mailto:kelvinsthirteen@gmail.com" target="_blank">kelvinsthirteen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Now I’m even more confused, will harfbuzz override the features in the features array if it’s setting arabic? Because i can turn off LIGA by passing a LIGA feature with value=0 and nothing will happen to arabic but CALT with value=1 changes it<br></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 1, 2016 at 6:24 PM, Ebrahim Byagowi <span dir="ltr"><<a href="mailto:ebraminio@gmail.com" target="_blank">ebraminio@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Different and essential operations of a shaper are divided and marked by features and some features are enabled by default per the specification, for example on Arabic <a href="https://www.microsoft.com/typography/OpenTypeDev/arabic/intro.htm#features" target="_blank">https://www.microsoft.com/typography/OpenTypeDev/arabic/intro.htm#features</a></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Sat, Jul 2, 2016 at 2:33 AM, Kelvin Ma <span dir="ltr"><<a href="mailto:kelvinsthirteen@gmail.com" target="_blank">kelvinsthirteen@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">&& why does harfbuzz still use features if I pass it an empty list? How does it know whether to turn them on or off?<br></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 1, 2016 at 6:02 PM, Kelvin Ma <span dir="ltr"><<a href="mailto:kelvinsthirteen@gmail.com" target="_blank">kelvinsthirteen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">So that’s what the value member does. thanks! Will it always be either 0 or 1? <br>&& what does .tag do?<br></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 1, 2016 at 5:51 PM, Simon Cozens <span dir="ltr"><<a href="mailto:simon@simon-cozens.org" target="_blank">simon@simon-cozens.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On 02/07/2016 07:34, Kelvin Ma wrote:<br>
> So I think I figured out how to turn on font features, but how do I turn<br>
> ones off that are enabled by default? Like liga or kern?<br>
<br>
</span>Just set the value to 0 in the features array.<br>
See<br>
<a href="https://github.com/simoncozens/sile/blob/master/src/justenoughharfbuzz.c#L78" rel="noreferrer" target="_blank">https://github.com/simoncozens/sile/blob/master/src/justenoughharfbuzz.c#L78</a><br>
<span><font color="#888888"><br>
Simon<br>
<br>
</font></span></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div><br></div></div>_______________________________________________<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>
<br></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>