Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use Large Text Accessibility feature in iOS app

In iOS devices it is possible to set Large Text in the Accessibility Settings. The user can specify different font sizes here. I would like to use this font size in my app as well. I haven't found anything about accessing this font size in my app in the Accessibility Program Guide. It only mentions that the standard Apple apps Mail, Contacts, Calendars etc are using it. Does anyone know if this information is accessible when developing an app?

The static -FontSize methods of UIFont also do not return different values when the Large Text feature is set.

(NOTE: Not to be confused with iOS 7's new Dynamic Type. This is a different, older option under the Accessibility settings.)

This is what iOS 6's Large Type setting looks like.

like image 233
lammert Avatar asked May 17 '13 09:05

lammert


People also ask

How do you enlarge text on apps?

To make your font size smaller or larger: On your device, open the Settings app. Search and select Font size. To change your preferred font size, move the slider left or right.

How do you use zoom accessibility on iPhone?

Go to Settings > Accessibility > Zoom, then turn on Zoom. Adjust any of the following: Follow Focus: Track your selections, the text insertion point, and your typing. Smart Typing: Switch to Window Zoom when a keyboard appears.

What are the two most significant features in iOS accessibility for blind people?

The aim of this post is to explain to sighted people how to set up voice control on Apple iPhones for friends or family who are visually impaired or blind. The two main tools for using your phone with voice are VoiceOver which reads the screen and options and the newer Siri voice commands.

How do I make the text bigger on my iPhone apps?

Go to Settings > Accessibility, then select Display & Text Size. Tap Larger Text for larger font options. Drag the slider to select the font size you want.


2 Answers

It's not accessible using documented APIs.

Just for fun though: (do not use in a real app, it will probably get you rejected from the store)

It's stored under com.apple.Accessibility.plist, key preferredFontSize

MobileNotes.app (and presumably the others) get it using the function

extern float _UIAccessibilityLargeTextFontSize(float);

(it's so undocumented they made sure to start it with an underscore.)

like image 187
cobbal Avatar answered Nov 11 '22 03:11

cobbal


Accessibility settings is not accessible through iOS SDK. In iOS 7, you can support Dynamic Type, which allows you to set any font to the system font in the size defined by the user by calling +preferredFontWithTextStyle:.

like image 20
Abdullah Md. Zubair Avatar answered Nov 11 '22 02:11

Abdullah Md. Zubair