{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-guides/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Enumeration: SizeMode","description":"Accelerate E&P application development and protect your innovation by consuming our Data and Domain APIs / Platform APIs.","lang":"en-US","meta":[{"name":"robots","content":"noindex"}],"llmstxt":{"hide":true,"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/readme"},"children":["API"]}," / ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/modules/geotoolkit"},"children":["geotoolkit"]}," / ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/modules/geotoolkit.scene"},"children":["scene"]}," / ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/modules/geotoolkit.scene.shapes"},"children":["shapes"]}," / ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/modules/geotoolkit.scene.shapes.text"},"children":["Text"]}," / SizeMode"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"enumeration-sizemode","__idx":0},"children":["Enumeration: SizeMode"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/modules/geotoolkit.scene.shapes"},"children":["shapes"]},".",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/modules/geotoolkit.scene.shapes.text"},"children":["Text"]},".SizeMode"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Enum of size modes (to specify that size mode depends from width and height use SizeMode.FixedWidth | SizeMode.FixedHeight)"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"table-of-contents","__idx":1},"children":["Table of contents"]},{"$$mdtype":"Tag","name":"details","attributes":{"open":"true"},"children":[{"$$mdtype":"Tag","name":"summary","attributes":{},"children":[{"$$mdtype":"Tag","name":"span","attributes":{"style":{"fontSize":"1.25em","fontWeight":"bold"}},"children":["Enumeration Members"]}]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/enums/geotoolkit.scene.shapes.text.sizemode#fixedheight"},"children":["FixedHeight"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/enums/geotoolkit.scene.shapes.text.sizemode#fixedwidth"},"children":["FixedWidth"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/enums/geotoolkit.scene.shapes.text.sizemode#fromfont"},"children":["FromFont"]}]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/enums/geotoolkit.scene.shapes.text.sizemode#fromfontwhenpossible"},"children":["FromFontWhenPossible"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/enums/geotoolkit.scene.shapes.text.sizemode#wrappedwidth"},"children":["WrappedWidth"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/enums/geotoolkit.scene.shapes.text.sizemode#wrappedwidthsplitwords"},"children":["WrappedWidthSplitWords"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/solutions/geotoolkit/apis/enums/geotoolkit.scene.shapes.text.sizemode#wrappedwidthwhenpossible"},"children":["WrappedWidthWhenPossible"]}]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"contents","__idx":2},"children":["Contents"]},{"$$mdtype":"Tag","name":"details","attributes":{"open":"true"},"children":[{"$$mdtype":"Tag","name":"summary","attributes":{},"children":[{"$$mdtype":"Tag","name":"span","attributes":{"style":{"fontSize":"1.25em","fontWeight":"bold"}},"children":["Enumeration Members"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"fixedheight","__idx":3},"children":["FixedHeight"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["• ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["FixedHeight"]}," = ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["2"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Fixed Height: calculates text size based on height"]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"fixedwidth","__idx":4},"children":["FixedWidth"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["• ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["FixedWidth"]}," = ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["1"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Fixed Width: calculates text size based on width"]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"fromfont","__idx":5},"children":["FromFont"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["• ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["FromFont"]}," = ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["0"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["From Font: calculates text size based only on font"]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"fromfontwhenpossible","__idx":6},"children":["FromFontWhenPossible"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["• ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["FromFontWhenPossible"]}," = ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["4"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["From Font when possible: calculates text size based only on font. Makes it fit width/height if text too big."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"wrappedwidth","__idx":7},"children":["WrappedWidth"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["• ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["WrappedWidth"]}," = ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["5"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["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"]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"wrappedwidthsplitwords","__idx":8},"children":["WrappedWidthSplitWords"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["• ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["WrappedWidthSplitWords"]}," = ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["6"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["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"]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"wrappedwidthwhenpossible","__idx":9},"children":["WrappedWidthWhenPossible"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["• ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["WrappedWidthWhenPossible"]}," = ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["7"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["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"]}]}]},"headings":[{"value":"Enumeration: SizeMode","id":"enumeration-sizemode","depth":1},{"value":"Table of contents","id":"table-of-contents","depth":2},{"value":"Contents","id":"contents","depth":2},{"value":"FixedHeight","id":"fixedheight","depth":4},{"value":"FixedWidth","id":"fixedwidth","depth":4},{"value":"FromFont","id":"fromfont","depth":4},{"value":"FromFontWhenPossible","id":"fromfontwhenpossible","depth":4},{"value":"WrappedWidth","id":"wrappedwidth","depth":4},{"value":"WrappedWidthSplitWords","id":"wrappedwidthsplitwords","depth":4},{"value":"WrappedWidthWhenPossible","id":"wrappedwidthwhenpossible","depth":4}],"frontmatter":{"seo":{"title":"Enumeration: SizeMode"}},"lastModified":"2026-02-11T19:54:32.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/solutions/geotoolkit/apis/enums/geotoolkit.scene.shapes.text.sizemode","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}