Fonts and disability accessibility

  • Thread starter Thread starter Trace C
  • Start date Start date
T

Trace C

We are needing to ensure that the fonts in our C# Windows App will
enlarge if the user sets their environment settings on their PC to
large fonts.

I know that to ensure that the fonts size increases, using the forms
default font settings, ensures this. But, the developer might want to
use 2 sized fonts on their screens.

Any ideas?

Thanks,
Trace
 
You can override the WndProc method and listen to the message stream
directly or simply register the form's SystemColorsChanged event.

It's fired whenever a user changes a display property. The documentation is
a little lacking on this event, but it handles colors, fonts, resolutions,
etc. What I don't see is the forms font changing in response to the event.

this.SystemColorsChanged += new
System.EventHandler(this.Form1_SystemColorsChanged);

private void Form1_SystemColorsChanged(object sender, System.EventArgs e)
{
MessageBox.Show("Display Setting Changed");
}

The next task would be to read a system font and check it's size. Here's a
good place to start:
(http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=pal_a.9
0951%24wk4.47558%40twister.nyroc.rr.com&rnum=1&prev=/groups%3Fhl%3Den%26lr%3
D%26ie%3DUTF-8%26oe%3DUTF-8%26q%3DFromLogFont%2BSystem)

HTH;
Eric Cadwell
http://www.origincontrols.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top