Frequently Asked Question:
Problem Setting FontFlags
Help, please. I want to set Small Caps flag, but nothing heppens when draw Text. My, code:
QP.SetTextAlign(1);
int TimesNewRoman = QP.AddStandardFont(8);
QP.SelectFont(TimesNewRoman);
QP.SetFontFlags(0, 0, 0, 0, 0, 0, 1, 0);
QP.SetTextSize(5.7);
QP.SetTextSpacing(0);
QP.SetTextColorCMYK(0.04, 0.02, 1, 0);
QP.DrawText(10, 10, "Hello");
Function SetFontFlags completly don't want work. Any flag.
The SetFontFlags function cannot be used in the way that you're trying to use it and is really only for advanced use. Font flags are only used to help the PDF viewer find a matching font in the event that the specified font cannot be found.
As for what you're trying to do with small caps, there isn't really any way with PDF to automatically have a small caps effect from a normal font. If you want to use small caps, then you will need to add a small caps font.