getCMD static method
Implementation
static Future<String> getCMD(TextLayer e, Map<String, FontFile> fonts) {
var fontFile = e.fontFile;
if (e.fontFamily != null) {
fontFile ??= fonts[e.fontFamily];
}
return TextCmd(
e.text,
fontcolor: e.color,
fontsize: e.fontSize,
start: e.start,
end: e.end,
bgcolor: e.bgColor,
rotate: e.rotate,
x: e.x?.toDouble(),
y: e.y?.toDouble(),
fontFile: fontFile,
).toFutureString();
}