summaryrefslogtreecommitdiff
path: root/rufl.h
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2005-02-20 00:14:40 +0000
committerJames Bursa <james@netsurf-browser.org>2005-02-20 00:14:40 +0000
commitafb3ee60c93f3d6ea31839bc379f284a40c09e5f (patch)
treeb3f3f99fce225cab7e525f8d1b08b8e8b91f685e /rufl.h
parent0a3d61162504861df4f14b624e5b2efc9b2b34fc (diff)
downloadlibrufl-afb3ee60c93f3d6ea31839bc379f284a40c09e5f.tar.gz
librufl-afb3ee60c93f3d6ea31839bc379f284a40c09e5f.tar.bz2
[project @ 2005-02-20 00:14:40 by bursa]
Implement rufl_paint_transformed(). Fix repeated character bug with long strings. svn path=/import/rufl/; revision=2448
Diffstat (limited to 'rufl.h')
-rw-r--r--rufl.h27
1 files changed, 23 insertions, 4 deletions
diff --git a/rufl.h b/rufl.h
index f253e98..7016dd6 100644
--- a/rufl.h
+++ b/rufl.h
@@ -5,6 +5,9 @@
* Copyright 2005 James Bursa <james@semichrome.net>
*/
+#ifndef RUFL_H
+#define RUFL_H
+
#include <stdbool.h>
#include <stdlib.h>
#include "oslib/os.h"
@@ -28,10 +31,10 @@ typedef enum {
typedef enum {
- rufl_REGULAR,
- rufl_SLANTED,
- rufl_BOLD,
- rufl_BOLD_SLANTED,
+ rufl_REGULAR = 0,
+ rufl_SLANTED = 1,
+ rufl_BOLD = 2,
+ rufl_BOLD_SLANTED = 3,
} rufl_style;
@@ -64,6 +67,19 @@ rufl_code rufl_paint(const char *font_family, rufl_style font_style,
/**
+ * Render Unicode text with a transformation matrix.
+ *
+ * Only transformations which keep the x-axis direction unchanged are
+ * supported.
+ */
+
+rufl_code rufl_paint_transformed(const char *font_family, rufl_style font_style,
+ unsigned int font_size,
+ const char *string, size_t length,
+ int x, int y, os_trfm *trfm);
+
+
+/**
* Measure the width of Unicode text.
*/
@@ -96,3 +112,6 @@ void rufl_dump_state(void);
*/
void rufl_quit(void);
+
+
+#endif