[HarfBuzz] hb_feature_t special values

Konstantin Ritt ritt.ks at gmail.com
Tue Dec 17 00:13:25 PST 2013


Hi Behdad,

Since the common case of initializing hb_feature_t is something like

{ HB_TAG('k','e','r','n'), !!kerningEnabled, 0, -1 }

, where "0, -1" means "the entire segment" and start/end fields are of
unsigned int type,
it probably worth of introducing some special constant/enum to avoid
compilation warnings and to improve the code readability a bit;

i.e. EntireSegment = (unsigned int)-1 // ### some better name needed


Regards,
Konstantin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/harfbuzz/attachments/20131217/408d2495/attachment.html>


More information about the HarfBuzz mailing list