- Aurigma Graphics Mill 5.5 for .NET
- Introduction
- What's New?
- Overview of Features
- Getting Started
- Programming with Graphics Mill for .NET
- File Formats
- Graphics Mill for .NET Add-ons
- Class Library Reference
- Aurigma.GraphicsMill Namespace
- Aurigma.GraphicsMill.AjaxControls Namespace
- Aurigma.GraphicsMill.AjaxControls.VectorObjects Namespace
- Aurigma.GraphicsMill.AjaxControls.VectorObjects.Math Namespace
- Aurigma.GraphicsMill.AjaxControls.VectorObjects.RedoUndo Namespace
- Aurigma.GraphicsMill.Codecs Namespace
- Aurigma.GraphicsMill.Drawing Namespace
- Brush Class
- BrushType Enumeration
- Charset Enumeration
- Font Class
- GdiGraphics Class
- GdiGraphicsMode Enumeration
- HatchBrush Class
- HatchStyle Enumeration
- HorizontalAlignment Enumeration
- LineCap Enumeration
- Pen Class
- SolidBrush Class
- TextTrimmingMode Enumeration
- VerticalAlignment Enumeration
- Aurigma.GraphicsMill.Licensing Namespace
- Aurigma.GraphicsMill.Transforms Namespace
- Aurigma.GraphicsMill.WebControls Namespace
- Aurigma.GraphicsMill.WinControls Namespace
- GraphicsMill Namespace (Client Class Library)
- Aurigma.GraphicsMill.AjaxControls Namespace (Client Class Library)
- Aurigma.GraphicsMill.AjaxControls.VectorObjects Namespace (Client Class Library)
- Aurigma.GraphicsMill.AjaxControls.VectorObjects.Math Namespace (Client Class Library)
- Aurigma.GraphicsMill.AjaxControls.VectorObjects.RedoUndo Namespace (Client Class Library)
- Samples
- Licensing
- Copyright Notices
Font.GetKerning Method
Returns kerning value for given pair of characters.
Namespace:
Aurigma.GraphicsMill.Drawing
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Syntax
Return Value
Kerning value for given pair of characters.Remarks
Fonts can be divided into two groups - fixed fonts and variable fonts. All characters in the fixed fonts (e.g. Courier New) has the same width and distance between characters is always the same. Kerning for any pair of characters in such fonts is always 0. Variable fonts (e.g. Times New Roman) has more natural appearance: "narrow" letters like "i", "t", or "l" takes less space than "wide" ones, like "w", "M", or "O". Besides of that, distances between different pairs of characters varies. For example, when you draw "fi" with variable font, the distance between characters is less than when you draw "pi".
This distance between characters is called kerning. Kerning pairs are specified with font designer and even if font is variable, they may be defined not for all pairs of characters.
You can provide your own kernings when drawing text by supplying kernings argument in DrawString(String, Font, Pen, Brush, Int32, Int32, Int32[]) method.