From e9dbce5471b2e4283bc13e5eeb6b2f5433944cc4 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Wed, 9 Feb 2005 22:56:30 +0000 Subject: [project @ 2005-02-09 22:56:30 by bursa] Implement rufl_width() by sharing code from rufl_paint(). svn path=/import/rufl/; revision=2445 --- rufl.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'rufl.h') diff --git a/rufl.h b/rufl.h index 1691da4..36d946a 100644 --- a/rufl.h +++ b/rufl.h @@ -63,6 +63,16 @@ rufl_code rufl_paint(const char *font_family, rufl_style font_style, int x, int y); +/** + * 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. */ -- cgit v1.2.3