---
title: "OpenTypeFeature Structure"
canonical: https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_OpenTypeFeature.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"
---

# OpenTypeFeature Structure

**Applies to:** Graphics Mill 12.1, 6.x-12.x (may differ)
 
Represents an Open Type feature.
 
**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 struct OpenTypeFeature
```
 
## Examples
  
```csharp
using (var bitmap = new Bitmap(200, 40, PixelFormat.Format24bppRgb, RgbColor.White))
using (var graphics = bitmap.GetGraphics())
{
    var plainText = new PlainText("OpenType Small Caps", FontRegistry.Installed.CreateFont("Lyon Text", "Regular", 18, graphics.DpiX, graphics.DpiX),
                                  new System.Drawing.PointF(10, 25));

    plainText.CharStyle.OpenTypeFeatures.Add(new OpenTypeFeature(OpenTypeFeatureTag.Smcp));
    graphics.DrawText(plainText);

    bitmap.Save(@"Images\Output\DrawOpenTypeHash.png");
}
```
   
## See Also

### Reference

- [OpenTypeFeature Members](https://www.graphicsmill.com/docs/gm/AllMembers_T_Aurigma_GraphicsMill_Drawing_OpenTypeFeature.htm.md)
- [Aurigma.GraphicsMill.Drawing Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Drawing.htm.md)
