Changeset 26653c9 in mainline for uspace/lib/fbfont


Ignore:
Timestamp:
2020-10-22T09:50:18Z (5 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
dcfd422
Parents:
70814b8e
git-author:
Jiri Svoboda <jiri@…> (2020-10-22 17:50:34)
git-committer:
Jiri Svoboda <jiri@…> (2020-10-22 09:50:18)
Message:

Move fixed width font to its own library, libfbfont

We've actually three copies, one in kernel/, one in output server
(not used anymorei, removed), one in libdraw (now moved to separate library
libfbfont). So we are left with two copies, that could be coalesced
somehow in the future.

Location:
uspace/lib/fbfont
Files:
2 added
2 moved

Legend:

Unmodified
Added
Removed
  • uspace/lib/fbfont/include/fbfont/font-8x16.h

    r70814b8e r26653c9  
    11/*
    22 * Copyright (c) 2005 Martin Decky
     3 * Copyright (c) 2012 Petr Koupy
    34 * All rights reserved.
    45 *
     
    3637#define FONT_8X16_H_
    3738
    38 #include <sys/types.h>
     39#include <stdint.h>
     40#include <str.h>
    3941
    4042#define FONT_GLYPHS     2899
    4143#define FONT_WIDTH      8
    4244#define FONT_SCANLINES  16
     45#define FONT_ASCENDER   12
    4346
    44 extern uint16_t fb_font_glyph(const char32_t);
     47extern uint16_t fb_font_glyph(const char32_t, bool *);
    4548extern uint8_t fb_font[FONT_GLYPHS][FONT_SCANLINES];
    4649
  • uspace/lib/fbfont/src/font-8x16.c

    r70814b8e r26653c9  
    2828 */
    2929
    30 /** @addtogroup draw
     30/** @addtogroup libfbfont
    3131 * @{
    3232 */
     
    3535
    3636#include <stdint.h>
    37 #include <draw/gfx.h>
     37#include <str.h>
     38#include "../include/fbfont/font-8x16.h"
    3839
    3940/** Convert character to font glyph index
Note: See TracChangeset for help on using the changeset viewer.