问题
I need to get the font (System.drawing.Font), with the given postscript name. For example, if I give the input as "CourierNewPSMT", the Courier font should be loaded.
Similarly if "Arial-Black" is the input, the "Arial Black" font should be loaded.
Any ideas??
Note : "Arial-Black" is the postscript name of "Arial Black" font. "CourierNewPSMT" is the postcript name of "Courier New" font.
Thanks in advance.
Regards, James
回答1:
If you're on a Mac, you can look at the font in Font Book and go under View › Show Font Info
You should see all the different naming conventions listed.
来源:https://stackoverflow.com/questions/5775706/c-sharp-get-font-from-postscript-name