[HarfBuzz] HarfBuzz Digest, Vol 121, Issue 4
Kelvin Ma
kelvinsthirteen at gmail.com
Fri Jul 1 23:18:06 UTC 2016
>
> On 02.07.2016 1:02, Kelvin Ma wrote:
> > So that’s what the value member does. thanks! Will it always be either 0
> > or 1?
>
> 0 means disabled, 1 means enabled, >1 means enabled with specific value.
> According to msdn 'salt' feature could use that to pick a specific
> alternate glyph.
>
So it’s not boolean okay. Right now I have opentype features as a font
styling attribute, which means that there is always an explicit ON/OFF
value computed for every feature in every style. So it’s important to have
good hardcoded defaults for the base class fontstyle. But seeing as it
varies by script, and the font styles are not aware of script that makes it
a lot more problematic…
>
> > && what does .tag do?
>
> It identifies a feature.
>
> >
> > On Fri, Jul 1, 2016 at 5:51 PM, Simon Cozens <simon at simon-cozens.org
> > <mailto:simon at simon-cozens.org>> wrote:
> >
> > On 02/07/2016 07:34, Kelvin Ma wrote:
> > > So I think I figured out how to turn on font features, but how do
> I turn
> > > ones off that are enabled by default? Like liga or kern?
> >
> > Just set the value to 0 in the features array.
> > See
> >
> https://github.com/simoncozens/sile/blob/master/src/justenoughharfbuzz.c#L78
> >
> > Simon
> >
> >
> >
> >
> > _______________________________________________
> > HarfBuzz mailing list
> > HarfBuzz at lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/harfbuzz
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/harfbuzz/attachments/20160701/4744e423/attachment.html>
More information about the HarfBuzz
mailing list