PINE LIBRARY
Updated font

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
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
v2added:
// 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
v3Update, slightly faster overall and fewer local scopes created for large scripts, fixed typo on //param for string input
Release Notes
v4Now 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
v5Added:
indent(_size)
Indenter
Parameters:
_size: (intt) Number of tabs
Returns: String of N number tabs
Pine library
In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in publications is governed by House Rules.
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.
Pine library
In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in publications is governed by House Rules.
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.