OpenTypeFeature Structure

Represents an Open Type feature.

Namespace: Aurigma.GraphicsMill.AdvancedDrawing
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

C#
public struct OpenTypeFeature

Examples

C#
using (var bitmap = new Bitmap(200, 40, PixelFormat.Format24bppRgb, RgbColor.White))
using (var graphics = bitmap.GetAdvancedGraphics())
{
    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.OpenTypeFeatures.Add(new OpenTypeFeature(OpenTypeFeatureTag.Smcp));
    graphics.DrawText(plainText);

    bitmap.Save(@"Images\Output\DrawOpenTypeHash.png");
}

See Also

Reference