reference

This documentation is automatically generated from the openFrameworks source code using doxygen and refers to the most recent release, version 0.12.0.

ofTrueTypeFont.h File Reference
#include "ofRectangle.h"
#include "ofPath.h"
#include "ofTexture.h"
#include "ofMesh.h"
#include "ofPixels.h"
#include "ofConstants.h"
#include <unordered_map>

Go to the source code of this file.

Classes

class  ofUnicode
 
struct  ofUnicode::range
 
class  ofAlphabet
 
struct  ofTrueTypeFontSettings
 
class  ofTrueTypeFont
 

Enumerations

enum  ofTrueTypeFontDirection : uint32_t { OF_TTF_LEFT_TO_RIGHT , OF_TTF_RIGHT_TO_LEFT }
 

Functions

void ofTrueTypeShutdown ()
 

Detailed Description

The ofTrueTypeFont class provides an interface to load fonts into openFrameworks. The fonts are converted to textures, and can be drawn on screen. There are some options when you load the font - what size the font is rendered at, whether or not it is anti-aliased, and whether the font object will be the full character set or a subset (i.e., extended ASCII, which can include diacritics like umlauts, or ASCII). The default is anti-aliased, non-full character set. The library uses freetype, which has certain patent problems in regards to true type hinting, especially at small sizes, so non-anti-aliased type doesn't always render beautifully. But we find it quite adequate, and at larger sizes it seems to works well.

Enumeration Type Documentation

◆ ofTrueTypeFontDirection

enum ofTrueTypeFontDirection : uint32_t
Enumerator
OF_TTF_LEFT_TO_RIGHT 
OF_TTF_RIGHT_TO_LEFT 

Function Documentation

◆ ofTrueTypeShutdown()

void ofTrueTypeShutdown ( )