Changeset 28a5ebd in mainline for uspace/lib/draw
- Timestamp:
- 2020-06-18T15:39:50Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ce52c333
- Parents:
- 4f663f3e
- Location:
- uspace/lib/draw
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/draw/font.c
r4f663f3e r28a5ebd 64 64 } 65 65 66 errno_t font_resolve_glyph(font_t *font, wchar_t c, glyph_id_t *glyph_id)66 errno_t font_resolve_glyph(font_t *font, char32_t c, glyph_id_t *glyph_id) 67 67 { 68 68 return font->backend->resolve_glyph(font->backend_data, c, glyph_id); … … 95 95 size_t off = 0; 96 96 while (true) { 97 wchar_t c = str_decode(text, &off, STR_NO_LIMIT);97 char32_t c = str_decode(text, &off, STR_NO_LIMIT); 98 98 if (c == 0) 99 99 break; … … 138 138 size_t off = 0; 139 139 while (true) { 140 wchar_t c = str_decode(text, &off, STR_NO_LIMIT);140 char32_t c = str_decode(text, &off, STR_NO_LIMIT); 141 141 if (c == 0) 142 142 break; -
uspace/lib/draw/font/bitmap_backend.c
r4f663f3e r28a5ebd 67 67 } 68 68 69 static errno_t bb_resolve_glyph(void *backend_data, wchar_t c, glyph_id_t *glyph_id)69 static errno_t bb_resolve_glyph(void *backend_data, char32_t c, glyph_id_t *glyph_id) 70 70 { 71 71 bitmap_backend_data_t *data = (bitmap_backend_data_t *) backend_data; -
uspace/lib/draw/font/embedded.c
r4f663f3e r28a5ebd 43 43 #include <draw/drawctx.h> 44 44 45 static errno_t fde_resolve_glyph(void *unused, const wchar_t chr,45 static errno_t fde_resolve_glyph(void *unused, const char32_t chr, 46 46 glyph_id_t *glyph_id) 47 47 { -
uspace/lib/draw/font/pcf.c
r4f663f3e r28a5ebd 143 143 } 144 144 145 static errno_t pcf_resolve_glyph(void *opaque_data, const wchar_t chr,145 static errno_t pcf_resolve_glyph(void *opaque_data, const char32_t chr, 146 146 glyph_id_t *glyph_id) 147 147 { -
uspace/lib/draw/gfx/font-8x16.c
r4f663f3e r28a5ebd 47 47 * 48 48 */ 49 uint16_t fb_font_glyph(const wchar_t ch, bool *found)49 uint16_t fb_font_glyph(const char32_t ch, bool *found) 50 50 { 51 51 if (found) -
uspace/lib/draw/include/draw/font.h
r4f663f3e r28a5ebd 97 97 typedef struct { 98 98 errno_t (*get_font_metrics)(void *, font_metrics_t *); 99 errno_t (*resolve_glyph)(void *, wchar_t, glyph_id_t *);99 errno_t (*resolve_glyph)(void *, char32_t, glyph_id_t *); 100 100 errno_t (*get_glyph_metrics)(void *, glyph_id_t, glyph_metrics_t *); 101 101 errno_t (*render_glyph)(void *, drawctx_t *, source_t *, sysarg_t, … … 110 110 111 111 typedef struct { 112 errno_t (*resolve_glyph)(void *, const wchar_t, glyph_id_t *);112 errno_t (*resolve_glyph)(void *, const char32_t, glyph_id_t *); 113 113 errno_t (*load_glyph_surface)(void *, glyph_id_t, surface_t **); 114 114 errno_t (*load_glyph_metrics)(void *, glyph_id_t, glyph_metrics_t *); … … 118 118 extern font_t *font_create(font_backend_t *, void *); 119 119 extern errno_t font_get_metrics(font_t *, font_metrics_t *); 120 extern errno_t font_resolve_glyph(font_t *, wchar_t, glyph_id_t *);120 extern errno_t font_resolve_glyph(font_t *, char32_t, glyph_id_t *); 121 121 extern errno_t font_get_glyph_metrics(font_t *, glyph_id_t, glyph_metrics_t *); 122 122 extern errno_t font_render_glyph(font_t *, drawctx_t *, source_t *, -
uspace/lib/draw/include/draw/gfx.h
r4f663f3e r28a5ebd 40 40 #include <stdbool.h> 41 41 #include <stddef.h> 42 #include <uchar.h> 42 43 43 44 #define CURSOR_WIDTH 11 … … 52 53 extern uint8_t cursor_mask[]; 53 54 54 extern uint16_t fb_font_glyph(const wchar_t, bool *);55 extern uint16_t fb_font_glyph(const char32_t, bool *); 55 56 extern uint8_t fb_font[FONT_GLYPHS][FONT_SCANLINES]; 56 57
Note:
See TracChangeset
for help on using the changeset viewer.