scarpe-team / scarpe

Scarpe - shoes but running on webview

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Core DSL] para

Schwad opened this issue · comments

para

From the canonical manual Screenshot 2023-02-03 at 10 59 45 Screenshot 2023-02-03 at 10 59 54

"Para" returns text. We're also including other text rendering methods in this issue such as "subtitle", "caption", etc.

Tasklist

  • Initialize within the gem
  • Migrate def render to use our native HTML renderer
  • Support a collection of arguments, joined into one string.
    • e.g. para 'this', 'is', 'a', 'string'
  • stroke kwarg to add color @christhesoul
  • Methods to add

    • banner; 48px
    • title; 34px
    • subtitle; 26px;
    • tagline; 18px;
    • caption; 14px;
    • para; 12px;
    • inscription; 10px;
      • Alias ins for inscription
  • Options

    • size @DRBragg
      • Manually resize this text: e.g. para 'hi', size: 34
      • Like their HTML counterparts
    • e.g. para "hello", strong("dude"), em("how's it going?")
    • strong
    • em
    • code

The size option seems like a nice way to ease in. I'll tackle that first

@DRBragg FYI there is open PR which will make adding size easy

#55 handles the size option. Should make the size methods fairly easy