IText7 htmlpdf why don't I see Cyrillic?

All of health. There is a need to work with iText, convert a table from a html document into pdf. The basis is the example from the developers, in General, everything is OK, but Cyrillic stubbornly not displayed on the page. Html lang ="ru" charset="utf-8", in SetLang(new PdfString("EN-us")) by default stood en-US, the description says the language and locale, but does not take off. I would be grateful for help.
using System.IO;
using iText.Html2pdf;
using iText.Html2pdf.Attach.Impl;
using iText.IO.Font;
using iText.Kernel.Font;
using iText.Kernel.Pdf;
using iText.Layout.Font;
using iText.Samples.Sandbox.Pdfhtml;

namespace iText.Samples.Sandbox.Pdfhtml
{
 public class CreateAccessiblePDF
{
 public static readonly string SRC = @"C:\Templates\";
 public static readonly string DEST = @"C:\Templates\result.pdf";

 public static void Main(string[] args)
{
 FileInfo file = new FileInfo(DEST);
file.Directory.Create();
 string htmlSource = SRC + "1.html";

 new CreateAccessiblePDF().ManipulatePdf(htmlSource, DEST);
}

 public void ManipulatePdf(string src, string dest)
{
 WriterProperties writerProperties = new WriterProperties();
writerProperties.AddXmpMetadata();
 PdfWriter pdfWriter = new PdfWriter(dest, writerProperties);
 PdfDocument pdfDoc = new PdfDocument(pdfWriter);
 pdfDoc.GetCatalog().SetLang(new PdfString("EN-us"));
pdfDoc.SetTagged();
 pdfDoc.GetCatalog().SetViewerPreferences(new PdfViewerPreferences().SetDisplayDocTitle(true));
 ConverterProperties props = new ConverterProperties();
 FontProvider fontProvider = new FontProvider();
fontProvider.AddStandardPdfFonts();
fontProvider.AddDirectory(SRC);
props.SetFontProvider(fontProvider);
props.SetBaseUri(SRC);
 HtmlConverter.ConvertToPdf(new FileStream(src, FileMode.Open) pdfDoc, props);

 pdfDoc.Close();
April 19th 20 at 12:09
1 answer
April 19th 20 at 12:11
Solution
Instead of:
fontProvider.AddStandardPdfFonts();
Said:
fontProvider.AddFont(FONT_FILENAME, PdfEncodings.IDENTITY_H);

Topic closed

Find more questions by tags iTextC#Unicode