+2006-02-09 Patrick Lam <plam@mit.edu>
+ * src/fccharset.c (FcCharSetNeededBytes, FcCharSetSerialize,
+ FcCharSetGetLeaf):
+
+ Fix problem with missing 'en' due to euro.patch: change
+ cache file format slightly to coincide with that generated
+ by fc-lang.
+
2006-02-07 Patrick Lam <plam@mit.edu>
* src/fccache.c (FcCacheReadDirs):
{
/* yes, there's redundancy */
charset_count++;
- charset_leaf_idx_count++;
+ charset_leaf_idx_count += c->num;
charset_leaf_count += c->num;
charset_numbers_count += c->num;
return sizeof (FcCharSet) +
- sizeof (int) + /* leaf_idx */
+ sizeof (int) * c->num + /* leaf_idx */
sizeof (FcCharLeaf) * c->num + /* leaf */
sizeof (FcChar16) * c->num; /* number */
}
charsets[bi][charset_ptr++] = new;
- leaf_idx[bi][charset_leaf_idx_ptr++] = charset_leaf_ptr;
for (i = 0; i < c->num; i++)
{
+ leaf_idx[bi][charset_leaf_idx_ptr++] = charset_leaf_ptr;
memcpy (&leaves[bi][charset_leaf_ptr++],
c->u.dyn.leaves[i], sizeof(FcCharLeaf));
numbers[bi][charset_numbers_ptr++] = c->u.dyn.numbers[i];
return c->u.dyn.leaves[i];
bi = FcCacheBankToIndex(c->bank);
- return &leaves[bi][leaf_idx[bi][c->u.stat.leafidx_offset]+i];
+ return &leaves[bi][leaf_idx[bi][c->u.stat.leafidx_offset+i]];
}
FcChar16 *