Changeset 06b8383 in mainline for uspace/lib/gfxfont/include/types/gfx/font.h
- Timestamp:
- 2020-08-18T11:32:59Z (4 years ago)
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/gfxfont/include/types/gfx/font.h
rd2100e2 r06b8383 42 42 typedef struct gfx_font gfx_font_t; 43 43 44 /** Font metrics */ 44 struct gfx_font_info; 45 typedef struct gfx_font_info gfx_font_info_t; 46 47 /** Font flags */ 48 typedef enum { 49 /** Bold */ 50 gff_bold = 0x1, 51 /** Italic */ 52 gff_italic = 0x2, 53 /** Bold, italic */ 54 gff_bold_italic = gff_bold | gff_italic 55 } gfx_font_flags_t; 56 57 /** Font properties */ 45 58 typedef struct { 46 /** Ascent */ 47 gfx_coord_t ascent; 48 /** Descent */ 49 gfx_coord_t descent; 50 /** Leading */ 51 gfx_coord_t leading; 52 } gfx_font_metrics_t; 53 54 /** Text metrics */ 55 typedef struct { 56 /** Bounding rectangle (not including oversize elements) */ 57 gfx_rect_t bounds; 58 } gfx_text_metrics_t; 59 /** Size */ 60 gfx_coord_t size; 61 /** Flags */ 62 gfx_font_flags_t flags; 63 } gfx_font_props_t; 59 64 60 65 #endif
Note:
See TracChangeset
for help on using the changeset viewer.