Changes in uspace/lib/draw/font.c [b7fd2a0:38d150e] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/draw/font.c

    rb7fd2a0 r38d150e  
    6060}
    6161
    62 errno_t font_get_metrics(font_t *font, font_metrics_t *metrics) {
     62int font_get_metrics(font_t *font, font_metrics_t *metrics) {
    6363        return font->backend->get_font_metrics(font->backend_data, metrics);
    6464}
    6565
    66 errno_t font_resolve_glyph(font_t *font, wchar_t c, glyph_id_t *glyph_id) {
     66int font_resolve_glyph(font_t *font, wchar_t c, glyph_id_t *glyph_id) {
    6767        return font->backend->resolve_glyph(font->backend_data, c, glyph_id);
    6868}
    6969
    70 errno_t font_get_glyph_metrics(font_t *font, glyph_id_t glyph_id,
     70int font_get_glyph_metrics(font_t *font, glyph_id_t glyph_id,
    7171    glyph_metrics_t *glyph_metrics)
    7272{
     
    7575}
    7676
    77 errno_t font_render_glyph(font_t *font, drawctx_t *context, source_t *source,
     77int font_render_glyph(font_t *font, drawctx_t *context, source_t *source,
    7878    sysarg_t x, sysarg_t y, glyph_id_t glyph_id)
    7979{
     
    8383
    8484/* TODO this is bad interface */
    85 errno_t font_get_box(font_t *font, char *text, sysarg_t *width, sysarg_t *height)
     85int font_get_box(font_t *font, char *text, sysarg_t *width, sysarg_t *height)
    8686{
    8787        font_metrics_t fm;
    88         errno_t rc = font_get_metrics(font, &fm);
     88        int rc = font_get_metrics(font, &fm);
    8989        if (rc != EOK)
    9090                return rc;
     
    101101                rc = font_resolve_glyph(font, c, &glyph_id);
    102102                if (rc != EOK) {
    103                         errno_t rc2 = font_resolve_glyph(font, U_SPECIAL, &glyph_id);
     103                        int rc2 = font_resolve_glyph(font, U_SPECIAL, &glyph_id);
    104104                        if (rc2 != EOK) {
    105105                                return rc;
     
    121121
    122122/* TODO this is bad interface */
    123 errno_t font_draw_text(font_t *font, drawctx_t *context, source_t *source,
     123int font_draw_text(font_t *font, drawctx_t *context, source_t *source,
    124124    const char *text, sysarg_t sx, sysarg_t sy)
    125125{
     
    128128
    129129        font_metrics_t fm;
    130         errno_t rc = font_get_metrics(font, &fm);
     130        int rc = font_get_metrics(font, &fm);
    131131        if (rc != EOK)
    132132                return rc;
     
    144144                rc = font_resolve_glyph(font, c, &glyph_id);
    145145                if (rc != EOK) {
    146                         errno_t rc2 = font_resolve_glyph(font, U_SPECIAL, &glyph_id);
     146                        int rc2 = font_resolve_glyph(font, U_SPECIAL, &glyph_id);
    147147                        if (rc2 != EOK) {
    148148                                return rc;
Note: See TracChangeset for help on using the changeset viewer.