// Token: 0x060040C4 RID: 16580 RVA: 0x000ECED0 File Offset: 0x000EB0D0 public int GetKerning(char previousChar, char currentChar) { int result; try { if (this.kerningMap == null) { this.buildKerningMap(); } global::dfFont.GlyphKerningList glyphKerningList = null; if (!this.kerningMap.TryGetValue((int)previousChar, out glyphKerningList)) { result = 0; } else { result = glyphKerningList.GetKerning((int)previousChar, (int)currentChar); } } finally { } return(result); }
// Token: 0x060040C5 RID: 16581 RVA: 0x000ECF3C File Offset: 0x000EB13C private void buildKerningMap() { Dictionary <int, global::dfFont.GlyphKerningList> dictionary = this.kerningMap = new Dictionary <int, global::dfFont.GlyphKerningList>(); for (int i = 0; i < this.kerning.Count; i++) { global::dfFont.GlyphKerning glyphKerning = this.kerning[i]; if (!dictionary.ContainsKey(glyphKerning.first)) { dictionary[glyphKerning.first] = new global::dfFont.GlyphKerningList(); } global::dfFont.GlyphKerningList glyphKerningList = dictionary[glyphKerning.first]; glyphKerningList.Add(glyphKerning); } }