mlreportgen.dom.FontSize class

Package: mlreportgen.dom
Superclasses:

Description

Specifies the size of a font.

Construction

fontSizeObj = FontSize() creates a 12-point font.

fontSizeObj = FontSize(sizeStr) creates the specified font size.

Input Arguments

expand all

Font size, specified in the format valueUnits. Units is an abbreviation for the units. The following abbreviations are valid:

  • px — pixels (default)

  • cm — centimeters

  • in — inches

  • mm — millimeters

  • pc — picas

  • pt — points

Output Arguments

expand all

Font size, represented by an mlreportgen.dom.FontSize object.

Properties

expand all

ID for this document element, specified as a character vector. The DOM generates a session-unique ID when it creates the document element. You can specify your own ID.

Tag for the document element, specified as a character vector.

The DOM generates a session-unique tag when it creates the document element. Structure the tag as class:id, where class is the class of the element and id is the value of the Id property. You can specify a tag to replace the generated tag. Specifying your own tag can make it easier to identify where an issue occurred during document generation.

Font size, in the form valueUnits. Units is an abbreviation for the units. The following abbreviations are valid:

  • px — pixels (default)

  • cm — centimeters

  • in — inches

  • mm — millimeters

  • pc — picas

  • pt — points