Język

HyphenationMode Enum

Definition

Specifies how a measured-text builder computes hyphenation information.

public enum HyphenationMode
type HyphenationMode = 
Inheritance
HyphenationMode

Fields

Name Value Description
None 0

A value for hyphenation calculation mode. This value indicates that no hyphenation points are calculated.

Android reference for android.graphics.text.MeasuredText.Builder.HYPHENATION_MODE_NONE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Normal 1

A value for hyphenation calculation mode. This value indicates that hyphenation points are calculated.

Android reference for android.graphics.text.MeasuredText.Builder.HYPHENATION_MODE_NORMAL.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Fast 2

A value for hyphenation calculation mode. This value indicates that hyphenation points are calculated with faster algorithm. This algorithm measures text width with ignoring the context of hyphen character shaping, e.g. kerning.

Android reference for android.graphics.text.MeasuredText.Builder.HYPHENATION_MODE_FAST.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Remarks

Use these values, converted to an integer, with SetComputeHyphenation(Int32). Fast computes hyphenation information without some shaping context, such as kerning around a hyphen. The mode does not select the line breaker's hyphenation frequency.

This enum exposes the HYPHENATION_MODE_* constants from Android 16 MeasuredText.

Applies to