public virtual CMapToUnicode ExportToUnicode() { CMapToUnicode uni = new CMapToUnicode(); int[] keys = map.ToOrderedKeys(); foreach (int key in keys) { uni.AddChar(map.Get(key), iText.IO.Util.TextUtil.ConvertFromUtf32(key)); } int spaceCid = Lookup(32); if (spaceCid != 0) { uni.AddChar(spaceCid, iText.IO.Util.TextUtil.ConvertFromUtf32(32)); } return(uni); }
public virtual IList <OpenTableLookup> GetLookups(FeatureRecord[] features) { IntHashtable hash = new IntHashtable(); foreach (FeatureRecord rec in features) { foreach (int idx in rec.lookups) { hash.Put(idx, 1); } } IList <OpenTableLookup> ret = new List <OpenTableLookup>(); foreach (int idx in hash.ToOrderedKeys()) { ret.Add(lookupList[idx]); } return(ret); }