Recently I started to deal with the Windows Form (C ++ / Cli), and I encountered such a thing. When choosing a font for a label, many fonts are not displayed, but rather look like the default. I would like to know how this can be corrected, or should it be so?

But the main problem is not that ; I am more interested in such a question.

Here I want to install my font (.ttf), for example, downloaded from the Internet. How can I do that? And what does it depend on, will it be displayed in the Windows Form?

  • Why did you get interested in C ++ / CLI? This work is necessary? - Vlad from Moscow
  • Everything is much easier. Still a schoolboy fond of Olympiad programming. So I decided to look at the Windows Form. As it turned out later, the language in which I began to write turned out to be exactly the same c ++ / CLI :) - Dmitry

1 answer 1

In order for the font to be selected in windows forms, you just need to install it in Windows. To do this, either click on the font and click install or simply copy it to the C: \ Windows \ Fonts folder. Don't forget to close and then open the visual after installing the font.

When you run the program on another PC, but remember that the font will not be displayed on the system where it is not installed, then your program should check its presence and install, or you need to bind the font file to our compiled program, but this is another question and until I I know the answer.

  • one
    1 , 2 , 3 . - Alexander Petrov