kaigouthro

font

kaigouthro Zaktualizowano   
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
Informacje o Wersji:
v2
added:

// 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)
Informacje o Wersji:
v3

Update, slightly faster overall and fewer local scopes created for large scripts, fixed typo on //@param for string input
Informacje o Wersji:
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
Informacje o Wersji:
v5

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

Działając zgodnie z prawdziwym duchem TradingView, autor opublikował ten kod Pine jako bibliotekę o otwartym kodzie źródłowym, aby inni programiści Pine z naszej społeczności mogli go ponownie wykorzystać. Brawa dla niego! Możesz korzystać z tej biblioteki prywatnie lub w innych publikacjach typu open source, ale ponowne wykorzystanie tego kodu w publikacji podlega Regulaminowi.

Wyłączenie odpowiedzialności

Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.

Chcesz skorzystać z tej biblioteki?

Skopiuj poniższy wiersz i wklej go w swoim skrypcie.