Vuo  2.3.2
Classes | Macros | Functions

Description

A font description: family, style, point size, underline.

Classes

struct  VuoFont
 A font description: family, style, point size, underline. More...
 

Functions

VuoFont VuoFont_makeFromJson (json_object *js)
 Decodes the JSON object js to create a new value. More...
 
json_objectVuoFont_getJson (const VuoFont value)
 Encodes value as a JSON object. More...
 
char * VuoFont_getSummary (const VuoFont value)
 Returns a compact string representation of value (comma-separated components). More...
 
VuoFont VuoFont_make (VuoText fontName, VuoReal pointSize, VuoBoolean underline, VuoColor color, VuoHorizontalAlignment alignment, VuoReal characterSpacing, VuoReal lineSpacing)
 Returns a new VuoFont with the specified attributes. More...
 
VuoFont VuoFont_makeDefault ()
 Returns a new VuoFont using default values. More...
 
bool VuoFont_areEqual (const VuoFont a, const VuoFont b)
 Returns true if both fonts have the same name, size, underline status, color, alignment, and character/line spacing. More...
 
bool VuoFont_isLessThan (const VuoFont a, const VuoFont b)
 Returns true if a < b. More...
 
VuoFont VuoFont_makeFromString (const char *str)
 Automatically generated function. More...
 
char * VuoFont_getString (const VuoFont value)
 Automatically generated function. More...
 
void VuoFont_retain (VuoFont value)
 Automatically generated function. More...
 
void VuoFont_release (VuoFont value)
 Automatically generated function. More...
 

Class Documentation

◆ VuoFont

struct VuoFont
Class Members
VuoHorizontalAlignment alignment
VuoReal characterSpacing A value of 1.0 is normal character spacing. Must be >= 0.0.
VuoColor color
VuoText fontName Unique font machine name. Includes variants such as bold, italic, and oblique.
VuoReal lineSpacing A value of 1.0 is normal line spacing. Must be >= 0.0.
VuoReal pointSize
VuoBoolean underline

Function Documentation

◆ VuoFont_areEqual()

bool VuoFont_areEqual ( const VuoFont  a,
const VuoFont  b 
)

Returns true if both fonts have the same name, size, underline status, color, alignment, and character/line spacing.

Definition at line 116 of file VuoFont.c.

◆ VuoFont_getJson()

struct json_object * VuoFont_getJson ( const VuoFont  value)

Encodes value as a JSON object.

Definition at line 81 of file VuoFont.c.

◆ VuoFont_getString()

char* VuoFont_getString ( const VuoFont  value)

Automatically generated function.

◆ VuoFont_getSummary()

char * VuoFont_getSummary ( const VuoFont  value)

Returns a compact string representation of value (comma-separated components).

Definition at line 98 of file VuoFont.c.

◆ VuoFont_isLessThan()

bool VuoFont_isLessThan ( const VuoFont  a,
const VuoFont  b 
)

Returns true if a < b.

Definition at line 130 of file VuoFont.c.

◆ VuoFont_make()

VuoFont VuoFont_make ( VuoText  fontName,
VuoReal  pointSize,
VuoBoolean  underline,
VuoColor  color,
VuoHorizontalAlignment  alignment,
VuoReal  characterSpacing,
VuoReal  lineSpacing 
)

Returns a new VuoFont with the specified attributes.

Definition at line 37 of file VuoFont.c.

◆ VuoFont_makeDefault()

VuoFont VuoFont_makeDefault ( )

Returns a new VuoFont using default values.

Changed in Vuo 2.0.0:
New.

Definition at line 55 of file VuoFont.c.

◆ VuoFont_makeFromJson()

VuoFont VuoFont_makeFromJson ( json_object js)

Decodes the JSON object js to create a new value.

Definition at line 64 of file VuoFont.c.

◆ VuoFont_makeFromString()

VuoFont VuoFont_makeFromString ( const char *  str)

Automatically generated function.

◆ VuoFont_release()

void VuoFont_release ( VuoFont  value)

Automatically generated function.

◆ VuoFont_retain()

void VuoFont_retain ( VuoFont  value)

Automatically generated function.