Changeset 2bb6d04 in mainline for uspace/lib/draw/include/draw/font.h


Ignore:
Timestamp:
2019-06-25T14:58:16Z (5 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
aeba767
Parents:
cd9531d3
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-06-13 12:14:16)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-06-25 14:58:16)
Message:

Curb the proliferation of libdraw headers

libdraw provides a lot of ambiguously named headers, which makes it
confusing. This change merges the subdirectories into single headers,
and moves all headers into draw subdirectory, so that it's obvious
at a glance what library the header belongs to.

Compare:

#include <path.h>
#include <source.h>
#include <font/bitmap_backend.h>
#include <font/pcf.h>

vs.

#include <draw/path.h>
#include <draw/source.h>
#include <draw/font.h>

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/lib/draw/include/draw/font.h

    rcd9531d3 r2bb6d04  
    4040#include <stdint.h>
    4141
     42#include "font.h"
    4243#include "surface.h"
    4344#include "source.h"
     
    108109} font_t;
    109110
     111typedef struct {
     112        errno_t (*resolve_glyph)(void *, const wchar_t, glyph_id_t *);
     113        errno_t (*load_glyph_surface)(void *, glyph_id_t, surface_t **);
     114        errno_t (*load_glyph_metrics)(void *, glyph_id_t, glyph_metrics_t *);
     115        void (*release)(void *);
     116} bitmap_font_decoder_t;
     117
    110118extern font_t *font_create(font_backend_t *, void *);
    111119extern errno_t font_get_metrics(font_t *, font_metrics_t *);
     
    120128    sysarg_t, sysarg_t);
    121129
     130extern errno_t bitmap_font_create(bitmap_font_decoder_t *, void *, uint32_t,
     131    font_metrics_t, uint16_t, font_t **);
     132extern errno_t embedded_font_create(font_t **, uint16_t points);
     133extern errno_t pcf_font_create(font_t **, char *path, uint16_t points);
     134
    122135#endif
    123136
Note: See TracChangeset for help on using the changeset viewer.