llocedLineBreaks.toTypedArray().set(lineBreaks);

    console.log('RequiresClientICU:', CanvasKit.ParagraphBuilder.RequiresClientICU());

    builder.setWordsUtf16(mallocedWords);
    builder.setGraphemeBreaksUtf16(mallocedGraphemes);
    builder.setLineBreaksUtf16(mallocedLineBreaks);
    const paragraph = builder.build();

    fontMgr.delete();

    return paragraph;
  }

  function drawParagraph(canvas, paragraph) {
    const fontPaint = new CanvasKit.Paint();
    fontPaint.setStyle(CanvasKit.PaintStyle.