lv_spangroup_get_expand_width() function
get the text content width when all span of spangroup on a line.
Arguments
obj
pointer to a spangroup object.
max_width
if text content width >= max_width, return max_width to reduce computation, if max_width == 0, returns the text content width.
Return value
text content width or max_width.