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


Ignore:
Timestamp:
2020-08-18T11:32:59Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
20d0098
Parents:
d2100e2
git-author:
Jiri Svoboda <jiri@…> (2020-08-17 18:32:40)
git-committer:
Jiri Svoboda <jiri@…> (2020-08-18 11:32:59)
Message:

Introduce typeface

In other words a font family.

File:
1 edited

Legend:

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

    rd2100e2 r06b8383  
    4343#include <types/gfx/context.h>
    4444#include <types/gfx/font.h>
     45#include <types/gfx/typeface.h>
    4546
    4647/** Font
     
    5556 */
    5657struct gfx_font {
    57         /** Graphics context of the font */
    58         gfx_context_t *gc;
     58        /** Containing typeface */
     59        struct gfx_typeface *typeface;
    5960        /** Font metrics */
    6061        gfx_font_metrics_t metrics;
     
    6768};
    6869
     70/** Font info
     71 *
     72 * This is an entry in the list of fonts in typeface
     73 */
     74struct gfx_font_info {
     75        /** Containing typeface */
     76        struct gfx_typeface *typeface;
     77        /** Link to @c typeface->fonts */
     78        link_t lfonts;
     79        /** Font properties */
     80        gfx_font_props_t props;
     81        /** Font or @c NULL if font is not present in memory */
     82        struct gfx_font *font;
     83};
     84
    6985extern errno_t gfx_font_splice_at_glyph(gfx_font_t *, gfx_glyph_t *,
    7086    gfx_coord_t, gfx_coord_t);
Note: See TracChangeset for help on using the changeset viewer.