
24.03.2021, 00:45
|
|
Флудер
Регистрация: 18.03.2013
Сообщений: 4,080
С нами:
6921957
Репутация:
183
|
|
C++:
Код:
ImFontConfig _config
;
static
const
ImWchar icons_ranges
[
]
=
{
0xf000
,
0xf3ff
,
0
}
;
_config
.
MergeMode
=
false
;
str
=
string
(
buffer
)
+
"\\Fonts\\consolab.ttf"
;
fs
::
path path
=
fs
::
current_path
(
)
/
"SAMPFUNCS"
/
"All in one"
/
"Kill Informer"
;
io
.
Fonts
->
AddFontFromFileTTF
(
str
.
c_str
(
)
,
16
,
&
_config
,
io
.
Fonts
->
GetGlyphRangesCyrillic
(
)
)
;
vector
v
=
{
"FA 5 Brands"
,
"FA 5 Regular"
,
"FA 5 Solid"
}
;
for
(
const
auto
&
it
:
v
)
{
_config
.
MergeMode
=
true
;
str
=
path
.
string
(
)
+
"\\"
+
it
+
".otf"
;
io
.
Fonts
->
AddFontFromFileTTF
(
str
.
c_str
(
)
,
20
,
&
_config
,
icons_ranges
)
;
}
Для примера. Код 100 процентов рабочий.
|
|
|