diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2009-04-08 21:39:21 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2009-04-08 21:39:21 +0000 |
commit | 762784c01baec27dffcf1437b2427a45d82a59de (patch) | |
tree | bc3231dbb7166448d16785c6d543808d8f4ee8a8 /src/plot.c | |
parent | 08bf9ed1ac868954feefdc812204fd6a4d4767e7 (diff) | |
download | libnsfb-762784c01baec27dffcf1437b2427a45d82a59de.tar.gz libnsfb-762784c01baec27dffcf1437b2427a45d82a59de.tar.bz2 |
add font glyph plotting support
svn path=/trunk/libnsfb/; revision=7068
Diffstat (limited to 'src/plot.c')
-rw-r--r-- | src/plot.c | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -108,7 +108,22 @@ bool nsfb_plot_copy(nsfb_t *nsfb, int srcx, int srcy, int width, int height, int return nsfb->plotter_fns->copy(nsfb, srcx, srcy, width, height, dstx, dsty); } -bool nsfb_plot_bitmap(nsfb_t *nsfb, nsfb_bbox_t *loc, nsfb_colour_t *pixel, int bmp_width, int bmp_height, int bmp_stride, bool alpha) +bool nsfb_plot_bitmap(nsfb_t *nsfb, nsfb_bbox_t *loc, const nsfb_colour_t *pixel, int bmp_width, int bmp_height, int bmp_stride, bool alpha) { return nsfb->plotter_fns->bitmap(nsfb, loc, pixel, bmp_width, bmp_height, bmp_stride, alpha); } + +/** Plot an 8 bit glyph. + */ +bool nsfb_plot_glyph8(nsfb_t *nsfb, nsfb_bbox_t *loc, const uint8_t *pixel, int pitch, nsfb_colour_t c) +{ + return nsfb->plotter_fns->glyph8(nsfb, loc, pixel, pitch, c); +} + + +/** Plot an 1 bit glyph. + */ +bool nsfb_plot_glyph1(nsfb_t *nsfb, nsfb_bbox_t *loc, const uint8_t *pixel, int pitch, nsfb_colour_t c) +{ + return nsfb->plotter_fns->glyph1(nsfb, loc, pixel, pitch, c); +} |