Cargo Features

[dependencies]
objc2-core-text = { version = "0.3.0", default-features = false, features = ["std", "alloc", "bitflags", "block2", "libc", "objc2", "objc2-core-graphics", "CTDefines", "CTFont", "CTFontCollection", "CTFontDescriptor", "CTFontManager", "CTFontManagerErrors", "CTFontTraits", "CTFrame", "CTFramesetter", "CTGlyphInfo", "CTLine", "CTParagraphStyle", "CTRubyAnnotation", "CTRun", "CTRunDelegate", "CTStringAttributes", "CTTextTab", "CTTypesetter", "SFNTTypes"] }
default = CTDefines, CTFont, CTFontCollection, CTFontDescriptor, CTFontManager, CTFontManagerErrors, CTFontTraits, CTFrame, CTFramesetter, CTGlyphInfo, CTLine, CTParagraphStyle, CTRubyAnnotation, CTRun, CTRunDelegate, CTStringAttributes, CTTextTab, CTTypesetter, SFNTLayoutTypes, SFNTTypes, bitflags, block2, libc, objc2, objc2-core-graphics, std

These default features are set whenever objc2-core-text is added without default-features = false somewhere in the dependency tree.

std default = alloc
alloc std
bitflags default CTFont CTFontCollection CTFontTraits CTLine CTRun CTStringAttributes

Enables bitflags

block2 default

Enables block2

Affects CTFontDescriptor::CTFontDescriptorProgressHandler, CTFontDescriptor::CTFontDescriptorMatchFontDescriptorsWithProgressHandler, CTFontManager::CTFontManagerRegisterFontURLs, CTFontManager::CTFontManagerUnregisterFontURLs, CTFontManager::CTFontManagerRegisterFontDescriptors, CTFontManager::CTFontManagerUnregisterFontDescriptors, CTFontManager::CTFontManagerRegisterFontsWithAssetNames, CTFontManager::CTFontManagerRequestFonts, CTLine::CTLineEnumerateCaretOffsets, CTFontManager::CTFontManagerCreateFontRequestRunLoopSource

libc default

Enables libc

Affects CTFontManager::CTFontManagerCreateFontRequestRunLoopSource

objc2 default

Enables objc2, objc2 of objc2-core-foundation and optional objc2-core-graphics

Affects CTFont::CTFontGetTypographicBoundsForAdaptiveImageProvider, CTFont::CTFontDrawImageFromAdaptiveImageProviderAtPoint

objc2-core-graphics default

Enables objc2-core-graphics

Affects CTFont::CTFontGetGlyphsForCharacters, CTFont::CTFontGetGlyphWithName, CTFont::CTFontCopyNameForGlyph, CTFont::CTFontGetOpticalBoundsForGlyphs, CTFont::CTFontGetVerticalTranslationsForGlyphs, CTFont::CTFontCreatePathForGlyph, CTFont::CTFontDrawGlyphs, CTFont::CTFontGetLigatureCaretPositions, CTFontManager::CTFontManagerRegisterGraphicsFont, CTFontManager::CTFontManagerUnregisterGraphicsFont, CTFrame::CTFrameGetPath, CTFrame::CTFrameDraw, CTGlyphInfo::CTGlyphInfoCreateWithCharacterIdentifier, CTGlyphInfo::CTGlyphInfoGetGlyph, CTGlyphInfo::CTGlyphInfoGetCharacterIdentifier, CTLine::CTLineDraw, CTLine::CTLineGetImageBounds, CTRun::CTRunGetGlyphsPtr, CTRun::CTRunGetGlyphs, CTRun::CTRunGetImageBounds

CTDefines default
CTFont default = bitflags

Enables CFArray, CFBase, CFCGTypes, CFCharacterSet, CFData, CFDictionary and CFString of objc2-core-foundation

Affects CTGlyphInfo::CTGlyphInfoCreateWithGlyphName, CTGlyphInfo::CTGlyphInfoCreateWithGlyph

CTFontCollection default = bitflags

Enables CFArray, CFBase, CFDictionary and CFSet of objc2-core-foundation

CTFontDescriptor default

Enables CFArray, CFBase, CFCGTypes, CFDictionary, CFNumber and CFSet of objc2-core-foundation

Affects CTFont::CTFontCreateWithFontDescriptor, CTFont::CTFontCreateWithFontDescriptorAndOptions, CTFont::CTFontCreateCopyWithAttributes, CTFont::CTFontCopyFontDescriptor, CTFontCollection::CTFontCollectionSortDescriptorsCallback, CTFontCollection::CTFontCollectionCreateMatchingFontDescriptorsSortedWithCallback, CTFontManager::CTFontManagerCreateFontDescriptorFromData, CTFont::CTFontGetBoundingRectsForGlyphs, CTFont::CTFontGetAdvancesForGlyphs, CTFont::CTFontCopyGraphicsFont, CTFont::CTFontCreateWithGraphicsFont

CTFontManager default

Enables CFArray, CFBase, CFBundle, CFData, CFDictionary, CFError, CFRunLoop and CFURL of objc2-core-foundation

CTFontManagerErrors default

Enables CFBase of objc2-core-foundation

CTFontTraits default = bitflags

Enables CFBase of objc2-core-foundation

Affects CTFont::CTFontCreateCopyWithSymbolicTraits, CTFont::CTFontGetSymbolicTraits, CTFontDescriptor::CTFontDescriptorCreateCopyWithSymbolicTraits

CTFrame default

Enables CFArray, CFBase, CFCGTypes and CFDictionary of objc2-core-foundation

Affects CTFramesetter::CTFramesetterCreateFrame

CTFramesetter default

Enables CFAttributedString, CFBase, CFCGTypes and CFDictionary of objc2-core-foundation

CTGlyphInfo default

Enables CFBase of objc2-core-foundation

CTLine default = bitflags

Enables CFArray, CFAttributedString, CFBase and CFCGTypes of objc2-core-foundation

Affects CTTypesetter::CTTypesetterCreateLineWithOffset, CTTypesetter::CTTypesetterCreateLine

CTParagraphStyle default

Enables CFBase of objc2-core-foundation

Affects CTTextTab::CTTextTabCreate, CTTextTab::CTTextTabGetAlignment

CTRubyAnnotation default

Enables CFBase, CFCGTypes and CFDictionary of objc2-core-foundation

CTRun default = bitflags

Enables CFBase, CFCGTypes and CFDictionary of objc2-core-foundation

CTRunDelegate default

Enables CFBase and CFCGTypes of objc2-core-foundation

Affects CTFont::CTFontGetTypographicBoundsForAdaptiveImageProvider, CTFont::CTFontDrawImageFromAdaptiveImageProviderAtPoint

CTStringAttributes default = bitflags

Enables CFBase of objc2-core-foundation

CTTextTab default

Enables CFBase and CFDictionary of objc2-core-foundation

CTTypesetter default

Enables CFAttributedString, CFBase and CFDictionary of objc2-core-foundation

Affects CTFramesetter::CTFramesetterCreateWithTypesetter, CTFramesetter::CTFramesetterGetTypesetter

SFNTLayoutTypes SFNTTypes default