summaryrefslogtreecommitdiff
path: root/rufl.h
diff options
context:
space:
mode:
Diffstat (limited to 'rufl.h')
-rw-r--r--rufl.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/rufl.h b/rufl.h
index a4b9c72..4e2181e 100644
--- a/rufl.h
+++ b/rufl.h
@@ -103,6 +103,17 @@ rufl_code rufl_x_to_offset(const char *font_family, rufl_style font_style,
/**
+ * Find the prefix of a string that will fit in a specified width.
+ */
+
+rufl_code rufl_split(const char *font_family, rufl_style font_style,
+ unsigned int font_size,
+ const char *string, size_t length,
+ int width,
+ size_t *char_offset, int *actual_x);
+
+
+/**
* Dump the internal library state to stdout.
*/