ITextStyle
public interface ITextStyle
Interface to work with Text Style
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
style | ITextStyle | The 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:
Parameter | Type | Description |
---|---|---|
style | ITextStyle | The 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:
Parameter | Type | Description |
---|---|---|
value | int |
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:
Parameter | Type | Description |
---|---|---|
value | boolean |
setBaselineShift(double value)
public abstract void setBaselineShift(double value)
The baseline shift.
Parameters:
Parameter | Type | Description |
---|---|---|
value | double |
setContextualAlternates(boolean value)
public abstract void setContextualAlternates(boolean value)
The contextual alternates used to connect letters together.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
setDiscretionaryLigatures(boolean value)
public abstract void setDiscretionaryLigatures(boolean value)
The discretionary ligatures used to connect letters, especially in script fonts.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
setFauxBold(boolean value)
public abstract void setFauxBold(boolean value)
Gets or sets the faux bold is enabled.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
setFauxItalic(boolean value)
public abstract void setFauxItalic(boolean value)
Gets or sets the faux bold is enabled.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
setFillColor(Color value)
public abstract void setFillColor(Color value)
Gets or sets the color of the fill.
Value: The color of the fill.
Parameters:
Parameter | Type | Description |
---|---|---|
value | Color |
setFontBaseline(int value)
public abstract void setFontBaseline(int value)
The font baseline.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setFontCaps(int value)
public abstract void setFontCaps(int value)
The font caps.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setFontName(String value)
public abstract void setFontName(String value)
Gets or sets the font name.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.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:
Parameter | Type | Description |
---|---|---|
value | double |
setFractions(boolean value)
public abstract void setFractions(boolean value)
The fractions symbols can be replaced with special glyph.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
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:
Parameter | Type | Description |
---|---|---|
value | boolean |
setHorizontalScale(double value)
public abstract void setHorizontalScale(double value)
The horizontal scale.
Parameters:
Parameter | Type | Description |
---|---|---|
value | double |
setKerning(int value)
public abstract void setKerning(int value)
Gets or sets the kerning.
Value: The kerning between two characters.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setLeading(double value)
public abstract void setLeading(double value)
Gets or sets the leading.
Value: The leading.
Parameters:
Parameter | Type | Description |
---|---|---|
value | double |
setStandardLigatures(boolean value)
public abstract void setStandardLigatures(boolean value)
The standard contextual ligatures used to connect letters together.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
setStrikethrough(boolean value)
public abstract void setStrikethrough(boolean value)
Gets or sets a value indicating whether [strikethrough].
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
setStrokeColor(Color value)
public abstract void setStrokeColor(Color value)
Gets or sets the color of the stroke.
Value: The color of the stroke.
Parameters:
Parameter | Type | Description |
---|---|---|
value | Color |
setTracking(int value)
public abstract void setTracking(int value)
Gets or sets the tracking.
Value: The tracking.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setUnderline(boolean value)
public abstract void setUnderline(boolean value)
Gets or sets a value indicating whether [underline].
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
setVerticalScale(double value)
public abstract void setVerticalScale(double value)
The vertical scale.
Parameters:
Parameter | Type | Description |
---|---|---|
value | double |
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:
Parameter | Type | Description |
---|---|---|
value | boolean |
set_noBreak(boolean value)
public abstract void set_noBreak(boolean value)
Gets ot sets the no break value.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |