D2Editor:setMainFont(family, style)
D2Editor:setMainFont(family, style [, fontSize]) -- API Level 2.3
Sets the main font family (“serif” or “sansserif”) and style (“r”, “b”, “i”, “bi”). The new font size parameter introduced in platform.apiLevel = '2.3' is optional.
Style |
Description |
---|---|
r b i bi |
Regular Bold Italic Bold and Italic |
Returns the text editor object.
Introduced in platform.apiLevel = '2.0'
Extended in platform.apiLevel = ‘2.3’