Changeset d53af3c8 in mainline for uspace/app/fontedit/fontedit.c


Ignore:
Timestamp:
2020-09-18T23:00:44Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0ee3157
Parents:
7bef2d8
Message:

Save typeface to (RIFF) TPF file using newly introduced libriff

Originally I planned introducing libriff for better RIFF WAVE support.
It could be used for this purpose in the future (as well as for WebP
and other RIFF-based formats).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/fontedit/fontedit.c

    r7bef2d8 rd53af3c8  
    142142static void font_edit_ctrl_key(font_edit_t *fedit, kbd_event_t *event)
    143143{
     144        errno_t rc;
     145
    144146        switch (event->key) {
    145147        case KC_S:
    146148                printf("Save!\n");
    147149                (void) gfx_glyph_bmp_save(fedit->gbmp);
     150                rc = gfx_typeface_save(fedit->typeface, "/test.tpf");
     151                if (rc != EOK)
     152                        printf("Error saving typeface.\n");
    148153                font_edit_paint(fedit);
    149154                break;
Note: See TracChangeset for help on using the changeset viewer.