From: Grigori Goronzy Date: Wed, 29 Jan 2014 04:23:55 +0000 (+0100) Subject: shaper: use global features correctly X-Git-Tag: 0.11.0~16^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8adee493913fbf21c285f15717270757e87b4779;p=libass shaper: use global features correctly start/end of feature tags is unsigned, so use the proper constant to signal to HarfBuzz that these features are global. This allows HarfBuzz to cache shape plans, and that can considerably speed up shaping, especially if many small runs need to be shaped. --- diff --git a/libass/ass_shaper.c b/libass/ass_shaper.c index 0e81824..8f12291 100644 --- a/libass/ass_shaper.c +++ b/libass/ass_shaper.c @@ -140,15 +140,15 @@ static void init_features(ASS_Shaper *shaper) shaper->n_features = NUM_FEATURES; shaper->features[VERT].tag = HB_TAG('v', 'e', 'r', 't'); - shaper->features[VERT].end = INT_MAX; + shaper->features[VERT].end = UINT_MAX; shaper->features[VKNA].tag = HB_TAG('v', 'k', 'n', 'a'); - shaper->features[VKNA].end = INT_MAX; + shaper->features[VKNA].end = UINT_MAX; shaper->features[KERN].tag = HB_TAG('k', 'e', 'r', 'n'); - shaper->features[KERN].end = INT_MAX; + shaper->features[KERN].end = UINT_MAX; shaper->features[LIGA].tag = HB_TAG('l', 'i', 'g', 'a'); - shaper->features[LIGA].end = INT_MAX; + shaper->features[LIGA].end = UINT_MAX; shaper->features[CLIG].tag = HB_TAG('c', 'l', 'i', 'g'); - shaper->features[CLIG].end = INT_MAX; + shaper->features[CLIG].end = UINT_MAX; } /**