## DrawText(Font, string, double) {#drawtext_2}

Rendering text in BitMap. Return result in PNG-format as stream of bytes

```csharp
public static Stream DrawText(Font font, string text, double fontSize)
```

| Parameter | Type | Description |
| --- | --- | --- |
| font | Font | Font |
| text | String | Text |
| fontSize | Double | Font size |

### Return Value

Image in PNG format as stream of bytes

### See Also

* class [Font](../../../aspose.font/font/)
* class [RenderingUtils](../)
* namespace [Aspose.Font.Renderers](../../../aspose.font.renderers/)
* assembly [Aspose.Font](../../../)

---

## DrawText(Font, string, double, LineSpacingType, int, int) {#drawtext_3}

Rendering text in BitMap. Return result in PNG-format as stream of bytes

```csharp
public static Stream DrawText(Font font, string text, double fontSize, 
    LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth)
```

| Parameter | Type | Description |
| --- | --- | --- |
| font | Font | Font |
| text | String | Text |
| fontSize | Double | Font size |
| lineSpacingType | LineSpacingType | Type of line spacing. Number of pixels or percent of font height |
| lineSpacingValue | Int32 | Value of line spacing |
| maxWidth | Int32 | Max width in pixels for image |

### Return Value

Image in PNG format as stream of bytes

### See Also

* class [Font](../../../aspose.font/font/)
* enum [LineSpacingType](../../renderingutils.linespacingtype/)
* class [RenderingUtils](../)
* namespace [Aspose.Font.Renderers](../../../aspose.font.renderers/)
* assembly [Aspose.Font](../../../)

---

## DrawText(Font, GlyphId[], double) {#drawtext}

Rendering text in BitMap. Return result in PNG-format as stream of bytes

```csharp
public static Stream DrawText(Font font, GlyphId[] glyphIds, double fontSize)
```

| Parameter | Type | Description |
| --- | --- | --- |
| font | Font | Font |
| glyphIds | GlyphId[] | Text represented as array of glyph identifiers |
| fontSize | Double | Font size |

### Return Value

Image in PNG format as stream of bytes

### See Also

* class [Font](../../../aspose.font/font/)
* class [GlyphId](../../../aspose.font.glyphs/glyphid/)
* class [RenderingUtils](../)
* namespace [Aspose.Font.Renderers](../../../aspose.font.renderers/)
* assembly [Aspose.Font](../../../)

---

## DrawText(Font, GlyphId[], double, LineSpacingType, int, int) {#drawtext_1}

Rendering text in BitMap. Return result in PNG-format as stream of bytes

```csharp
public static Stream DrawText(Font font, GlyphId[] glyphIds, double fontSize, 
    LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth)
```

| Parameter | Type | Description |
| --- | --- | --- |
| font | Font | Font |
| glyphIds | GlyphId[] | Text represented as array of glyph identifiers |
| fontSize | Double | Font size |
| lineSpacingType | LineSpacingType | Type of line spacing. Number of pixels or percent of font height |
| lineSpacingValue | Int32 | Value of line spacing |
| maxWidth | Int32 | Max width in pixels for image |

### Return Value

Image in PNG format as stream of bytes

### See Also

* class [Font](../../../aspose.font/font/)
* class [GlyphId](../../../aspose.font.glyphs/glyphid/)
* enum [LineSpacingType](../../renderingutils.linespacingtype/)
* class [RenderingUtils](../)
* namespace [Aspose.Font.Renderers](../../../aspose.font.renderers/)
* assembly [Aspose.Font](../../../)


