Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Interface IFont

interface IFont
Extends com.amazon.apmf.IStandard The Interface representing a font, providing access to typeface, metrics, and transformations.

Methods

getTypeface()

ITypeface* getTypeface()
Gets the typeface associated with the font.

Returns

ITypeface* An ITypeface object representing the typeface.

getFontMetrics()

FontMetrics getFontMetrics()
Gets the metrics of the font.

Returns

FontMetrics The font metrics FontMetrics

getFontSize()

float getFontSize()
Gets the size of the font.

Returns

float The font size.

getSkewX()

float getSkewX()
Gets the horizontal skew factor of the font.

Returns

float The horizontal skew factor.

setFontSize()

void setFontSize(float fontSize)
Sets the size of the font.

Parameters

fontSize
float — Required The new font size.

Throws


setSkewX()

void setSkewX(float skewX)
Sets a horizontal shear transformation to this font. The skew angle is specified in radians. A value of 0 maintains the object’s natural upright-form. Negative values slant left, while positive values slant right.

Parameters

skewX
float — Required The horizontal skew angle in radians.

setTypeface()

void setTypeface(ITypeface* typeface)
Sets the typeface for the font.

Parameters

typeface
ITypeface* — Required The new ITypeface object.
Last modified on October 29, 2026