public override void EventOccurred(IEventData data, EventType type)
 {
     if (data is TextRenderInfo renderInfo)
     {
         var           oFont          = renderInfo.GetFont();
         PdfDictionary fontDescriptor = oFont.GetPdfObject().GetAsDictionary(PdfName.FontDescriptor);
         PdfNumber     number         = fontDescriptor?.GetAsNumber(PdfName.FontWeight);
         double?       weight         = number?.GetValue();