2.9.31 CFitTextOperand

The CFitTextOperand structure is an operand that is used by sprmCFitText to specify how text runs are formatted to fit a particular width.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

cb

dxaFitText

...

FitTextID

...

cb (1 byte):  The number of bytes that this operand occupies. This value MUST be 0x08.

dxaFitText (4 bytes): A 32-bit signed integer value that specifies, in twips, the size of the space in which to fit the text. Text that would occupy a smaller width than specified has space added between characters. Text that would occupy a greater width than specified is compressed proportionally. A value of zero specifies that the Sprm is ignored. A value representing a width that is too large for the text run is also ignored. A negative value or a value representing a width that is too small for the text run specifies the minimum width.

FitTextID (4 bytes): A 32-bit signed integer that uniquely identifies a fit text region across multiple character runs and instances of sprmCFitText. Contiguous character runs that share a common FitTextID are part of the same fit text region. If the runs are not contiguous, the FitTextID is ignored and they are not linked.