Q: I had seen another article in your forum about PDF format not
simulating/synthesizing font styles and the suggestion regarding font
stroke. However, there was a caveat in the suggestion for stroking
saying there might be some sort of distortions based on the size.
Since I must conform to Marketing requirements, I am required to
produce the document with the exact font so I kept attemtpting to get
the right font to work.
I had looked on my system and did not see the bold font, but thought I
was ok because I thought I had read somewhere that a basic font file
contained four styles: Normal, Italic, Bold, and one other that I
cannot remember right now. So I was under the impression that my
calls to the System.Drawing namespace wold produce the correct font
data structure, because I was thinking that setting the style was
pulling the right portion out of the font file:
string fontFace = "Franklin Gothic Book"; System.Drawing.FontFamily
fontFamily = new System.Drawing.FontFamily(fontFace);
System.Drawing.Font fontBold = new System.Drawing.Font(fontFamily, 14,
System.Drawing.FontStyle.Bold); pdftron.PDF.Font tronFontBold =
Font.CreateCIDTrueTypeFont(doc, fontBold, true,
true);
Obvously this is not working, but your email caused me to look at the
fonts again, and I did see an Italic version. So I plugged Italic
into the code for a quik test like this:
string fontFace = "Franklin Gothic Book"; System.Drawing.FontFamily
fontFamily = new System.Drawing.FontFamily(fontFace);
System.Drawing.Font fontBold = new System.Drawing.Font(fontFamily, 14,
System.Drawing.FontStyle.Italic); pdftron.PDF.Font tronFontBold =
Font.CreateCIDTrueTypeFont(doc, fontBold, true, true);
And it did effect the output with italic and gave me this in the PDF
File:
/BaseFont /CGWTLL+FranklinGothic-BookItalic/
So, I need someone to dig up a Frankling Gothic Bold TTF file for me.
------
A: Yes, in case you need to preserve the exact look and feel of the
font you would need to obtain the bold version of this font.