diff options
author | James Bursa <james@netsurf-browser.org> | 2005-02-20 00:14:40 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2005-02-20 00:14:40 +0000 |
commit | afb3ee60c93f3d6ea31839bc379f284a40c09e5f (patch) | |
tree | b3f3f99fce225cab7e525f8d1b08b8e8b91f685e /rufl.h | |
parent | 0a3d61162504861df4f14b624e5b2efc9b2b34fc (diff) | |
download | librufl-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.h | 27 |
1 files changed, 23 insertions, 4 deletions
@@ -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 |