GlyphTypeface Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the GlyphTypeface class.
Overloads
GlyphTypeface() |
Initializes a new instance of the GlyphTypeface class. |
GlyphTypeface(Uri) |
Initializes a new instance of the GlyphTypeface class using the specified font file location. |
GlyphTypeface(Uri, StyleSimulations) |
Initializes a new instance of the GlyphTypeface class using the specified font file location and StyleSimulations value. |
GlyphTypeface()
Initializes a new instance of the GlyphTypeface class.
public:
GlyphTypeface();
public GlyphTypeface ();
Public Sub New ()
Applies to
GlyphTypeface(Uri)
Initializes a new instance of the GlyphTypeface class using the specified font file location.
public:
GlyphTypeface(Uri ^ typefaceSource);
public GlyphTypeface (Uri typefaceSource);
new System.Windows.Media.GlyphTypeface : Uri -> System.Windows.Media.GlyphTypeface
Public Sub New (typefaceSource As Uri)
Parameters
- typefaceSource
- Uri
The URI that specifies the location of the font file.
Examples
The following example shows how to create a new instance of the GlyphTypeface class by specifying a font file location.
// Create a glyph typeface by referencing the Kootenay OpenType font.
GlyphTypeface glyphTypeface = new GlyphTypeface(new Uri("file:///C:\\WINDOWS\\Fonts\\Kooten.ttf"));
' Create a glyph typeface by referencing the Kootenay OpenType font.
Dim glyphTypeface As New GlyphTypeface(New Uri("file:///C:\WINDOWS\Fonts\Kooten.ttf"))
Remarks
This constructor creates a new GlyphTypeface object from an OpenType font face specified by typefaceSource
. The constructed GlyphTypeface object does not use style simulations.
Applies to
GlyphTypeface(Uri, StyleSimulations)
Initializes a new instance of the GlyphTypeface class using the specified font file location and StyleSimulations value.
public:
GlyphTypeface(Uri ^ typefaceSource, System::Windows::Media::StyleSimulations styleSimulations);
[System.Security.SecurityCritical]
public GlyphTypeface (Uri typefaceSource, System.Windows.Media.StyleSimulations styleSimulations);
public GlyphTypeface (Uri typefaceSource, System.Windows.Media.StyleSimulations styleSimulations);
[<System.Security.SecurityCritical>]
new System.Windows.Media.GlyphTypeface : Uri * System.Windows.Media.StyleSimulations -> System.Windows.Media.GlyphTypeface
new System.Windows.Media.GlyphTypeface : Uri * System.Windows.Media.StyleSimulations -> System.Windows.Media.GlyphTypeface
Public Sub New (typefaceSource As Uri, styleSimulations As StyleSimulations)
Parameters
- typefaceSource
- Uri
The URI that specifies the location of the font file.
- styleSimulations
- StyleSimulations
One of the StyleSimulations values.
- Attributes
Remarks
This constructor creates a new GlyphTypeface object from an OpenType font face specified by typefaceSource
and styleSimulations
.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기