Fonts and disability accessibility

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Trace C

    Fonts and disability accessibility

    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
  • Eric Cadwell

    #2
    Re: Fonts and disability accessibility

    You can override the WndProc method and listen to the message stream
    directly or simply register the form's SystemColorsCha nged 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.SystemColo rsChanged += new
    System.EventHan dler(this.Form1 _SystemColorsCh anged);

    private void Form1_SystemCol orsChanged(obje ct sender, System.EventArg s 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=e...hreadm=pal_a.9
    0951%24wk4.4755 8%40twister.nyr oc.rr.com&rnum= 1&prev=/groups%3Fhl%3De n%26lr%3
    D%26ie%3DUTF-8%26oe%3DUTF-8%26q%3DFromLog Font%2BSystem)

    HTH;
    Eric Cadwell



    Comment

    Working...