Język

LineBreaker.Builder.SetUseBoundsForWidth(Boolean) Method

Definition

Set true for using width of bounding box as a source of automatic line breaking.

[Android.Runtime.Register("setUseBoundsForWidth", "(Z)Landroid/graphics/text/LineBreaker$Builder;", "", ApiSince=35)]
public Android.Graphics.Text.LineBreaker.Builder SetUseBoundsForWidth(bool useBoundsForWidth);
[<Android.Runtime.Register("setUseBoundsForWidth", "(Z)Landroid/graphics/text/LineBreaker$Builder;", "", ApiSince=35)>]
member this.SetUseBoundsForWidth : bool -> Android.Graphics.Text.LineBreaker.Builder

Parameters

useBoundsForWidth
Boolean

True for using bounding box, false for advances.

Returns

this builder instance. This value cannot be null.

Attributes

Remarks

Set true for using width of bounding box as a source of automatic line breaking. If this value is false, the automatic line breaking uses total amount of advances as text widths. By setting true, it uses joined all glyph bound's width as a width of the text. If the font has glyphs that have negative bearing X or its xMax is greater than advance, the glyph clipping can happen because the drawing area may be bigger. By setting this to true, the line breaker will break line based on bounding box, so clipping can be prevented.

Android reference for android.graphics.text.LineBreaker.Builder.setUseBoundsForWidth.

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.

Applies to