How to customize the renderEmbeddedLabel() in bpmnrenderer?

we have requirement to show only 25 characters of the label, rest of the charatcters should show in ellipsis at the end. we successfully override the renderExternalLabel() in customRendere (which is extending the bpmnrenderer) , however we were not able to override the renderEmbeddedLabel(),

could you please provide any example how to override the renderEmbeddedLabel() especially for UserTask, ServiceTask


Please share a CodeSandbox that reproduces your issue in a way that we can inspect it.