Returning 0
for default is the expected behavior. See the docs: https://adobexdplatform.com/plugin-docs/reference/scenegraph.html#Text-lineSpacing.
It sounds like you might be interested in an API to get the overall font metrics of a Text object. Please upvote this request if so: Get font metrics.