Contents

CTRubyAnnotationCreateWithAttributes(_:_:_:_:_:)

Creates an immutable ruby annotation object with the specified attributes.

Declaration

func CTRubyAnnotationCreateWithAttributes(_ alignment: CTRubyAlignment, _ overhang: CTRubyOverhang, _ position: CTRubyPosition, _ string: CFString, _ attributes: CFDictionary) -> CTRubyAnnotation

Parameters

  • 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 attributes parameter.

  • 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