开发者

Getting the font file Name/Location in FontDialog C#

开发者 https://www.devze.com 2023-01-19 20:11 出处:网络
What i need to do is have the font file name (not Font Family name) after selecting a font in the FontDialog,

What i need to do is have the font file name (not Font Family name) after selecting a font in the FontDialog, so that if i selected "Harlow Solid Semi" from the Dialog, i need to get the file name, which is "HARLOWSI.TTF" so is it possible ? if not using the fontDialog, can it be done other way ? Note: i need the user to see a sample text from the font before choosing it,开发者_开发知识库 so that listing the files in c:\windows\fonts directly will not solve the issue.

Thanks in Advance.

0

精彩评论

暂无评论...
验证码 换一张
取 消