pdfGetWordFontIsFixedWidth

Get the "fixed width" font flag for a word.
int pdfGetWordFontIsFixedWidth(PDFWordHandle word)
This function returns the "fixed width" flag for the font used by a word (whose handle was obtained with pdfGetWord). A non-zero value indicates a fixed-width font.

The font parameters (bold, italic, fixed width, serif, symbolic) come from the "font descriptor" object attached to the font in the PDF file. Depending on the software that generated the PDF file, these values may or may not be particularly reliable.

C:
PDFWordHandle word; char *fontName; double fontSize; int bold, italic, fixedWidth, serif, symbolic; double r, g, b; double xMin, yMin, xMax, yMax; int space, rot; pdfBuildWordList(pdf, 1); for (i = 0; i < pdfGetNumWords(pdf); ++i) { word = pdfGetWord(pdf, i); fontName = pdfGetWordFontName(word); fontSize = pdfGetWordFontSize(word); bold = pdfGetWordFontIsBold(word); italic = pdfGetWordFontIsItalic(word); fixedWidth = pdfGetWordFontIsFixedWidth(word); serif = pdfGetWordFontIsSerif(word); symbolic = pdfGetWordFontIsSymbolic(word); pdfGetWordColor(word, &r, &g, &b); pdfGetWordBox(word, &xMin, &yMin, &xMax, &yMax); space = pdfGetWordSpaceAfter(word); rot = pdfGetWordRotation(word); ... }
pdfBuildWordList
pdfGetNumWords
pdfGetWord
pdfGetWordText
pdfGetWordLength
pdfGetWordFontName
pdfGetWordColor
pdfGetWordBox
pdfGetWordBox2
pdfGetWordCharBox
pdfGetWordCharBox2
pdfGetWordSpaceAfter
pdfGetWordFontSize
pdfGetWordFontIsSerif
pdfGetWordFontIsSymbolic
pdfGetWordFontIsItalic
pdfGetWordFontIsBold
pdfGetWordRotation
pdfGetWordCharPos
pdfGetWordCharLen