libcss
Loading...
Searching...
No Matches
font_face.h
Go to the documentation of this file.
1/*
2 * This file is part of LibCSS.
3 * Licensed under the MIT License,
4 * http://www.opensource.org/licenses/mit-license.php
5 * Copyright 2011 Things Made Out Of Other Things Ltd.
6 * Written by James Montgomerie <jamie@th.ingsmadeoutofotherthin.gs>
7 */
8
9#ifndef css_select_font_face_h_
10#define css_select_font_face_h_
11
12#include <libcss/font_face.h>
13
14
16 lwc_string *location;
17 /*
18 * Bit allocations:
19 *
20 * 76543210
21 * 1 _fffffll format | location type
22 */
23 uint8_t bits[1];
24};
25
27 lwc_string *font_family;
29 uint32_t n_srcs;
30
31 /*
32 * Bit allocations:
33 *
34 * 76543210
35 * 1 __wwwwss font-weight | font-style
36 */
37 uint8_t bits[1];
38};
39
42
44 lwc_string *font_family);
45
47 css_font_face_src *srcs, uint32_t n_srcs);
48
49#endif
css_error
Definition errors.h:18
css_error css__font_face_destroy(css_font_face *font_face)
Definition font_face.c:65
css_error css__font_face_set_srcs(css_font_face *font_face, css_font_face_src *srcs, uint32_t n_srcs)
Definition font_face.c:236
css_error css__font_face_set_font_family(css_font_face *font_face, lwc_string *font_family)
Definition font_face.c:90
css_error css__font_face_create(css_font_face **result)
Definition font_face.c:41
Definition font_face.h:15
uint8_t bits[1]
Definition font_face.h:23
lwc_string * location
Definition font_face.h:16
Definition font_face.h:26
uint32_t n_srcs
Definition font_face.h:29
css_font_face_src * srcs
Definition font_face.h:28
lwc_string * font_family
Definition font_face.h:27
uint8_t bits[1]
Definition font_face.h:37