public void AddKerning(int first, int second, int amount) { List <dfFont.GlyphKerning> glyphKernings = this.kerning; dfFont.GlyphKerning glyphKerning = new dfFont.GlyphKerning() { first = first, second = second, amount = amount }; glyphKernings.Add(glyphKerning); }
private void buildKerningMap() { Dictionary <int, dfFont.GlyphKerningList> nums = new Dictionary <int, dfFont.GlyphKerningList>(); Dictionary <int, dfFont.GlyphKerningList> nums1 = nums; this.kerningMap = nums; Dictionary <int, dfFont.GlyphKerningList> glyphKerningList = nums1; for (int i = 0; i < this.kerning.Count; i++) { dfFont.GlyphKerning item = this.kerning[i]; if (!glyphKerningList.ContainsKey(item.first)) { glyphKerningList[item.first] = new dfFont.GlyphKerningList(); } glyphKerningList[item.first].Add(item); } }
public void Add(dfFont.GlyphKerning kerning) { this.list[kerning.second] = kerning.amount; }