public override bool Equals(object obj) { PdfFontInfo.FontKey fontKey = obj as PdfFontInfo.FontKey; if (fontKey == null || !(this.string_0 == fontKey.string_0) || !(this.string_1 == fontKey.string_1)) { return(false); } return(this.string_2 == fontKey.string_2); }
public string FontLookup(PdfFontInfo.FontKey key) { string index; if (!this.idictionary_1.TryGetValue(key, out index) && !this.idictionary_1.TryGetValue(new PdfFontInfo.FontKey("any", key.Style, key.Weight), out index) && !this.idictionary_1.TryGetValue(PdfFontInfo.fontKey_0, out index)) { throw new SystemException("no default font defined by OutputConverter"); } this.idictionary_0[index] = this.idictionary_2[index]; return(index); }