You are making the assumption that the font inside your PDF file knows if it's bold or not. Let's take a look inside and check if your assumption is correct.
This is what the subset JOJJAH of the font TT116t00 looks like when you look at the internals of the PDF file you have shared:
We see that the font is of subtye /TrueType
, we see that the /ItalicAngle
is 0, and... we see that the 3rd bit of the /Flags
is set. Let's check the PDF reference to find out what this tells us:
I quote:
The font contains glyphs outside the Adobe standard Latin character set.
The glyphs look bold, because the glyphs are drawn in a way that they appear bold. You see the font as bold because you are human. However, when a machine looks at the font, it doesn't have a clue that the font is bold. A machine just follows the instructions stored in the /FontFile2
stream.
In short: iTextSharp doesn't have any indications that the font is bold.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…