---
title: "PsDocument.FillText"
url: "https://reference.aspose.com/page/net/aspose.page.eps/psdocument/filltext/"
product: "Aspose.Page for .NET API Reference"
description: "PsDocument method. Adds a text string by filling interrior of glyphs"
---

## FillText(string, Font, float, float) {#filltext_6}

Adds a text string by filling interrior of glyphs.

```csharp
public void FillText(string text, Font font, float x, float y)
```

| Parameter | Type | Description |
| --- | --- | --- |
| text | String | The text to add. |
| font | Font | System font that will be used to draw text. |
| x | Single | X coordinate for text origin. |
| y | Single | Y coordinate for text origin. |

### See Also

* class [PsDocument](../)
* namespace [Aspose.Page.EPS](../../psdocument/)
* assembly [Aspose.Page](../../../)

---

## FillText(string, float[], Font, float, float) {#filltext_4}

Adds a text string by filling interrior of glyphs.

```csharp
public void FillText(string text, float[] advances, Font font, float x, float y)
```

| Parameter | Type | Description |
| --- | --- | --- |
| text | String | The text to add. |
| advances | Single[] | An array of glyphs width. It's length must comply with the number of glyphs in the string. |
| font | Font | The font that will be used to draw text. |
| x | Single | X coordinate for text origin. |
| y | Single | Y coordinate for text origin. |

### See Also

* class [PsDocument](../)
* namespace [Aspose.Page.EPS](../../psdocument/)
* assembly [Aspose.Page](../../../)

---

## FillText(string, DrFont, float, float) {#filltext}

Adds a text string by filling interrior of glyphs.

```csharp
public void FillText(string text, DrFont drFont, float x, float y)
```

| Parameter | Type | Description |
| --- | --- | --- |
| text | String | The text to add. |
| drFont | DrFont | DrFont that will be used to draw text. It can be used with custom font that is located in custom folder. |
| x | Single | X coordinate for text origin. |
| y | Single | Y coordinate for text origin. |

### See Also

* class [DrFont](../../../aspose.page.font/drfont/)
* class [PsDocument](../)
* namespace [Aspose.Page.EPS](../../psdocument/)
* assembly [Aspose.Page](../../../)

---

## FillText(string, float[], DrFont, float, float) {#filltext_2}

Adds a text string by filling interrior of glyphs.

```csharp
public void FillText(string text, float[] advances, DrFont drFont, float x, float y)
```

| Parameter | Type | Description |
| --- | --- | --- |
| text | String | The text to add. |
| advances | Single[] | An array of glyphs width. It's length must comply with the number of glyphs in the string. |
| drFont | DrFont | DrFont that will be used to draw text. It can be used with custom font that is located in custom folder. |
| x | Single | X coordinate for text origin. |
| y | Single | Y coordinate for text origin. |

### See Also

* class [DrFont](../../../aspose.page.font/drfont/)
* class [PsDocument](../)
* namespace [Aspose.Page.EPS](../../psdocument/)
* assembly [Aspose.Page](../../../)

---

## FillText(string, Font, float, float, Brush) {#filltext_7}

Adds a text string by filling interrior of glyphs.

```csharp
public void FillText(string text, Font font, float x, float y, Brush fill)
```

| Parameter | Type | Description |
| --- | --- | --- |
| text | String | The text to add. |
| font | Font | System font that will be used to draw text. |
| x | Single | X coordinate for text origin. |
| y | Single | Y coordinate for text origin. |
| fill | Brush | The fill used for painting glyphs. |

### See Also

* class [PsDocument](../)
* namespace [Aspose.Page.EPS](../../psdocument/)
* assembly [Aspose.Page](../../../)

---

## FillText(string, float[], Font, float, float, Brush) {#filltext_5}

Adds a text string by filling interrior of glyphs.

```csharp
public void FillText(string text, float[] advances, Font font, float x, float y, Brush fill)
```

| Parameter | Type | Description |
| --- | --- | --- |
| text | String | The text to add. |
| advances | Single[] | An array of glyphs width. It's length must comply with the number of glyphs in the string. |
| font | Font | System font that will be used to draw text. |
| x | Single | X coordinate for text origin. |
| y | Single | Y coordinate for text origin. |
| fill | Brush | The fill used for painting glyphs. |

### See Also

* class [PsDocument](../)
* namespace [Aspose.Page.EPS](../../psdocument/)
* assembly [Aspose.Page](../../../)

---

## FillText(string, DrFont, float, float, Brush) {#filltext_1}

Adds a text string by filling interrior of glyphs.

```csharp
public void FillText(string text, DrFont drFont, float x, float y, Brush fill)
```

| Parameter | Type | Description |
| --- | --- | --- |
| text | String | The text to add. |
| drFont | DrFont | DrFont that will be used to draw text. It can be used with custom font that is located in custom folder. |
| x | Single | X coordinate for text origin. |
| y | Single | Y coordinate for text origin. |
| fill | Brush | The fill used for painting glyphs. |

### See Also

* class [DrFont](../../../aspose.page.font/drfont/)
* class [PsDocument](../)
* namespace [Aspose.Page.EPS](../../psdocument/)
* assembly [Aspose.Page](../../../)

---

## FillText(string, float[], DrFont, float, float, Brush) {#filltext_3}

Adds a text string by filling interrior of glyphs.

```csharp
public void FillText(string text, float[] advances, DrFont drFont, float x, float y, Brush fill)
```

| Parameter | Type | Description |
| --- | --- | --- |
| text | String | The text to add. |
| advances | Single[] | An array of glyphs width. It's length must comply with the number of glyphs in the string. |
| drFont | DrFont | DrFont that will be used to draw text. It can be used with custom font that is located in custom folder. |
| x | Single | X coordinate for text origin. |
| y | Single | Y coordinate for text origin. |
| fill | Brush | The fill used for painting glyphs. |

### See Also

* class [DrFont](../../../aspose.page.font/drfont/)
* class [PsDocument](../)
* namespace [Aspose.Page.EPS](../../psdocument/)
* assembly [Aspose.Page](../../../)


