 fonts not loaded');
    }

    const fontMgr = CanvasKit.FontMgr.FromData(fonts);

    const paraStyle = new CanvasKit.ParagraphStyle({
        textStyle: {
          color: CanvasKit.BLACK,
          fontFamilies: fontFamilies,
          fontSize: 50,
        },
        maxLines: 4,
        textAlign: CanvasKit.TextAlign.Left,
    });

    const builder = CanvasKit.ParagraphBuilder.Make(paraStyle, fontMgr);
    builder.addText(sampleText);

    const text = sampleText;

    // Pass the entire text as one 