FSPDF_TEXTSTATE Struct Reference

Structure for PDF text states. More...

#include <fpdf_pageobjects_r.h>

Public Attributes

FSCRT_FONT font
 Font object.
 
FS_FLOAT fontSize
 Font size.
 
FS_FLOAT charSpace
 Character spacing. More...
 
FS_FLOAT wordSpace
 Word spacing. It applies only to the space character, code 32. More...
 
FS_INT32 textMode
 Text mode. More...
 
FS_FLOAT x
 X-coordinate of origin in PDF "user space".
 
FS_FLOAT y
 Y-coordinate of origin in PDF "user space".
 
FS_FLOAT textMatrix [4]
 Text transformation matrix.
 
FS_FLOAT textLeading
 Text leading. Not support yet, and it should be 0.
 

Detailed Description

Structure for PDF text states.

Member Data Documentation

FS_FLOAT FSPDF_TEXTSTATE::charSpace

Character spacing.

For horizontal writing, a positive value has the effect of expanding the distance between glyphs, whereas for vertical writing, a negative value has this effect.

FS_INT32 FSPDF_TEXTSTATE::textMode

Text mode.

Please refer to macro definitions FSPDF_TEXTMODE_XXX and this should be one of these macros.

Note
After calling function FSPDF_PageObjects_GenerateContents, if textMode value is larger than 3, (textMode - 4) will be used instead.
FS_FLOAT FSPDF_TEXTSTATE::wordSpace

Word spacing. It applies only to the space character, code 32.

For horizontal writing, a positive value has the effect of increasing the spacing between words. For vertical writing, a positive value decreases the spacing between words (and a negative value increases it), since vertical coordinates increase from bottom to top.

Note
It will not take effect if the font is embedded font.

The documentation for this struct was generated from the following file:

Foxit Corporation