C# Itextsharp显示器<;strong>;当我将粗体应用于字体时

C# Itextsharp显示器<;strong>;当我将粗体应用于字体时,c#,itext,C#,Itext,我以这种方式使用字体: PblackBold = FontFactory.GetFont("Verdana", 12, Font.BOLD, ColorBlack); 我正在按照以下代码应用字体: if (!string.IsNullOrEmpty(GdsPage.DinamycTextXx) && !string.IsNullOrEmpty(GdsPage.DinamycTextYy)) { Pchunk = new Chunk("We recom

我以这种方式使用字体:

PblackBold = FontFactory.GetFont("Verdana", 12, Font.BOLD, ColorBlack);
我正在按照以下代码应用字体:

if (!string.IsNullOrEmpty(GdsPage.DinamycTextXx) && !string.IsNullOrEmpty(GdsPage.DinamycTextYy))
     {

        Pchunk = new Chunk("We recommend checking your blood glucose levels at least  ", Pfonts.Pblack);
        Par.Add(Pchunk);

        Pchunk = new Chunk(GdsPage.DinamycTextXx, Pfonts.PblackBold);
        Par.Add(Pchunk);

        Pchunk = new Chunk(" and up to  ", Pfonts.Pblack);
        Par.Add(Pchunk);

        Pchunk = new Chunk(GdsPage.DinamycTextYy, Pfonts.PblackBold);
        Par.Add(Pchunk);
     }
然后我在单元格中添加一段,如下所示:

RoundBorder = new GdsPdfBlocks.RoundRectangle();
     PCell = new PdfPCell();

     PCell.Border = Rectangle.NO_BORDER;
     PCell.HorizontalAlignment = Element.ALIGN_LEFT;
     PCell.VerticalAlignment = Element.ALIGN_TOP;
     PCell.PaddingTop = 0f;
     PCell.PaddingBottom = 5f;
     PCell.PaddingLeft=10f;
     PCell.PaddingRight = 10f;
     PCell.CellEvent = RoundBorder;
     PCell.AddElement(Par);

     Ptable.AddCell(PCell);
然而,我得到了这个结果

有人知道为什么呈现


为浪费你的时间道歉;我明白了;我实际上是在将
标记“再次”添加到文本字符串中。删除额外标记后,粗体字体再次正常工作。

似乎font.bold不起作用,因为其内部和外部的文本相同。我怀疑
GdsPage.dinamyctextx
将强标记作为文本返回。那里的文字到底是什么?