ImageTextMeasurer Class
Measures the texts of a chart with the fonts of Meziantou.Framework.Imaging: the widths are the ones TextLayout draws.
public sealed class ImageTextMeasurer : ITextMeasurer- Implements
Constructors
| Name | Description |
|---|---|
| ImageTextMeasurer(Font, Font?) | Initializes a new instance of the ImageTextMeasurer class. |
ImageTextMeasurer(Font, Font?)
ImageTextMeasurer.csInitializes a new instance of the ImageTextMeasurer class.
Properties
| Name | Description |
|---|---|
| FontFamily | Gets the family name of the regular font. |
FontFamily
ImageTextMeasurer.csMethods
| Name | Description |
|---|---|
| Measure(string, ChartFont) | Measures a line of text. |
Measure(string, ChartFont)
ImageTextMeasurer.csMeasures a line of text.
public TextMetrics Measure(string text, ChartFont font)