SolidWorks multiline sketch text API guidance

We import SolidWorks sketch text into our CAM system and need to preserve multiline layout accurately.

Could you clarify the intended way to handle multiline sketch text in the API?

We currently read ISketchText.Text, ITextFormat.CharHeight, and ITextFormat.LineSpacing, but it is unclear whether LineSpacing is:

  • additive leading
  • a ratio/factor
  • already inclusive of font metrics such as ascender, descender, and line gap

We also want to confirm whether multiline sketch text should be treated as:

  • one ISketchText object with embedded line breaks, or
  • separate text entities positioned manually

Example:

ISketchText skText = segment as ISketchText;

ITextFormat tf = skText.GetTextFormat() as ITextFormat;

double height = tf.CharHeight;

double lineSpacing = tf.LineSpacing;

string rawText = skText.Text;

// Should baseline advance be:

// height + lineSpacing

// or some font-based spacing derived from the font?

Here is the part we are dealing with. The line spacing needs to be exactly 1 inch when we import it.