1.1.0
Classes | Enumerations | Functions
Font size

Functions and types that deal with font sizes. More...

Classes

struct  fc_font_size
 Specifies the size of a font either in pixels or in points. More...
 
struct  fc::font_size
 A wrapper class for fc_font_size. More...
 

Enumerations

enum  fc_font_size_type { fc_size_type__pt, fc_size_type__px }
 Used to tell if a fc_font_size value is specified in pixels or in points.
 

Functions

struct fc_font_size fc_pt (float value)
 Constructs and returns a fc_size value specified as points. More...
 
struct fc_font_size fc_px (float value)
 Constructs and returns a fc_size value specified as pixels. More...
 

Detailed Description

Functions and types that deal with font sizes.

Function Documentation

◆ fc_pt()

struct fc_font_size fc_pt ( float  value)

Constructs and returns a fc_size value specified as points.

Parameters
valueThe size in floats
Returns
A fc_size value using fc_size_type__pt
Examples
main.c, and main.cpp.

◆ fc_px()

struct fc_font_size fc_px ( float  value)

Constructs and returns a fc_size value specified as pixels.

Parameters
valueThe size in floats
Returns
A fc_size value using fc_size_type__px