Rotur
  • Getting Started
  • Your Connection
    • What is a websocket?
    • Connecting
      • Handshake
      • SetID
      • Link
    • Authentication
      • Get User Data
      • Login
    • Rotur Designations
    • Websocket Commands
      • Global Message (gmsg)
      • Private Message (pmsg)
      • Login to rotur (auth)
  • My Account
    • Rotur Account Objects
      • originOS specific keys
    • Requesting my ofsf storage
    • Rotur Badges
    • Transactions and Taxes
  • Assorted APIs
    • rMail
    • avatars.rotur.dev
      • .banners
    • rotur.dev/auth
    • Keys
  • languages
    • RWL
      • Basics
      • Structure
      • Attributes
        • Text
        • Frame
        • Section
      • Alignments and Anchors
    • RTR
      • Basics
      • Structure
      • Functions
        • Mathematical Functions
        • String Functions
        • Array Functions
        • Object Functions
        • Logical Functions
        • Utility Functions
      • Events
      • Examples
    • RDF
  • Claw
    • What is claw
    • Api Endpoints
      • /feed
      • /post
      • /follow
      • /unfollow
      • /followers
      • /following
      • /profile
      • /delete
      • /rate
      • /following_feed
      • /reply
      • /repost
      • /top_posts
      • /search_posts
      • /search_users
  • Web Standard
    • What is this
  • Addons / Extensions
    • Basic Structure
    • Events
      • onload
      • page_load
      • page_focus
    • API
      • Classes
        • Page
          • (static) .new()
          • .getTitle()
        • URL
          • (static) .new()
          • (static) .parse()
          • .format()
          • .getAsyncData()
          • .getFetchUrl()
          • .getTitle()
    • Commands
      • redirect
      • opentab
    • Variables
      • tab_info
      • page_width / height
      • scroll_x / y
Powered by GitBook
On this page
  • Key-Value Pairs
  • font
  • size
  • spacing
  • line_height
  • anchor
  • alignment
  • padding
  • link
  • decoration
  • Flags
  • Redirect
  • Wrapped
Edit on GitHub
  1. languages
  2. RWL
  3. Attributes

Text

Attribute list for any non-block element, this could also be any type, for example a number.

Key-Value Pairs

font

Changes the font used for rendering the text

"Hello World" [font="llama"]

size

The size of the text, the default text size being 10.

"Large Text" [size=20]

spacing

The space between each character in a font

// the space between each character would be x2 what it would normally be
"Wide Text" [spacing=2]

line_height

The space between each line in a font

// the space between each line would be 2x what it would normally be
"Text With\nBig Lines" [line_height=2]

anchor

The side(s) that the text will be neighboring, which can use both their full name and short name so e.g. "bottom right" and "br"

"Im in the corner :3" [anchor="top left"]

alignment

The position from where the element's text will start from:

"Im centered :3" [alignment="center"],
"Im centered from the left" [alignment="left"]

alignments use the same names as anchors.

padding

The space between the text and the border of a frame, the default being 10.

"Ive got padding :P" [padding=100,anchor="tl"]

this doesnt have any affect when the anchor is the center.

link

Sets the text to be clickable to redirect or open a new page for the user

"Funny Website" [link="flufi.web"]

decoration

Sets the text decoration, e.g. hiding the blue text on a link:

"This is actually a link!" [link="flufi.web",decoration="none"]

Flags

Redirect

Used on links to instead of opening a new tab in the browser, redirecting the current page to the link.

"Redirecting link :3" [link="flufi.web",Redirect]

Wrapped

Makes the text automatically wrap against the boundries of the current frame (or window if there is no frame)

"This is super very long and very big text that will be wrapped!" [size=50,Wrapped]
PreviousAttributesNextFrame

Last updated 25 days ago