Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
anonymous_namespace{Font.cpp} Namespace Reference

Classes

struct  FTGlyphDeleter
 

Typedefs

using UniqueFTGlyph = std::unique_ptr< std::remove_pointer_t< FT_Glyph >, FTGlyphDeleter >
 

Functions

FT_F26Dot6 FloatToF26Dot6 (float value)
 FreeType represents most of its size and position values in 26.6 fixed-point format — that is, 26 bits for the integer part and 6 bits for the fractional part. More...
 
float FPosF26Dot6ToFloat (FT_Pos value)
 

Typedef Documentation

◆ UniqueFTGlyph

using anonymous_namespace{Font.cpp}::UniqueFTGlyph = typedef std::unique_ptr<std::remove_pointer_t<FT_Glyph>, FTGlyphDeleter>

Function Documentation

◆ FloatToF26Dot6()

FT_F26Dot6 anonymous_namespace{Font.cpp}::FloatToF26Dot6 ( float  value)
inline

FreeType represents most of its size and position values in 26.6 fixed-point format — that is, 26 bits for the integer part and 6 bits for the fractional part.

FreeType's metrics such as: ascender, descender, height, advance, etc. are measured in 1/64th of a pixel.

◆ FPosF26Dot6ToFloat()

float anonymous_namespace{Font.cpp}::FPosF26Dot6ToFloat ( FT_Pos  value)
inline