Пример #1
0
        /// <summary>
        ///     Add the fonts in the font info to the PDF document.
        /// </summary>
        /// <param name="fontCreator">Object that creates PdfFont objects.</param>
        /// <param name="resources">Resources object to add fonts too.</param>
        internal void AddToResources(PdfFontCreator fontCreator, PdfResources resources)
        {
            Hashtable fonts = fontInfo.GetUsedFonts();

            foreach (string fontName in fonts.Keys)
            {
                Font font = (Font)fonts[fontName];
                resources.AddFont(fontCreator.MakeFont(fontName, font));
            }
        }