Home > front end >  The font parameters of c # Graphics. DrawString () method
The font parameters of c # Graphics. DrawString () method

Time:03-06

Now I need to use a project Graphics. DrawString draw text () method,
Myself installed a travel model Chinese Font, the Graphics. The DrawString () of the Font parameters of the Font. The font_family assignment "Chinese travel model" is not normal rendering text,


Opens at font file names, and after the display name is "Chinese travel model
"
Later, baidu has examined the, Chinese travel model have an English name STXingkai , parameters of the font. Font_family="STXingkai", normal map out Chinese travel model,

Results artists today and give me a si yuan song typeface - bold font file, and give the whole meng,

Parameters of the font. Font_family try to assign the "siyuan tahoma", "si yuan song typeface CN", "si yuan song typeface CN blackbody", "si yuan song typeface CN Heavy" and some of the Internet to the English name, the results are not line, also want to print out all the system font file name, print it out as a result, the font is called "siyuan tahoma CN Heavy", not tried, nor like CSS own named fontName... PS: Chinese travel model system font name printed fontName travel model is also the Chinese language, but the actual assignment STXingkai, to draw text,
I'm confused, how to fill this parameter? How can I know the accurate font_family font?
Beg bosses refers to the way, thank you very much ~ ~ ~

CodePudding user response:

Under the revised

Is the font. FamiliyName assignment, font_family is my custom,
  • Related