cheshirekow  v0.1.0
freetype::size_request_type Namespace Reference

namespace wrapper for SizeRequestType More...

Enumerations

enum  SizeRequestType {
  NOMINAL, REAL_DIM, BBOX, CELL,
  SCALES, MAX
}
 An enumeration type that lists the supported size request types. More...
 

Detailed Description

namespace wrapper for SizeRequestType

See Also
SizeRequestType

Enumeration Type Documentation

An enumeration type that lists the supported size request types.

Note
The above descriptions only apply to scalable formats. For bitmap formats, the behaviour is up to the driver.

See the note section of FT_Size_Metrics if you wonder how size requesting relates to scaling values.

Enumerator
NOMINAL 

The nominal size. The ‘units_per_EM’ field of FT_FaceRec is used to determine both scaling values.

REAL_DIM 

The real dimension. The sum of the the ‘ascender’ and (minus of) the ‘descender’ fields of FT_FaceRec are used to determine both scaling values.

BBOX 

The font bounding box. The width and height of the ‘bbox’ field of FT_FaceRec are used to determine the horizontal and vertical scaling value, respectively.

CELL 

The ‘max_advance_width’ field of FT_FaceRec is used to determine the horizontal scaling value; the vertical scaling value is determined the same way as FT_SIZE_REQUEST_TYPE_REAL_DIM does. Finally, both scaling values are set to the smaller one. This type is useful if you want to specify the font size for, say, a window of a given dimension and 80x24 cells.

SCALES 

Specify the scaling values directly.

MAX 

MAX.

Definition at line 962 of file types.h.