Changeset d2100e2 in mainline for uspace/lib/gfxfont/private/font.h


Ignore:
Timestamp:
2020-08-09T18:40:28Z (5 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
06b8383
Parents:
5592c56
Message:

Finish glyph bitmap operations and tests

Setting/getting pixel, opening/saving glyph bitmap.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/gfxfont/private/font.h

    r5592c56 rd2100e2  
    3939
    4040#include <adt/list.h>
     41#include <errno.h>
     42#include <types/gfx/bitmap.h>
    4143#include <types/gfx/context.h>
    4244#include <types/gfx/font.h>
     
    4547 *
    4648 * This is private to libgfxfont.
     49 *
     50 * Font bitmap contains all the glyphs packed side by side (in order of
     51 * @c gfx_font_t.glyphs). This is to conserve space and number of bitmaps
     52 * used. The baselines of the glyphs are not mutually aligned.
     53 * For each glyph @c gfx_glyph_t.origin designates
     54 * pen start point (and thus the position of the baseline).
    4755 */
    4856struct gfx_font {
     
    5361        /** Glyphs */
    5462        list_t glyphs;
     63        /** Font bitmap */
     64        gfx_bitmap_t *bitmap;
     65        /** Bitmap rectangle */
     66        gfx_rect_t rect;
    5567};
     68
     69extern errno_t gfx_font_splice_at_glyph(gfx_font_t *, gfx_glyph_t *,
     70    gfx_coord_t, gfx_coord_t);
    5671
    5772#endif
Note: See TracChangeset for help on using the changeset viewer.