diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2015-02-03 19:48:28 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2015-02-03 19:48:28 +0000 |
commit | f123ed101f6651b15175a9cf33038bf54975dd8b (patch) | |
tree | d8dc5cea88a816ec44c40a810f81ebdbbf168b71 /amiga/font.h | |
parent | ee75f5b3addaa6e2989a2dabbd2d49fed71d19c8 (diff) | |
download | netsurf-f123ed101f6651b15175a9cf33038bf54975dd8b.tar.gz netsurf-f123ed101f6651b15175a9cf33038bf54975dd8b.tar.bz2 |
Lazy bitmap font rendered text for slow hardware (non-working)
Diffstat (limited to 'amiga/font.h')
-rwxr-xr-x | amiga/font.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/amiga/font.h b/amiga/font.h index 10137f777..6c600abe4 100755 --- a/amiga/font.h +++ b/amiga/font.h @@ -40,4 +40,18 @@ void ami_font_savescanner(void); /* Simple diskfont functions for graphics.library use (not page rendering) */ struct TextFont *ami_font_open_disk_font(struct TextAttr *tattr); void ami_font_close_disk_font(struct TextFont *tfont); + +/* In font_bitmap.c */ +bool amiga_bm_nsfont_width(const plot_font_style_t *fstyle, + const char *string, size_t length, int *width); +bool amiga_bm_nsfont_position_in_string(const plot_font_style_t *fstyle, + const char *string, size_t length, + int x, size_t *char_offset, int *actual_x); +bool amiga_bm_nsfont_split(const plot_font_style_t *fstyle, + const char *string, size_t length, + int x, size_t *char_offset, int *actual_x); +ULONG ami_font_bm_text(struct RastPort *rp, const char *string, ULONG length, + const plot_font_style_t *fstyle, ULONG dx, ULONG dy); + #endif + |