libcss
Loading...
Searching...
No Matches
Functions
font_face.c File Reference
#include "parse/font_face.h"
#include <assert.h>
#include <string.h>
#include "parse/propstrings.h"
#include "parse/properties/utils.h"
#include "select/font_face.h"

Functions

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)
 

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