コード例 #1
0
        protected void Add(int code, int sid)
        {
            var name = CompactFontFormatStandardStrings.GetName(sid);

            codeToNameMap[code] = name;
            Add(code, name);
        }
コード例 #2
0
        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);
        }