# FontFamily class

Namespace: [Eto.Drawing](https://eto.picoe.ca/api/namespace/eto.drawing.md) · Assembly: [Eto](https://eto.picoe.ca/api/assembly/eto.md)

```cs
[Handler(FontFamily.IHandler)]
public class FontFamily : Widget, IEquatable<FontFamily>
```

Specifies a family for a [Font](https://eto.picoe.ca/api/type/eto.drawing.font.md) object

**Remarks:** A font family defines the overall look of the font, such as "Times New Roman", "Helvetica", etc. Each family consists of one or more [FontFamily.Typefaces](https://eto.picoe.ca/api/type/eto.drawing.fontfamily/typefaces.md), which define the variations of each font family. The variations can include Light, Bold, Italic, Oblique, etc. Only the styles in [FontStyle](https://eto.picoe.ca/api/type/eto.drawing.fontstyle.md) are discoverable, other than looking at the [FontTypeface.Name](https://eto.picoe.ca/api/type/eto.drawing.fonttypeface/name.md) for hints as to what the variation will look like.

## Constructors

- [FontFamily](https://eto.picoe.ca/api/type/eto.drawing.fontfamily/ctor.md): (2 overloads) Initializes a new instance of the FontFamily class with the specified handler

## Properties

- [LocalizedName](https://eto.picoe.ca/api/type/eto.drawing.fontfamily/localizedname.md): Gets the localized name of the font for the current UI language
- [Name](https://eto.picoe.ca/api/type/eto.drawing.fontfamily/name.md): Gets the name of this font family
- [Typefaces](https://eto.picoe.ca/api/type/eto.drawing.fontfamily/typefaces.md): Gets an enumeration of the one or more supported typefaces for this font family

## Methods

- [Equals](https://eto.picoe.ca/api/type/eto.drawing.fontfamily/equals.md): (2 overloads) Tests this instance for equality with another font family
- [FromFiles](https://eto.picoe.ca/api/type/eto.drawing.fontfamily/fromfiles.md): (2 overloads, static) Creates a new instance of the FontFamily class with the specified font files.
- [FromStreams](https://eto.picoe.ca/api/type/eto.drawing.fontfamily/fromstreams.md): (2 overloads, static) Creates a new instance of the FontFamily class with the specified font file streams.
- [GetHashCode](https://eto.picoe.ca/api/type/eto.drawing.fontfamily/gethashcode.md): Gets the hash code for this instance
- [ToString](https://eto.picoe.ca/api/type/eto.drawing.fontfamily/tostring.md): Gets a string representation of this font family

## Operators

- [operator ==](https://eto.picoe.ca/api/type/eto.drawing.fontfamily/op-equality.md): (static) Tests two FontFamily objects for equality
- [operator !=](https://eto.picoe.ca/api/type/eto.drawing.fontfamily/op-inequality.md): (static) Tests two FontFamily objects for inequality

## Inherited Members

- From [Widget](https://eto.picoe.ca/api/type/eto.widget.md): [ControlObject](https://eto.picoe.ca/api/type/eto.widget/controlobject.md), [Handler](https://eto.picoe.ca/api/type/eto.widget/handler.md), [ID](https://eto.picoe.ca/api/type/eto.widget/id.md), [IsDisposed](https://eto.picoe.ca/api/type/eto.widget/isdisposed.md), [NativeHandle](https://eto.picoe.ca/api/type/eto.widget/nativehandle.md), [Platform](https://eto.picoe.ca/api/type/eto.widget/platform.md), [Properties](https://eto.picoe.ca/api/type/eto.widget/properties.md), [Style](https://eto.picoe.ca/api/type/eto.widget/style.md), [StyleChanged](https://eto.picoe.ca/api/type/eto.widget/stylechanged.md), [Dispose](https://eto.picoe.ca/api/type/eto.widget/dispose.md), [GetCallback](https://eto.picoe.ca/api/type/eto.widget/getcallback.md), [Initialize](https://eto.picoe.ca/api/type/eto.widget/initialize.md), [OnStyleChanged](https://eto.picoe.ca/api/type/eto.widget/onstylechanged.md)
