CTRubyAnnotationCreateWithAttributes(_:_:_:_:_:)
Creates an immutable ruby annotation object with the specified attributes.
Declaration
func CTRubyAnnotationCreateWithAttributes(_ alignment: CTRubyAlignment, _ overhang: CTRubyOverhang, _ position: CTRubyPosition, _ string: CFString, _ attributes: CFDictionary) -> CTRubyAnnotationParameters
- alignment:
An alignment value that specifies how the ruby text and the base text align relative to each other.
- overhang:
An overhang value that specifies how the ruby text overhangs adjacent characters.
- position:
The position of the annotation text.
- string:
An unformatted string whose attributes derive from the
attributesparameter. - attributes:
An attribute dictionary to combine with
string. If you don’t specify Kctfontattributename, the system deduces the ruby annotation’s font from the base text and uses a size factor of the Cfnumber value keyed by Kctrubyannotationsizefactorattributename.
Return Value
A reference to a CTRubyAnnotation object.
Discussion
Use this function to create a ruby annotation object with more precise control of the annotation text.
See Also
Functions
CTFontDescriptorMatchFontDescriptorsWithProgressHandler(_:_:_:)CTFontManagerCompareFontFamilyNames(_:_:_:)CTFontManagerCopyAvailableFontFamilyNames()CTFontManagerCopyAvailableFontURLs()CTFontManagerCopyAvailablePostScriptNames()CTFontManagerCreateFontDescriptorFromData(_:)CTFontManagerCreateFontDescriptorsFromURL(_:)CTFontManagerCreateFontRequestRunLoopSource(_:_:)CTFontManagerEnableFontDescriptors(_:_:)CTFontManagerGetAutoActivationSetting(_:)CTFontManagerGetScopeForURL(_:)CTFontManagerIsSupportedFont(_:)CTFontManagerRegisterFontsForURL(_:_:_:)CTFontManagerRegisterFontsForURLs(_:_:_:)CTFontManagerRegisterGraphicsFont(_:_:)