Автор |
Сообщение |
Hokum
Зарегистрирован: 15.11.2013
Сообщения: 60
|
Новое в 6-ой версии Амика (Highlights of version 6.00)
Unicode (UCN) support in PlotText, PlotTextSetFont, GfxDrawText, GfxTextOut, chart titles, interpretations and commentary windows (allows various graphic annotations / windings )
Как вставить символ из таблицы Unicode в конструкцию
Код: |
PlotText( "Уровень 30-аперля + символ Unicode " , BarCount+1, M22+0, colorRed ); |
Подскажите плз, кто знает??? |
|
|
Посмотреть профиль Отправить личное сообщение |
|
trashfx
Зарегистрирован: 27.06.2015
Сообщения: 90
|
Hokum писал(а): |
Новое в 6-ой версии Амика (Highlights of version 6.00)
Unicode (UCN) support in PlotText, PlotTextSetFont, GfxDrawText, GfxTextOut, chart titles, interpretations and commentary windows (allows various graphic annotations / windings )
Как вставить символ из таблицы Unicode в конструкцию
Код: |
PlotText( "Уровень 30-аперля + символ Unicode " , BarCount+1, M22+0, colorRed ); |
Подскажите плз, кто знает??? |
Код: |
/// @link http://unicode-table.com/de/#dingbats
/// @link http://www.unicodemap.org/
/// @link http://www.unicode.org/
//
// Symbola font
/// @link http://www.fonts2u.com/symbola.font
/// @link http://www.fontsaddict.com/font/symbola.html
//
/// @link http://en.wikipedia.org/wiki/List_of_Unicode_characters
//
// Various arrows:
/// @link http://www.unicode.org/charts/PDF/U2190.pdf
//
// Enclosed alphanumerics:
/// @link http://www.unicode.org/charts/PDF/U2460.pdf
Plot( C, "", colorDefault );
PlotTextSetFont( "\u2665\u2126\u2191\u21d1\u24ee\u261D", "Segoe UI", 30, 20, HighestVisibleValue( C ) / 2 + LowestVisibleValue( C ) / 2 , colorRed );
Title = "A demo of UCN: " + EncodeColor( colorRed ) + "\u2665\u2126\u2191\u20ac\u03a3\u03b2\u2602\u260E\u2735"; |
http://www.amibroker.com/devlog/wp-content/uploads/2015/03/readme5940.html
http://www.amibroker.com/devlog/2015/03/21/amibroker-5-94-0-beta-released/
Цитата: |
AFL: support for UCN (universal character numbers) \uXXXX where XXXX is hexadecimal character code. UCN output works in PlotText/PlotTextSetFont, GfxDrawText, GfxTextOut, Chart titles, Interpretation and Commentary windows. Requires Windows 2000 or higher
For example
heart "\u2764"
sun "\u2600"
star "\u2605"
EURO currency: "\u20ac"
Sigma (greek): "\u03a3"
alpha (greek): "\u03b1"
beta (greek): "\u03b2"
umbrella: "\u2602"
telephone: "\u260e"
hand pointing up "\u261D"
Tables of all UCN/Unicode characters
http://www.unicode.org
http://unicode-table.com/
http://www.unicodemap.org
http://en.wikipedia.org/wiki/List_of_Unicode_characters
Various arrows:
http://www.unicode.org/charts/PDF/U2190.pdf
Enclosed alphanumerics:
http://www.unicode.org/charts/PDF/U2460.pdf
(note: NOT all glyphs (graphical representations of characters) are actually present in current font. This depends on your operating system. For example Segoe UI in Windows 7 has lots of characters, but Windows 8 has more,
if a glyph is missing usually an empty rectangle is drawn). DejaVu free font has lots of glyphs, Symbola free font has lots of weird shapes.
Plot( C, "", colorDefault );
PlotTextSetFont( "\u2665\u2126\u2191\u21d1\u24ee\u261D", "Segoe UI", 30, 20, HighestVisibleValue( C )/2 + LowestVisibleValue( C )/2 , colorRed );
Title = "A demo of UCN: "+EncodeColor(colorRed)+"\u2665\u2126\u2191\u20ac\u03a3\u03b2\u2602\u260E"; |
|
|
|
Посмотреть профиль Отправить личное сообщение |
|
Hokum
Зарегистрирован: 15.11.2013
Сообщения: 60
|
|
Посмотреть профиль Отправить личное сообщение |
|
Bigcowne
Зарегистрирован: 03.05.2018
Сообщения: 2
|
You are my helper I want to thank you so much for imparting to me. |
|
|
Посмотреть профиль Отправить личное сообщение Посетить сайт автора |
|
|
|
Следующая тема
Предыдущая тема
Вы не можете начинать темы Вы не можете отвечать на сообщения Вы не можете редактировать свои сообщения Вы не можете удалять свои сообщения Вы не можете голосовать в опросах Вы не можете вкладывать файлы Вы не можете скачивать файлы
|
|