---
title: "PathText Constructor (String, Font, Brush, Path)"
canonical: https://www.graphicsmill.com/docs/gm/C_Aurigma_GraphicsMill_Drawing_PathText_ctor_4_8383b59a.htm
archived: false
applies_to:
  - product: "Graphics Mill"
    versions: ["12.1", "6.x-12.x (may differ)"]
    entity_id: "https://www.graphicsmill.com/#software-application"
---

# PathText Constructor (String, Font, Brush, Path)

**Applies to:** Graphics Mill 12.1, 6.x-12.x (may differ)
 
Initializes a new instance of the [PathText](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_PathText.htm.md) class with the specified settings.
 
**Namespace:** [Aurigma.GraphicsMill.Drawing](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Drawing.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```csharp
public PathText(string text,Font font,Brush brush,Path path
)
```
 
### Parameters
 
 - text
     - Type: System.String
A string to draw.

 - font
     - Type: [Aurigma.GraphicsMill.Drawing.Font](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_Font.htm.md)
Defines the font characteristics of the text.

 - brush
     - Type: [Aurigma.GraphicsMill.Drawing.Brush](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_Brush.htm.md)
 [SolidBrush](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_SolidBrush.htm.md) determining the color of the drawn text.

 - path
     - Type: [Aurigma.GraphicsMill.Drawing.Path](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_Path.htm.md)
 [Path](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Drawing_PathText_Path.htm.md) specifying the curve along which the the text locates.
 
## Examples
  
```csharp
using (var bitmap = new Bitmap(200, 80, PixelFormat.Format24bppRgb, RgbColor.White))
using (var graphics = bitmap.GetGraphics())
using (var path = new Path())
{
    path.MoveTo(10, 60);
    path.CurveTo(85, 20, 175, 60);
    var distortedText = new PathText("Distorted Text", graphics.CreateFont("Arial", 28), new SolidBrush(RgbColor.Black), path);
    graphics.DrawText(distortedText);
    bitmap.Save(@"Images\Output\out.png");
}
```
   
## See Also

### Reference

- [PathText Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_PathText.htm.md)
- [PathText Overload](https://www.graphicsmill.com/docs/gm/O_T_Aurigma_GraphicsMill_Drawing_PathText_ctor.htm.md)
- [Aurigma.GraphicsMill.Drawing Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Drawing.htm.md)
