Changing fonts in notepad type program
I have designed a notepad program which is fairly basic atm(allows for saving, opening, deleting, and setting color, size, and style of some font.)
I am trying to allow the program to let me change the font type without altering previously written text in the textArea. I got it to work but it sets all text to the new font, not just any font typed after the change.
Any advice? I have some thoughts which are a bit hard to explain, and don't really work.
While I have a thread open, I'd also like to ask if there is a way to set one font to have multiple styles(bold, and italics for instance), or are there ways to add underlines, strike through in the text?
One last thing, is there any way to extract all the fonts on a given system?