libcss
Loading...
Searching...
No Matches
Functions
font_face.h File Reference
#include <parserutils/utils/vector.h>
#include "stylesheet.h"
#include "lex/lex.h"
#include "parse/language.h"

Go to the source code of this file.

Functions

css_error css__parse_font_descriptor (css_language *c, const css_token *descriptor, const parserutils_vector *vector, int32_t *ctx, struct css_rule_font_face *rule)
 

Function Documentation

◆ css__parse_font_descriptor()

css_error css__parse_font_descriptor ( css_language c,
const css_token descriptor,
const parserutils_vector *  vector,
int32_t *  ctx,
css_rule_font_face rule 
)

Parse a descriptor in an @font-face rule

Parameters
cParsing context
descriptorToken for this descriptor
vectorVector of tokens to process
ctxPointer to vector iteration context
ruleRule to process descriptor into
Returns
CSS_OK on success, CSS_BADPARM on bad parameters, CSS_INVALID on invalid syntax, CSS_NOMEM on memory exhaustion