Skip to content

TParagraphStyle

Stanislav Podolia edited this page Jul 21, 2020 · 6 revisions

Flow Wiki

TParagraphStyle

  • FParagraphStyle

  • CharacterStyle

      * **FDynamicColor**<br />
      	* **color** : [Transform](Transform)\<int\><br />
    
  • TagName

  • LangAttribute

    • ParagraphWidth
      Max width of the paragraph
  • CommonAlignment

    • CropWords
      Crop words that are longer than paragraph width, true by default
      • crop : bool
  • InterlineSpacing

    • ParagraphMetrics
      Get paragraph metrics

      • fn : (FFormMetrics) -> void
    • ParagraphEllipsis
      Paragraph ellipsis bound by width from ParagraphWidth and lines count
      Ignored without ParagraphWidth style and for non-js targets
      fn - truncation callback, true if ellipsis is added

      • lines : int
      • fn : (truncated : bool) -> void
    • Resolution
      Change text resolution multiplier
      Can become blurry with resolution > 1.0 but better positioned
      Helpful in cases when you need properly centered text
      Works and makes sense only in js

      • resolution : double
  • TCssStyle

    • TStyle

      • name : string
    • TStyleWithSelector

      • name : string
      • selector : string
  • ParagraphMargin
    Important that TCharacterStyle is a sub-type even if it is redundant
    Margin around a paragraph

    • top : double
    • bottom : double
  • FullWidth
    Paragraph takes all available width

  • TCharacterStyle

  • CharacterStyle

      * **FDynamicColor**<br />
      	* **color** : [Transform](Transform)\<int\><br />
    
  • TagName

  • LangAttribute

    • TCssStyle
      • TStyle

        • name : string
      • TStyleWithSelector

        • name : string
        • selector : string
Clone this wiki locally