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