# Displaying text

pyglet provides the font module for rendering high-quality antialiased Unicode glyphs efficiently. Any installed font on the operating system can be used, or you can supply your own font with your application.

Text rendering is performed with the text module, which can display word-wrapped formatted text. There is also support for interactive editing of text on-screen with a caret.

- Simple text rendering
- The document/layout model
  - Documents
  - Layouts
- Formatted text
  - Character styles
  - Paragraph styles
  - Attributed text
  - HTML
- Custom elements
- User-editable text
- Loading system fonts
- Font sizes
  - Font resolution
  - Determining font size
- Loading custom fonts
  - Supported font formats
- OpenGL font considerations
  - Context affinity
  - Blend state