0

I want to create a console application but it will sometimes display a large amount of text that I will need to read. So I want to make it to use a custom font that will be more readable (for example like Roboto).

The problem is that firstly I want it to display it wherever the exe is launched (even if the computer doesn't have Roboto installed), and secondly I want the entire program to be a standalone exe, which means that including the font in a local folder and importing it is not an option.

I tried to search google and other forums but I couldn't find a solution that fits. If anyone can think of a solution please do tell...

yacc
  • 2,915
  • 4
  • 19
  • 33
David Shnayder
  • 333
  • 4
  • 14
  • @MarcGravell dont think that is going to work for a console app – leppie Jan 15 '20 at 10:19
  • Some links I found, how to load font into PrivateFontCollection from resource - https://stackoverflow.com/questions/15949057/addfontfile-from-resources - how to change console font - https://learn.microsoft.com/en-us/dotnet/api/system.console?redirectedfrom=MSDN&view=netframework-4.8 (example in documentation, including p/invoke methods), cobbling this together might work. – Lasse V. Karlsen Jan 15 '20 at 10:24
  • Try a different terminal [Top 15 Terminals](https://www.puttygen.com/windows-terminal-emulators) ConEmu you can customise fonts – Mahan.A Jan 15 '20 at 10:25
  • 1
    @leppie console app? wow, I didn't read that; yeah, abandon all hope! (if you need or want to control the font: you're not a console app) – Marc Gravell Jan 15 '20 at 10:30
  • 1
    @Mahan.A this would've worked if I didn't want to make it a standalone exe that will execute the same on my computers... your solution would require me to install a whole new terminal in the computer I want to run my program on which will be even more of an hassle than installing a font.... – David Shnayder Jan 20 '20 at 11:52

0 Answers0