# cee::vis::Font

class `Font` : public RefCountedObject

  A font used for text drawing.

  HOOPS Envision has two built in fonts that work without any dependencies:

  - createNormalFont() : 8 pt Droid Sans Regular
  - createLargeFont() : 16 pt Droid Sans Regular

  These fonts are built into HOOPS Envision and have no external dependencies.

  For true type font support, use cee::vis::TrueTypeFont instead.

  Subclassed by TrueTypeFont

  Public Functions

  virtual unsigned int `pointSize`() const

    Returns the point size of the font.

  Str `name`() const

    Returns the font name of the font.

  float `lineSpacing`() const

    Returns the line spacing.

  void `setLineSpacing`(float factor)

    Sets the line spacing.

    Line spacing is measured as a proportion of the font height. Default is 1.75 (175%)

  Public Static Functions

  static PtrRef<Font> `createNormalFont`()

    Creates and returns a 8 pt Droid Sans Regular font.

    This font is built into HOOPS Envision and have no external dependencies.

  static PtrRef<Font> `createLargeFont`()

    Creates and returns a 16 pt Droid Sans Regular font.

    This font is built into HOOPS Envision and have no external dependencies.

  Protected Functions

  `Font`()

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your multilingual generative AI assistant for documentation. Ask me anything about HOOPS Envision for Desktop in your own language, or choose a sample question below to start a conversation:

What is HOOPS Envision for Desktop?
What are the latest release notes for HOOPS Envision for Desktop?
How do I start evaluating HOOPS Envision for Desktop?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...