@font-face {
    font-family: 'MyCustomFont2'; /* Название шрифта */
    src: url('../fonts/font2.ttf') format('truetype'); /* Путь к вашему .ttf файлу */
    font-weight: normal; /* По желанию: normal, bold, italic */
    font-style: normal;  /* По желанию: normal, italic */
}
.text2 {
    font-family: 'MyCustomFont2', sans-serif; /* Указываете подключенный шрифт */
    color: #FFF;
}