Changeset c78a03d in mainline for uspace/lib/gfxfont/private


Ignore:
Timestamp:
2020-07-21T22:48:59Z (5 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5592c56
Parents:
703c743
Message:

Flesh out most of font, glyph and glyph bitmap implementation and tests

Location:
uspace/lib/gfxfont/private
Files:
3 edited

Legend:

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

    r703c743 rc78a03d  
    3838#define _GFX_PRIVATE_FONT_H
    3939
     40#include <adt/list.h>
    4041#include <types/gfx/context.h>
    4142#include <types/gfx/font.h>
     
    5051        /** Font metrics */
    5152        gfx_font_metrics_t metrics;
     53        /** Glyphs */
     54        list_t glyphs;
    5255};
    5356
  • uspace/lib/gfxfont/private/glyph.h

    r703c743 rc78a03d  
    4949        struct gfx_font *font;
    5050        /** Link to list of glyphs in the font */
    51         list_t lglyphs;
     51        link_t lglyphs;
    5252        /** Glyph metrics */
    5353        gfx_glyph_metrics_t metrics;
     54        /** Text patterns (of gfx_glyph_pattern_t) */
     55        list_t patterns;
     56};
     57
     58/** Glyph pattern.
     59 *
     60 * Glyph is set if pattern is found in text.
     61 */
     62struct gfx_glyph_pattern {
     63        /** Containing glyph */
     64        struct gfx_glyph *glyph;
     65        /** Link to gfx_glyph.patterns */
     66        link_t lpatterns;
     67        /** Pattern text */
     68        char *text;
    5469};
    5570
  • uspace/lib/gfxfont/private/glyph_bmp.h

    r703c743 rc78a03d  
    3838#define _GFX_PRIVATE_GLYPH_BMP_H
    3939
     40#include <gfx/coord.h>
     41
    4042/** Glyph bitmap
    4143 *
     
    4951        /** Containing glyph */
    5052        struct gfx_glyph *glyph;
     53        /** Rectangle covered by bitmap */
     54        gfx_rect_t rect;
     55        /** Pixel array */
     56        int *pixels;
    5157};
    5258
Note: See TracChangeset for help on using the changeset viewer.