XFINIUM.PDF Documentation
GetGlyphEmWidth Method



Xfinium.Pdf.Graphics Namespace > PdfTrueTypeFont Class : GetGlyphEmWidth Method
the index of the glyph to get its width
Gets the Em width of the given glyph when drawn with this font object.
Syntax
'Declaration
 
Public Function GetGlyphEmWidth( _
   ByVal glyph As Integer _
) As Integer
'Usage
 
Dim instance As PdfTrueTypeFont
Dim glyph As Integer
Dim value As Integer
 
value = instance.GetGlyphEmWidth(glyph)
public int GetGlyphEmWidth( 
   int glyph
)
public:
int GetGlyphEmWidth( 
   int glyph
) 

Parameters

glyph
the index of the glyph to get its width

Return Value

The width of the glyph in Em units.
Remarks
To scale this value to font's current size, divide it by 2048 and multiply it by font size. For example, if font size is 20pt, then the width, in points, of a character for this font is 20 * GetGlyphEmWidth(glyph) / 2048.
Requirements

Supported .NET Platforms: .NET 4.0 and higher, Windows Forms, ASP.NET, Windows Presentation Foundation 4.x, Silverlight 5, WinRT, Universal Windows Platform, Xamarin Mac, iOS & Android, Portable Class Library, .NET Core, .NET Standard


Target Platforms:Windows 10, Windows 8.1, Windows 8 , Windows 7, Windows Vista SP1 or later, Windows Server 2008, Windows Server 2008 R2

See Also

Reference

PdfTrueTypeFont Class
PdfTrueTypeFont Members