diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2015-02-28 13:07:44 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2015-02-28 13:07:44 +0000 |
commit | 07c210b656a88488f62e080327ffb9a900a6c9ed (patch) | |
tree | 5ad5eb675142bf2703e6cfd34f7bfeaae5bffb2d /amiga/font.h | |
parent | 2ce332f1b07af89ce387ca24cc6471f97c80154b (diff) | |
parent | 5baf48859a71060bbe6e81335431fcda6c91a0f8 (diff) | |
download | netsurf-07c210b656a88488f62e080327ffb9a900a6c9ed.tar.gz netsurf-07c210b656a88488f62e080327ffb9a900a6c9ed.tar.bz2 |
Fix hook functions for 68k
Add (partially working) bitmap fonts support
Diffstat (limited to 'amiga/font.h')
-rwxr-xr-x | amiga/font.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/amiga/font.h b/amiga/font.h index 10137f777..375e15032 100755 --- a/amiga/font.h +++ b/amiga/font.h @@ -25,7 +25,7 @@ struct ami_font_node; -ULONG ami_unicode_text(struct RastPort *rp, const char *string, +ULONG ami_font_unicode_text(struct RastPort *rp, const char *string, ULONG length, const plot_font_style_t *fstyle, ULONG x, ULONG y, bool aa); void ami_font_setdevicedpi(int id); void ami_init_fonts(void); @@ -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 + |