private bool TryGetPrivateDictionaryForCharacter(string characterName, out CompactFontFormatPrivateDictionary dictionary) { dictionary = null; var glyphId = Charset.GetGlyphIdByName(characterName); var fd = FdSelect.GetFontDictionaryIndex(glyphId); if (fd == -1) { return(false); } dictionary = PrivateDictionaries[fd]; return(true); }