Class FontFamily
Defines a group of type faces having a similar basic design and certain variations in styles. This class cannot be inherited.
Implements
Inherited Members
Namespace: SixLabors.Fonts
Assembly: SixLabors.Fonts.dll
Syntax
public sealed class FontFamily : IEquatable<FontFamily>
Properties
| Improve this Doc View SourceAvailableStyles
Gets the available FontStyle that are currently available.
Declaration
public IEnumerable<FontStyle> AvailableStyles { get; }
Property Value
Type | Description |
---|---|
IEnumerable<FontStyle> | The available styles. |
Culture
Gets the culture this FontFamily was created against.
Declaration
public CultureInfo Culture { get; }
Property Value
Type | Description |
---|---|
CultureInfo | The name. |
Name
Gets the name of the FontFamily.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
String | The name. |
Methods
| Improve this Doc View SourceEquals(FontFamily)
Declaration
public bool Equals(FontFamily other)
Parameters
Type | Name | Description |
---|---|---|
FontFamily | other |
Returns
Type | Description |
---|---|
Boolean |
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj |
Returns
Type | Description |
---|---|
Boolean |
Overrides
| Improve this Doc View SourceGetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
Overrides
| Improve this Doc View SourceIsStyleAvailable(FontStyle)
Determines whether the specified FontStyle is available.
Declaration
public bool IsStyleAvailable(FontStyle style)
Parameters
Type | Name | Description |
---|---|---|
FontStyle | style | The style. |
Returns
Type | Description |
---|---|
Boolean |
|
ToString()
Returns a String that represents this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | A String that represents this instance. |
Overrides
Operators
| Improve this Doc View SourceEquality(FontFamily, FontFamily)
Compares two FontFamily objects for equality.
Declaration
public static bool operator ==(FontFamily left, FontFamily right)
Parameters
Type | Name | Description |
---|---|---|
FontFamily | left | The FontFamily on the left side of the operand. |
FontFamily | right | The FontFamily on the right side of the operand. |
Returns
Type | Description |
---|---|
Boolean | true if the current left is equal to the |
Inequality(FontFamily, FontFamily)
Compares two FontFamily objects for inequality.
Declaration
public static bool operator !=(FontFamily left, FontFamily right)
Parameters
Type | Name | Description |
---|---|---|
FontFamily | left | The FontFamily on the left side of the operand. |
FontFamily | right | The FontFamily on the right side of the operand. |
Returns
Type | Description |
---|---|
Boolean | true if the current left is unequal to the |