@@ -1020,7 +1020,7 @@ static bool dotextmark_callback(void *p_context, const MCTextLayoutSpan *p_span)
10201020 t_font . handle = t_font_handle;
10211021
10221022 bool t_success;
1023- t_success = context -> device -> DrawText ((const MCCustomPrinterGlyph *)p_span -> glyphs, p_span -> glyph_count, (const char *)t_bytes, t_clusters, t_font, context -> paint, context -> transform, context -> clip);
1023+ t_success = context -> device -> DrawText ((const MCCustomPrinterGlyph *)p_span -> glyphs, p_span -> glyph_count, (const char *)t_bytes, t_byte_count, t_clusters, t_font, context -> paint, context -> transform, context -> clip);
10241024
10251025 MCMemoryDeleteArray (t_clusters);
10261026
@@ -1710,9 +1710,9 @@ class MCLoggingPrintingDevice: public MCCustomPrintingDevice
17101710 return true ;
17111711 }
17121712
1713- bool DrawText (const MCCustomPrinterGlyph *glyphs, uint32_t glyph_count, const char *text , const uint32_t *clusters, const MCCustomPrinterFont& font, const MCCustomPrinterPaint& paint, const MCCustomPrinterTransform& transform, const MCCustomPrinterRectangle& p_clip)
1713+ bool DrawText (const MCCustomPrinterGlyph *glyphs, uint32_t glyph_count, const char *text_bytes, uint32_t text_byte_count , const uint32_t *clusters, const MCCustomPrinterFont& font, const MCCustomPrinterPaint& paint, const MCCustomPrinterTransform& transform, const MCCustomPrinterRectangle& p_clip)
17141714 {
1715- if (!m_target -> DrawText (glyphs, glyph_count, text , clusters, font, paint, transform, p_clip))
1715+ if (!m_target -> DrawText (glyphs, glyph_count, text_bytes, text_byte_count , clusters, font, paint, transform, p_clip))
17161716 return Failed (" DrawText" );
17171717 return true ;
17181718 }
@@ -1899,9 +1899,9 @@ class MCDebugPrintingDevice: public MCCustomPrintingDevice
18991899 return true ;
19001900 }
19011901
1902- bool DrawText (const MCCustomPrinterGlyph *glyphs, uint32_t glyph_count, const char *text , const uint32_t *clusters, const MCCustomPrinterFont& font, const MCCustomPrinterPaint& paint, const MCCustomPrinterTransform& transform, const MCCustomPrinterRectangle& p_clip)
1902+ bool DrawText (const MCCustomPrinterGlyph *glyphs, uint32_t glyph_count, const char *text_bytes, uint32_t text_byte_count , const uint32_t *clusters, const MCCustomPrinterFont& font, const MCCustomPrinterPaint& paint, const MCCustomPrinterTransform& transform, const MCCustomPrinterRectangle& p_clip)
19031903 {
1904- Enter (" begin text '%s' with clip (%f, %f)-(%f, %f)" , text ,
1904+ Enter (" begin text '%s' with clip (%f, %f)-(%f, %f)" , text_bytes ,
19051905 p_clip . left, p_clip . top, p_clip . right, p_clip . bottom);
19061906 for (uint32_t i = 0 ; i < glyph_count; i++)
19071907 Print (" glyph %d at (%f, %f)" , glyphs[i] . id, glyphs[i] . x, glyphs[i] . y);
0 commit comments