Method GetCharacterWidths
- Namespace
- BitMiracle.Docotic.Pdf
- Assembly
- BitMiracle.Docotic.Pdf.dll
GetCharacterWidths()
Gets the character widths for a text string to draw.
public ICollection<double>? GetCharacterWidths()
Returns
- ICollection<double>
The collection of character widths for a text string to draw. Can be
null
.
Remarks
When this method returns null
, text string will be drawn using character widths
from the Font.
When this method returns not null
, this collection must contain the same number
of items as the number of characters in the text to draw. After drawing of each character
in the string, DrawString methods look up
a width in this collection and applies extra displacement if needed.