Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

< Previous PageNext Page > Hide TOC

Letter Case Feature Type

The letter case feature type (kLetterCaseType) is used to specify changes to letter case in scripts where case has meaning. This feature changes only the appearance of the letter; the string typed by the user remains invariant. If the string is typed using lowercase letters, the string remains lowercase.

Figure B-9 shows text in which different letter case feature selectors have been applied. The first line of text is drawn with no case conversion. The second line is drawn with the all caps feature enabled. The third line is drawn with the initial caps and small caps feature enabled.

Note: Contrary to common perception, the small caps style is not simply the use of capital letters in a smaller point size. If the font contains true small caps glyphs, you can specify them with a letter case feature selector, and ATSUI uses them.


Figure B-9  Text drawn with different letter case feature selectors

Text drawn with different letter case feature selectors

If the font supports the letter case feature type, you can select features that specify case changes such as those shown in Table B-13. This is an exclusive feature type.

Table B-13  Selectors for the letter case feature

Feature selector

Description

kUpperAndLowerCaseSelector

Specifies no case conversion. This leaves letters in whichever case the user specifies. This is the default setting.

kAllCapsSelector

Converts all letters to uppercase. This feature is noncontextual.

kAllLowerCaseSelector

Converts all letters to lowercase. This feature is noncontextual.

kInitialCapsSelector

Converts the first letter of a word to uppercase and the remaining letters to lowercase. This feature is contextual.

kInitialCapsAndSmallCapsSelector

Converts the first letter of a word to uppercase and the remaining letters to small caps. This feature is contextual.



< Previous PageNext Page > Hide TOC


Last updated: 2007-07-10




Did this document help you?
Yes: Tell us what works for you.

It’s good, but: Report typos, inaccuracies, and so forth.

It wasn’t helpful: Tell us what would have helped.
Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2007 Apple Inc.
All rights reserved. | Terms of use | Privacy Notice