summaryrefslogtreecommitdiff
path: root/include/libcss/select.h
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2011-12-04 21:06:24 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2011-12-04 21:06:24 +0000
commitd5a183e14d42560632a6aa270aede226215bb3d3 (patch)
tree31d7c6692a8267237ff3caa34fa5958e280ead24 /include/libcss/select.h
parentd153cb125a6a69e08a49c93f9774f86705aa9898 (diff)
downloadlibcss-d5a183e14d42560632a6aa270aede226215bb3d3.tar.gz
libcss-d5a183e14d42560632a6aa270aede226215bb3d3.tar.bz2
@font-face support. Credit: James Montgomerie
Things missing: parser tests; the following descriptors: font-feature-settings, font-stretch, font-variant, unicode-range. svn path=/trunk/libcss/; revision=13244
Diffstat (limited to 'include/libcss/select.h')
-rw-r--r--include/libcss/select.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/include/libcss/select.h b/include/libcss/select.h
index b6f9475..4a95752 100644
--- a/include/libcss/select.h
+++ b/include/libcss/select.h
@@ -130,6 +130,20 @@ typedef struct css_select_handler {
css_hint *size);
} css_select_handler;
+/**
+ * Font face selection result set
+ */
+typedef struct css_select_font_faces_results {
+ css_allocator_fn alloc;
+ void *pw;
+
+ /**
+ * Array of pointers to computed font faces.
+ */
+ css_font_face **font_faces;
+ uint32_t n_font_faces;
+} css_select_font_faces_results;
+
css_error css_select_ctx_create(css_allocator_fn alloc, void *pw,
css_select_ctx **result);
css_error css_select_ctx_destroy(css_select_ctx *ctx);
@@ -151,8 +165,13 @@ css_error css_select_style(css_select_ctx *ctx, void *node,
uint64_t media, const css_stylesheet *inline_style,
css_select_handler *handler, void *pw,
css_select_results **result);
+css_error css_select_results_destroy(css_select_results *results);
-css_error css_select_results_destroy(css_select_results *results);
+css_error css_select_font_faces(css_select_ctx *ctx,
+ uint64_t media, lwc_string *font_family,
+ css_select_font_faces_results **result);
+css_error css_select_font_faces_results_destroy(
+ css_select_font_faces_results *results);
#ifdef __cplusplus
}