PINE LIBRARY
Updated

font

2 187
Library "font"
Unicode Characters Replacement function for strings.

uni(_str, _number)
  Unicode Font Substitutee
  Parameters:
    _str: Input Strinbg
    _number: Font by Int input

uni(_str, _number)
  Unicode Font Substitutee
  Parameters:
    _str: Input Strinbg
    _number: Font by Name input
Release Notes
v2
added:

Pine Script®
// string names for easy scripting varip _Sans = "Sans" varip _Sans_Italic = "Sans Italic" varip _Sans_Bold = "Sans Bold" varip _Sans_Bold_Italic = "Sans Bold Italic" varip _Sans_Serif = "Sans-Serif" varip _Sans_Serif_Italic = "Sans-Serif Italic" varip _Sans_Serif_Bold = "Sans-Serif Bold" varip _Sans_Serif_Bold_Italic = "Sans-Serif Bold Italic" varip _Fraktur = "Fraktur" varip _Fraktur_Bold = "Fraktur Bold" varip _Script = "Script" varip _Script_Bold = "Script Bold" varip _Double_Struck = "Double-Struck" varip _Monospace = "Monospace" varip _Regional_Indicator = "Regional Indicator" varip _Small = "Small" varip _Full_Width = "Full Width" varip _Circled = "Circled" // by number _string = font.uni(' your string input', 1) // by name _string = font.uni(' your string input', _Sans)

Release Notes
v3

Update, slightly faster overall and fewer local scopes created for large scripts, fixed typo on //param for string input
Release Notes
v4
Now with Whitespace chars for a shortcut for those who use.
sorted largest at top to smallest.
any errors default to thin space.

int or string inputs.

Added:
space(_type)
  Hidden WhiteSpace Characterrs
  Parameters:
    _type: (string) WhiteSpace Type
  Returns: String Whitespace
Release Notes
v5

Added:
indent(_size)
  Indenter
  Parameters:
    _size: (intt) Number of tabs
  Returns: String of N number tabs

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.