ITextStyle

public interface ITextStyle

Interface to work with Text Style

Methods

MethodDescription
apply(ITextStyle style)Applies the specified style.
getAutoKerning()Gets or sets the auto kerning.
getAutoLeading()Gets or sets a value indicating whether [automatic leading].
getBaselineShift()The baseline shift.
getContextualAlternates()The contextual alternates used to connect letters together.
getDiscretionaryLigatures()The discretionary ligatures used to connect letters, especially in script fonts.
getFauxBold()Gets or sets the faux bold is enabled.
getFauxItalic()Gets or sets the faux bold is enabled.
getFillColor()Gets or sets the color of the fill.
getFontBaseline()The font baseline.
getFontCaps()The font caps.
getFontIndex()Gets the font index.
getFontName()Gets or sets the font name.
getFontSize()Gets or sets the size of the font.
getFractions()The fractions symbols can be replaced with special glyph.
getHindiNumbers()Gets or sets a value indicating whether [hindi numbers].
getHorizontalScale()The horizontal scale.
getKerning()Gets or sets the kerning.
getLanguageIndex()Gets the language index.
getLeading()Gets or sets the leading.
getStandardLigatures()The standard contextual ligatures used to connect letters together.
getStrikethrough()Gets or sets a value indicating whether [strikethrough].
getStrokeColor()Gets or sets the color of the stroke.
getTracking()Gets or sets the tracking.
getUnderline()Gets or sets a value indicating whether [underline].
getVerticalScale()The vertical scale.
get_noBreak()Gets ot sets the no break value.
isEqual(ITextStyle style)Determines whether the specified style is equal.
is_isStandardVerticalRomanAlignmentEnabled()Gets or sets the standard vertical Roman alignment.
setAutoKerning(int value)Gets or sets the auto kerning.
setAutoLeading(boolean value)Gets or sets a value indicating whether [automatic leading].
setBaselineShift(double value)The baseline shift.
setContextualAlternates(boolean value)The contextual alternates used to connect letters together.
setDiscretionaryLigatures(boolean value)The discretionary ligatures used to connect letters, especially in script fonts.
setFauxBold(boolean value)Gets or sets the faux bold is enabled.
setFauxItalic(boolean value)Gets or sets the faux bold is enabled.
setFillColor(Color value)Gets or sets the color of the fill.
setFontBaseline(int value)The font baseline.
setFontCaps(int value)The font caps.
setFontName(String value)Gets or sets the font name.
setFontSize(double value)Gets or sets the size of the font.
setFractions(boolean value)The fractions symbols can be replaced with special glyph.
setHindiNumbers(boolean value)Gets or sets a value indicating whether [hindi numbers].
setHorizontalScale(double value)The horizontal scale.
setKerning(int value)Gets or sets the kerning.
setLeading(double value)Gets or sets the leading.
setStandardLigatures(boolean value)The standard contextual ligatures used to connect letters together.
setStrikethrough(boolean value)Gets or sets a value indicating whether [strikethrough].
setStrokeColor(Color value)Gets or sets the color of the stroke.
setTracking(int value)Gets or sets the tracking.
setUnderline(boolean value)Gets or sets a value indicating whether [underline].
setVerticalScale(double value)The vertical scale.
set_isStandardVerticalRomanAlignmentEnabled(boolean value)Gets or sets the standard vertical Roman alignment.
set_noBreak(boolean value)Gets ot sets the no break value.

apply(ITextStyle style)

public abstract void apply(ITextStyle style)

Applies the specified style.

Parameters:

ParameterTypeDescription
styleITextStyleThe style.

getAutoKerning()

public abstract int getAutoKerning()

Gets or sets the auto kerning.

Value: The auto kerning between two characters.

Returns: int

getAutoLeading()

public abstract boolean getAutoLeading()

Gets or sets a value indicating whether [automatic leading].

Value: true if [automatic leading]; otherwise, false .

Returns: boolean

getBaselineShift()

public abstract double getBaselineShift()

The baseline shift.

Returns: double

getContextualAlternates()

public abstract boolean getContextualAlternates()

The contextual alternates used to connect letters together.

Returns: boolean

getDiscretionaryLigatures()

public abstract boolean getDiscretionaryLigatures()

The discretionary ligatures used to connect letters, especially in script fonts.

Returns: boolean

getFauxBold()

public abstract boolean getFauxBold()

Gets or sets the faux bold is enabled.

Returns: boolean

getFauxItalic()

public abstract boolean getFauxItalic()

Gets or sets the faux bold is enabled.

Returns: boolean

getFillColor()

public abstract Color getFillColor()

Gets or sets the color of the fill.

Value: The color of the fill.

Returns: Color

getFontBaseline()

public abstract int getFontBaseline()

The font baseline.

Returns: int

getFontCaps()

public abstract int getFontCaps()

The font caps.

Returns: int

getFontIndex()

public abstract int getFontIndex()

Gets the font index.

Value: The font.

Returns: int

getFontName()

public abstract String getFontName()

Gets or sets the font name.

Returns: java.lang.String

getFontSize()

public abstract double getFontSize()

Gets or sets the size of the font.

Value: The size of the font.

Returns: double

getFractions()

public abstract boolean getFractions()

The fractions symbols can be replaced with special glyph.

Returns: boolean

getHindiNumbers()

public abstract boolean getHindiNumbers()

Gets or sets a value indicating whether [hindi numbers].

Value: true if [hindi numbers]; otherwise, false .

Returns: boolean

getHorizontalScale()

public abstract double getHorizontalScale()

The horizontal scale.

Returns: double

getKerning()

public abstract int getKerning()

Gets or sets the kerning.

Value: The kerning between two characters.

Returns: int

getLanguageIndex()

public abstract int getLanguageIndex()

Gets the language index.

Returns: int

getLeading()

public abstract double getLeading()

Gets or sets the leading.

Value: The leading.

Returns: double

getStandardLigatures()

public abstract boolean getStandardLigatures()

The standard contextual ligatures used to connect letters together.

Returns: boolean

getStrikethrough()

public abstract boolean getStrikethrough()

Gets or sets a value indicating whether [strikethrough].

Returns: boolean

getStrokeColor()

public abstract Color getStrokeColor()

Gets or sets the color of the stroke.

Value: The color of the stroke.

Returns: Color

getTracking()

public abstract int getTracking()

Gets or sets the tracking.

Value: The tracking.

Returns: int

getUnderline()

public abstract boolean getUnderline()

Gets or sets a value indicating whether [underline].

Returns: boolean

getVerticalScale()

public abstract double getVerticalScale()

The vertical scale.

Returns: double

get_noBreak()

public abstract boolean get_noBreak()

Gets ot sets the no break value.

Returns: boolean

isEqual(ITextStyle style)

public abstract boolean isEqual(ITextStyle style)

Determines whether the specified style is equal.

Parameters:

ParameterTypeDescription
styleITextStyleThe style.

Returns: boolean - true if the specified style is equal; otherwise, false .

is_isStandardVerticalRomanAlignmentEnabled()

public abstract boolean is_isStandardVerticalRomanAlignmentEnabled()

Gets or sets the standard vertical Roman alignment. This based on BaselineDirection resource value applies only when text orientation is TextOrientation.Vertical.

Returns: boolean

setAutoKerning(int value)

public abstract void setAutoKerning(int value)

Gets or sets the auto kerning.

Value: The auto kerning between two characters.

Parameters:

ParameterTypeDescription
valueint

setAutoLeading(boolean value)

public abstract void setAutoLeading(boolean value)

Gets or sets a value indicating whether [automatic leading].

Value: true if [automatic leading]; otherwise, false .

Parameters:

ParameterTypeDescription
valueboolean

setBaselineShift(double value)

public abstract void setBaselineShift(double value)

The baseline shift.

Parameters:

ParameterTypeDescription
valuedouble

setContextualAlternates(boolean value)

public abstract void setContextualAlternates(boolean value)

The contextual alternates used to connect letters together.

Parameters:

ParameterTypeDescription
valueboolean

setDiscretionaryLigatures(boolean value)

public abstract void setDiscretionaryLigatures(boolean value)

The discretionary ligatures used to connect letters, especially in script fonts.

Parameters:

ParameterTypeDescription
valueboolean

setFauxBold(boolean value)

public abstract void setFauxBold(boolean value)

Gets or sets the faux bold is enabled.

Parameters:

ParameterTypeDescription
valueboolean

setFauxItalic(boolean value)

public abstract void setFauxItalic(boolean value)

Gets or sets the faux bold is enabled.

Parameters:

ParameterTypeDescription
valueboolean

setFillColor(Color value)

public abstract void setFillColor(Color value)

Gets or sets the color of the fill.

Value: The color of the fill.

Parameters:

ParameterTypeDescription
valueColor

setFontBaseline(int value)

public abstract void setFontBaseline(int value)

The font baseline.

Parameters:

ParameterTypeDescription
valueint

setFontCaps(int value)

public abstract void setFontCaps(int value)

The font caps.

Parameters:

ParameterTypeDescription
valueint

setFontName(String value)

public abstract void setFontName(String value)

Gets or sets the font name.

Parameters:

ParameterTypeDescription
valuejava.lang.String

setFontSize(double value)

public abstract void setFontSize(double value)

Gets or sets the size of the font.

Value: The size of the font.

Parameters:

ParameterTypeDescription
valuedouble

setFractions(boolean value)

public abstract void setFractions(boolean value)

The fractions symbols can be replaced with special glyph.

Parameters:

ParameterTypeDescription
valueboolean

setHindiNumbers(boolean value)

public abstract void setHindiNumbers(boolean value)

Gets or sets a value indicating whether [hindi numbers].

Value: true if [hindi numbers]; otherwise, false .

Parameters:

ParameterTypeDescription
valueboolean

setHorizontalScale(double value)

public abstract void setHorizontalScale(double value)

The horizontal scale.

Parameters:

ParameterTypeDescription
valuedouble

setKerning(int value)

public abstract void setKerning(int value)

Gets or sets the kerning.

Value: The kerning between two characters.

Parameters:

ParameterTypeDescription
valueint

setLeading(double value)

public abstract void setLeading(double value)

Gets or sets the leading.

Value: The leading.

Parameters:

ParameterTypeDescription
valuedouble

setStandardLigatures(boolean value)

public abstract void setStandardLigatures(boolean value)

The standard contextual ligatures used to connect letters together.

Parameters:

ParameterTypeDescription
valueboolean

setStrikethrough(boolean value)

public abstract void setStrikethrough(boolean value)

Gets or sets a value indicating whether [strikethrough].

Parameters:

ParameterTypeDescription
valueboolean

setStrokeColor(Color value)

public abstract void setStrokeColor(Color value)

Gets or sets the color of the stroke.

Value: The color of the stroke.

Parameters:

ParameterTypeDescription
valueColor

setTracking(int value)

public abstract void setTracking(int value)

Gets or sets the tracking.

Value: The tracking.

Parameters:

ParameterTypeDescription
valueint

setUnderline(boolean value)

public abstract void setUnderline(boolean value)

Gets or sets a value indicating whether [underline].

Parameters:

ParameterTypeDescription
valueboolean

setVerticalScale(double value)

public abstract void setVerticalScale(double value)

The vertical scale.

Parameters:

ParameterTypeDescription
valuedouble

set_isStandardVerticalRomanAlignmentEnabled(boolean value)

public abstract void set_isStandardVerticalRomanAlignmentEnabled(boolean value)

Gets or sets the standard vertical Roman alignment. This based on BaselineDirection resource value applies only when text orientation is TextOrientation.Vertical.

Parameters:

ParameterTypeDescription
valueboolean

set_noBreak(boolean value)

public abstract void set_noBreak(boolean value)

Gets ot sets the no break value.

Parameters:

ParameterTypeDescription
valueboolean