@@ -123,8 +123,8 @@ void mr_draw_string_textbuffer(mr_t *mr,
123123 mr_get_charcode_callback_t get_charcode_callback );
124124
125125void mr_draw_bitmap_framebuffer_monochrome_vertical (mr_t * mr ,
126- const mr_rectangle_t * rectangle ,
127- const uint8_t * bitmap );
126+ const mr_rectangle_t * rectangle ,
127+ const uint8_t * bitmap );
128128void mr_draw_bitmap_framebuffer_color (mr_t * mr ,
129129 const mr_rectangle_t * rectangle ,
130130 const uint8_t * bitmap );
@@ -317,7 +317,7 @@ void mr_set_font(mr_t *mr,
317317 * @param mr The mcu-renderer instance.
318318 * @param str The string.
319319 * @param rectangle The rectangle containing the text.
320- * @param offset The upper left corner of the text relative to the text rectangle.
320+ * @param offset The upper (ascent) left corner of the text relative to the text rectangle.
321321 */
322322void mr_draw_text (mr_t * mr ,
323323 const char * str ,
@@ -330,7 +330,7 @@ void mr_draw_text(mr_t *mr,
330330 * @param mr The mcu-renderer instance.
331331 * @param str The string.
332332 * @param rectangle The rectangle containing the text.
333- * @param offset The upper left corner of the text relative to the text rectangle.
333+ * @param offset The upper (ascent) left corner of the text relative to the text rectangle.
334334 */
335335void mr_draw_utf8_text (mr_t * mr ,
336336 const uint8_t * str ,
@@ -343,7 +343,7 @@ void mr_draw_utf8_text(mr_t *mr,
343343 * @param mr The mcu-renderer instance.
344344 * @param str The string.
345345 * @param rectangle The rectangle containing the text.
346- * @param offset The upper left corner of the text relative to the text rectangle.
346+ * @param offset The upper (ascent) left corner of the text relative to the text rectangle.
347347 */
348348void mr_draw_utf16_text (mr_t * mr ,
349349 const uint16_t * str ,
@@ -353,7 +353,7 @@ void mr_draw_utf16_text(mr_t *mr,
353353/**
354354 * Returns the pixel width of a C-string.
355355 *
356- * The pixel width is calculated from initial to final pen position .
356+ * The pixel width is calculated adding the respective glyph widths .
357357 *
358358 * @param mr The mcu-renderer instance.
359359 * @param str The string.
@@ -366,7 +366,7 @@ int16_t mr_get_text_width(mr_t *mr,
366366/**
367367 * Returns the pixel width of a UTF-8 string.
368368 *
369- * The pixel width is calculated from initial to final pen position .
369+ * The pixel width is calculated adding the respective glyph widths .
370370 *
371371 * @param mr The mcu-renderer instance.
372372 * @param str The string.
@@ -379,7 +379,7 @@ int16_t mr_get_utf8_text_width(mr_t *mr,
379379/**
380380 * Returns the pixel width of a UTF-16 string.
381381 *
382- * The pixel width is calculated from initial to final pen position .
382+ * The pixel width is calculated adding the respective glyph widths .
383383 *
384384 * @param mr The mcu-renderer instance.
385385 * @param str The string.
0 commit comments