Last updated

API / geotoolkit / scene / shapes / Text / SizeMode

Enumeration: SizeMode

shapes.Text.SizeMode

Enum of size modes (to specify that size mode depends from width and height use SizeMode.FixedWidth | SizeMode.FixedHeight)

Table of contents

Enumeration Members

Contents

Enumeration Members

FixedHeight

FixedHeight = 2

Fixed Height: calculates text size based on height


FixedWidth

FixedWidth = 1

Fixed Width: calculates text size based on width


FromFont

FromFont = 0

From Font: calculates text size based only on font


FromFontWhenPossible

FromFontWhenPossible = 4

From Font when possible: calculates text size based only on font. Makes it fit width/height if text too big.


WrappedWidth

WrappedWidth = 5

Wrapped Width: adds line breaks between words to fit it into a user defined width Will not Split words that are larger than Width WARNING* This is an expensive operation and using it for very large pieces of texts is not advised If you know your width and font and will not be changing these it is better to manually split the line yourself


WrappedWidthSplitWords

WrappedWidthSplitWords = 6

WrappedWidthSplitWords: adds line breaks to text to fit it into a user defined width Will Split words that are larger than remains line Width WARNING* This is an expensive operation and using it for very large pieces of texts is not advised If you know your width and font and will not be changing these it is better to manually split the line yourself


WrappedWidthWhenPossible

WrappedWidthWhenPossible = 7

WrappedWidthWhenPossible: adds line breaks to text to fit it into a user defined width Will Split words that are larger than shape Width WARNING* This is an expensive operation and using it for very large pieces of texts is not advised If you know your width and font and will not be changing these it is better to manually split the line yourself