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

Next Page > Hide TOC

Core Text Utilities Reference

Framework
Declared in
CoreText.h

Overview

This reference document describes miscellaneous symbols that are either used by many different opaque types or apply to Core Text as a whole.

Functions

CTGetCoreTextVersion

Returns the version of the Core Text framework.

uint32_t CTGetCoreTextVersion( void );

Return Value

The version number. This value is for comparison with the constants listed in “Core Text Framework Version Numbers”.

Discussion

This function returns a number indicating the version of the Core Text framework. Note that framework version is not always an accurate indicator of feature availability. The recommended way to use this function is first to check that the function pointer is non-null, followed by calling it and comparing its result to a defined constant (or constants). For example, to determine whether the CoreText API is available:

if (&CTGetCoreTextVersion != NULL && CTGetCoreTextVersion() >= kCTVersionNumber10_5) {
 // CoreText API is available
}
Availability
Declared In
CoreText.h

Constants

Core Text Framework Version Numbers

Version numbers of the Core Text framework.

#define kCTVersionNumber10_5 0x00020000

Constants
kCTVersionNumber10_5

The Core Text framework version in Mac OS X version 10.5.

Available in Mac OS X v10.5 and later.

Declared in CoreText.h

Declared In
CoreText.h

Next Page > Hide TOC


Last updated: 2007-04-21




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