We help IT Professionals succeed at work.

How do I retrieve (and use) font  "script" ?

Medium Priority
270 Views
Last Modified: 2013-12-03
The Font Common Dialogue box allows you to choose a font "script" (eg. "Western"), but how can I detect which one was selected?

And assuming I have the Script, how can I use it? Ideally, I want to specify the Script when printing text in a Picturebox (using Picture1.Print or an API call).
Comment
Watch Question

Commented:
 CommonDialog1.Flags = cdlCFScreenFonts
  CommonDialog1.ShowFont
  Picture1.Font.Name = CommonDialog1.FontName
  Picture1.Font.Bold = CommonDialog1.FontBold
  Picture1.Font.Italic = CommonDialog1.FontItalic
  Picture1.Font.Size = CommonDialog1.FontSize
  Picture1.Font.Strikethrough = CommonDialog1.FontStrikethru
  Picture1.Font.Underline = CommonDialog1.FontUnderline

Author

Commented:
cliffABB, thanks... but this is exactly what I am doing already.
In addition to all the properties you listed, I need to know which font "script" was selected (eg. "Western").

As far as I can tell, there is no property returned by the Common Dialogue which gives this.

Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
Shchuka, excellent! Thanks!
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.