예제 #1
0
        protected void Add(int code, int sid)
        {
            var name = CompactFontFormatStandardStrings.GetName(sid);

            codeToNameMap[code] = name;
            Add(code, name);
        }
        private static string ReadString(int index, IReadOnlyList <string> stringIndex)
        {
            if (index >= 0 && index <= 390)
            {
                return(CompactFontFormatStandardStrings.GetName(index));
            }
            if (index - 391 < stringIndex.Count)
            {
                return(stringIndex[index - 391]);
            }

            // technically this maps to .notdef, but PDFBox uses this
            return("SID" + index);
        }