libcss
Loading...
Searching...
No Matches
Classes | Functions
font_face.h File Reference
#include <libcss/font_face.h>

Go to the source code of this file.

Classes

struct  css_font_face_src
 
struct  css_font_face
 

Functions

css_error css__font_face_create (css_font_face **result)
 
css_error css__font_face_destroy (css_font_face *font_face)
 
css_error css__font_face_set_font_family (css_font_face *font_face, lwc_string *font_family)
 
css_error css__font_face_set_srcs (css_font_face *font_face, css_font_face_src *srcs, uint32_t n_srcs)
 

Function Documentation

◆ css__font_face_create()

css_error css__font_face_create ( css_font_face **  result)

Create a font-face

Parameters
resultPointer to location to receive result
Returns
CSS_OK on success, CSS_NOMEM on memory exhaustion, CSS_BADPARM on bad parameters.

◆ css__font_face_destroy()

css_error css__font_face_destroy ( css_font_face font_face)

Destroy a font-face

Parameters
font_faceFont-face to destroy
Returns
CSS_OK on success, appropriate error otherwise

◆ css__font_face_set_font_family()

css_error css__font_face_set_font_family ( css_font_face font_face,
lwc_string *  font_family 
)

Set a font-face's font-family name

Parameters
font_faceThe font-face
font_familyFont-family name
resultPointer to location to receive result
Returns
CSS_OK on success, CSS_BADPARM on bad parameters.

◆ css__font_face_set_srcs()

css_error css__font_face_set_srcs ( css_font_face font_face,
css_font_face_src srcs,
uint32_t  n_srcs 
)

Set a font-faces array of srcs.

Parameters
font_faceThe font-face
srcsThe array of css_font_face_srcs
n_srcsThe count of css_font_face_srcs in the array
Returns
The format, if specified