summaryrefslogtreecommitdiff
path: root/rufl.h
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2005-02-09 22:56:30 +0000
committerJames Bursa <james@netsurf-browser.org>2005-02-09 22:56:30 +0000
commite9dbce5471b2e4283bc13e5eeb6b2f5433944cc4 (patch)
tree003b6395974fd987a413427439e52193e9199a09 /rufl.h
parent3b86ee8e511f8811189a381e4d1f8864e49f1e5f (diff)
downloadlibrufl-e9dbce5471b2e4283bc13e5eeb6b2f5433944cc4.tar.gz
librufl-e9dbce5471b2e4283bc13e5eeb6b2f5433944cc4.tar.bz2
[project @ 2005-02-09 22:56:30 by bursa]
Implement rufl_width() by sharing code from rufl_paint(). svn path=/import/rufl/; revision=2445
Diffstat (limited to 'rufl.h')
-rw-r--r--rufl.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/rufl.h b/rufl.h
index 1691da4..36d946a 100644
--- a/rufl.h
+++ b/rufl.h
@@ -64,6 +64,16 @@ rufl_code rufl_paint(const char *font_family, rufl_style font_style,
/**
+ * Measure the width of Unicode text.
+ */
+
+rufl_code rufl_width(const char *font_family, rufl_style font_style,
+ unsigned int font_size,
+ const char *string, size_t length,
+ int *width);
+
+
+/**
* Dump the internal library state to stdout.
*/