Changeset 5c27e77 in mainline for uspace/lib/gfxfont/include


Ignore:
Timestamp:
2022-03-06T22:37:06Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4583015
Parents:
af259da
Message:

Text underlining support

Location:
uspace/lib/gfxfont/include/types/gfx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/gfxfont/include/types/gfx/text.h

    raf259da r5c27e77  
    11/*
    2  * Copyright (c) 2020 Jiri Svoboda
     2 * Copyright (c) 2022 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    3737#define _TYPES_GFX_TEXT_H
    3838
     39#include <stdbool.h>
    3940#include <types/gfx/coord.h>
    4041#include <types/gfx/color.h>
     
    7475        /** Vertical alignment */
    7576        gfx_valign_t valign;
     77        /** Underline */
     78        bool underline;
    7679} gfx_text_fmt_t;
    7780
  • uspace/lib/gfxfont/include/types/gfx/typeface.h

    raf259da r5c27e77  
    11/*
    2  * Copyright (c) 2020 Jiri Svoboda
     2 * Copyright (c) 2022 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    5050        /** Leading */
    5151        gfx_coord_t leading;
     52        /** Underline start Y coordinate (inclusive) */
     53        gfx_coord_t underline_y0;
     54        /** Underline end Y coordinate (exclusive) */
     55        gfx_coord_t underline_y1;
    5256} gfx_font_metrics_t;
    5357
Note: See TracChangeset for help on using the changeset viewer.