Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The Font parameter uses the standard FONT structure in OpenInsight and SRP ActiveX Controls. This allows the service to take into account a font's unique attributes, size, weight, etc.

...

Code Block
// Long sample text. No line breaks, but there should be plenty of word wrapping
String  = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et '
String := 'dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex '
String := 'ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu '
String := 'fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt '
String := 'mollit anim id est laborum.'

// Font used to measure
Font = 'Calibri' : @SVM : 11 : @SVM : 400

// Measure the height given a 300 pixel maximum width
Height = SRP_String("GetHeight", String, Font, 300)

See Also

GetWidth