@@ -1037,7 +1037,7 @@ static bool dotextmark_callback(void *p_context, const MCTextLayoutSpan *p_span)
10371037 t_font . handle = t_font_handle;
10381038
10391039 bool t_success;
1040- 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);
1040+ 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);
10411041
10421042 MCMemoryDeleteArray (t_clusters);
10431043
@@ -1727,9 +1727,9 @@ class MCLoggingPrintingDevice: public MCCustomPrintingDevice
17271727 return true ;
17281728 }
17291729
1730- 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)
1730+ 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)
17311731 {
1732- if (!m_target -> DrawText (glyphs, glyph_count, text , clusters, font, paint, transform, p_clip))
1732+ if (!m_target -> DrawText (glyphs, glyph_count, text_bytes, text_byte_count , clusters, font, paint, transform, p_clip))
17331733 return Failed (" DrawText" );
17341734 return true ;
17351735 }
@@ -1916,9 +1916,9 @@ class MCDebugPrintingDevice: public MCCustomPrintingDevice
19161916 return true ;
19171917 }
19181918
1919- 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)
1919+ 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)
19201920 {
1921- Enter (" begin text '%s' with clip (%f, %f)-(%f, %f)" , text ,
1921+ Enter (" begin text '%s' with clip (%f, %f)-(%f, %f)" , text_bytes ,
19221922 p_clip . left, p_clip . top, p_clip . right, p_clip . bottom);
19231923 for (uint32_t i = 0 ; i < glyph_count; i++)
19241924 Print (" glyph %d at (%f, %f)" , glyphs[i] . id, glyphs[i] . x, glyphs[i] . y);
0 commit comments