Instance Method インスタンスメソッド

resolve(_:)

Gets a version of a text view that’s fixed with the current values of the graphics context’s environment.

Declaration 宣言

func resolve(_ text: Text) -> GraphicsContext.ResolvedText

Return Value 戻り値

A text view that’s resolved into the current context’s environment, taking into account environment values like the display resolution and current color scheme.

Parameters パラメータ

text

The Text view to resolve.

Discussion 議論

You can measure the resolved text by calling its measure(in:) method. You can draw the resolved text with the context’s draw(_:in:) or draw(_:at:anchor:) method.

See Also 参照

Drawing Text