言語: 日本語
  • C#
  • JS
  • Boo

スクリプト言語

お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。

TextGenerator.GetPreferredWidth

public function GetPreferredWidth(str: string, settings: TextGenerationSettings): float;

Parameters

str Generation text.
settings Settings for generation.

Returns

float Preferred width.

Description

Given a string and settings, returns the preferred width for a container that would hold this text.