Changeset 5c27e77 in mainline for uspace/lib/gfxfont/src/font.c


Ignore:
Timestamp:
2022-03-06T22:37:06Z (3 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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/gfxfont/src/font.c

    raf259da r5c27e77  
    11/*
    2  * Copyright (c) 2020 Jiri Svoboda
     2 * Copyright (c) 2022 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    546546        metrics->descent = uint16_t_le2host(tmetrics.descent);
    547547        metrics->leading = uint16_t_le2host(tmetrics.leading);
     548        metrics->underline_y0 = uint16_t_le2host(tmetrics.underline_y0);
     549        metrics->underline_y1 = uint16_t_le2host(tmetrics.underline_y1);
    548550        return EOK;
    549551}
     
    565567        tmetrics.descent = host2uint16_t_le(metrics->descent);
    566568        tmetrics.leading = host2uint16_t_le(metrics->leading);
     569        tmetrics.underline_y0 = host2uint16_t_le(metrics->underline_y0);
     570        tmetrics.underline_y1 = host2uint16_t_le(metrics->underline_y1);
    567571
    568572        rc = riff_wchunk_start(riffw, CKID_fmtr, &mtrck);
Note: See TracChangeset for help on using the changeset viewer.