# OsFonts class

Namespace: [Grasshopper2.Eto.Drawing](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.eto.drawing.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public static class OsFonts
```

The fonts the operating system uses for its own interface, for Grasshopper to draw with.

**Remarks:** This mirrors `SystemFonts`, but every call constructs a font of its own rather than handing out one from the platform-wide cache `SystemFonts` keeps. Grasshopper needs its own instance so that it can ask to be measured independently of the resolution, see `TextRendering.ResolutionIndependentStyle` - styling a cached font would change how the rest of Rhino measures and renders text as well. Use `SystemFonts` directly for a font that will be handed to an Eto control, which the OS renders and which wants the metrics the rest of the Rhino UI is measured with.

## Methods

- [Bold](https://developer.rhino3d.com/api/gh2/type/grasshopper2.eto.drawing.osfonts/bold.md): (static) The OS default font in bold.
- [Default](https://developer.rhino3d.com/api/gh2/type/grasshopper2.eto.drawing.osfonts/default.md): (static) The OS default font.
- [Get](https://developer.rhino3d.com/api/gh2/type/grasshopper2.eto.drawing.osfonts/get.md): (static) Get one of the OS interface fonts as a font of our own.
- [Label](https://developer.rhino3d.com/api/gh2/type/grasshopper2.eto.drawing.osfonts/label.md): (static) The OS font for labels.
- [Menu](https://developer.rhino3d.com/api/gh2/type/grasshopper2.eto.drawing.osfonts/menu.md): (static) The OS font for menu items.
- [MenuBar](https://developer.rhino3d.com/api/gh2/type/grasshopper2.eto.drawing.osfonts/menubar.md): (static) The OS font for the menu bar.
- [Message](https://developer.rhino3d.com/api/gh2/type/grasshopper2.eto.drawing.osfonts/message.md): (static) The OS font for message boxes.
- [Palette](https://developer.rhino3d.com/api/gh2/type/grasshopper2.eto.drawing.osfonts/palette.md): (static) The OS font for palette window title bars.
- [StatusBar](https://developer.rhino3d.com/api/gh2/type/grasshopper2.eto.drawing.osfonts/statusbar.md): (static) The OS font for status bars.
- [TitleBar](https://developer.rhino3d.com/api/gh2/type/grasshopper2.eto.drawing.osfonts/titlebar.md): (static) The OS font for window title bars.
- [ToolTip](https://developer.rhino3d.com/api/gh2/type/grasshopper2.eto.drawing.osfonts/tooltip.md): (static) The OS font for tool tips.
- [User](https://developer.rhino3d.com/api/gh2/type/grasshopper2.eto.drawing.osfonts/user.md): (static) The font the user has chosen for documents.
