FontFamily Constructor (String^)
Initializes a new instance of the FontFamily class from the specified font family name.
Assembly: PresentationCore (in PresentationCore.dll)
Parameters
- familyName
-
Type:
System::String^
The family name or names that comprise the new FontFamily. Multiple family names should be separated by commas.
| Exception | Condition |
|---|---|
| ArgumentNullException | familyName cannot be null. |
Each family name that is specified in the familyName parameter can be preceded by a location reference to either a directory or a uniform resource identifier (URI). The location reference is separated from the family name by a pound (#) character. Multiple family names that are specified in the familyName parameter must be separated by commas.
Each family can be a real font that directly represents a set of font files that share the same family name, or can be a reference to a family name that is defined in a composite font file.
When multiple families are identified, the second and subsequent font families serve as fallback families, handling code points that are not supported by the first font family. For every code point that is not supported by the first font family, each subsequent family is checked in turn.
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0