---
title: "Font..::.GetBlackBox Method (String, array&lt;Single&gt;[]()[])"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Drawing_Font_GetBlackBox_2_2909b69a.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# Font.GetBlackBox Method (String, Single[])
 
Returns a rectangle that describes the string black box.
 
**Namespace:** [Aurigma.GraphicsMill.Drawing](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Drawing.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Function GetBlackBox ( _string As String, _kernings As Single() _
) As RectangleF
```
 
```csharp
public RectangleF GetBlackBox(string string,float[] kernings
)
```
 
### Parameters
 
 - string
     - Type: [System.String](http://msdn2.microsoft.com/en-us/s1wwdcbf)
String to retrieve black box for.

 - kernings
     - Type:  [System.Single](http://msdn2.microsoft.com/en-us/3www918f) []
Array of kerning modifiers. The first entry of this array specify additional distance (may be negative) between first and second character of the string; the second entry specifies additional distance between second and third character, etc.
 
### Return Value
The rectangle that describes the string black box.
 
## Remarks
  
String black box is a tightest bounding rectangle of glyphs in cells of all characters in a string. This way you can calculate actual height of the character without any leading whitespaces.
   
## See Also

### Reference

- [Font Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Drawing_Font.htm.md)
- [GetBlackBox Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_Drawing_Font_GetBlackBox.htm.md)
- [Aurigma.GraphicsMill.Drawing Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Drawing.htm.md)
