Documentation
¶
Overview ¶
Package fonts provides Go bindings for android.graphics.fonts.
Index ¶
- Constants
- func Init(env *jni.Env) error
- type Font
- func (m *Font) Equals(arg0 *jni.Object) (bool, error)
- func (m *Font) GetAxes() (*jni.Object, error)
- func (m *Font) GetBuffer() (*jni.Object, error)
- func (m *Font) GetFile() (*jni.Object, error)
- func (m *Font) GetGlyphBounds(arg0 int32, arg1 *jni.Object, arg2 *jni.Object) (float32, error)
- func (m *Font) GetLocaleList() (*jni.Object, error)
- func (m *Font) GetMetrics(arg0 *jni.Object, arg1 *jni.Object) error
- func (m *Font) GetSourceIdentifier() (int32, error)
- func (m *Font) GetStyle() (*jni.Object, error)
- func (m *Font) GetTtcIndex() (int32, error)
- func (m *Font) HashCode() (int32, error)
- func (m *Font) ToString() (string, error)
- type FontBuilder
- func (m *FontBuilder) Build() (*jni.Object, error)
- func (m *FontBuilder) SetFontVariationSettings1(arg0 *jni.Object) (*jni.Object, error)
- func (m *FontBuilder) SetFontVariationSettings1_1(arg0 string) (*jni.Object, error)
- func (m *FontBuilder) SetSlant(arg0 int32) (*jni.Object, error)
- func (m *FontBuilder) SetTtcIndex(arg0 int32) (*jni.Object, error)
- func (m *FontBuilder) SetWeight(arg0 int32) (*jni.Object, error)
- type FontFamily
- type FontFamilyBuilder
- type FontStyle
- type FontVariationAxis
- func (m *FontVariationAxis) Equals(arg0 *jni.Object) (bool, error)
- func (m *FontVariationAxis) FromFontVariationSettings(arg0 string) (*jni.Object, error)
- func (m *FontVariationAxis) GetStyleValue() (float32, error)
- func (m *FontVariationAxis) GetTag() (string, error)
- func (m *FontVariationAxis) HashCode() (int32, error)
- func (m *FontVariationAxis) ToFontVariationSettings(arg0 *jni.Object) (string, error)
- func (m *FontVariationAxis) ToString() (string, error)
Constants ¶
const ( FontSlantItalic = consts.FontSlantItalic FontSlantUpright = consts.FontSlantUpright FontWeightBlack = consts.FontWeightBlack FontWeightBold = consts.FontWeightBold FontWeightExtraBold = consts.FontWeightExtraBold FontWeightExtraLight = consts.FontWeightExtraLight FontWeightLight = consts.FontWeightLight FontWeightMax = consts.FontWeightMax FontWeightMedium = consts.FontWeightMedium FontWeightMin = consts.FontWeightMin FontWeightNormal = consts.FontWeightNormal FontWeightSemiBold = consts.FontWeightSemiBold FontWeightThin = consts.FontWeightThin FontWeightUnspecified = consts.FontWeightUnspecified )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Font ¶
Font wraps android.graphics.fonts.Font.
func (*Font) GetGlyphBounds ¶
GetGlyphBounds calls android.graphics.fonts.Font.getGlyphBounds.
func (*Font) GetLocaleList ¶
GetLocaleList calls android.graphics.fonts.Font.getLocaleList.
func (*Font) GetMetrics ¶
GetMetrics calls android.graphics.fonts.Font.getMetrics.
func (*Font) GetSourceIdentifier ¶
GetSourceIdentifier calls android.graphics.fonts.Font.getSourceIdentifier.
func (*Font) GetTtcIndex ¶
GetTtcIndex calls android.graphics.fonts.Font.getTtcIndex.
type FontBuilder ¶
FontBuilder wraps android.graphics.fonts.Font$Builder.
func (*FontBuilder) Build ¶
func (m *FontBuilder) Build() (*jni.Object, error)
Build calls android.graphics.fonts.Font$Builder.build.
func (*FontBuilder) SetFontVariationSettings1 ¶
SetFontVariationSettings1 calls android.graphics.fonts.Font$Builder.setFontVariationSettings.
func (*FontBuilder) SetFontVariationSettings1_1 ¶
func (m *FontBuilder) SetFontVariationSettings1_1(arg0 string) (*jni.Object, error)
SetFontVariationSettings1_1 calls android.graphics.fonts.Font$Builder.setFontVariationSettings.
func (*FontBuilder) SetSlant ¶
func (m *FontBuilder) SetSlant(arg0 int32) (*jni.Object, error)
SetSlant calls android.graphics.fonts.Font$Builder.setSlant.
func (*FontBuilder) SetTtcIndex ¶
func (m *FontBuilder) SetTtcIndex(arg0 int32) (*jni.Object, error)
SetTtcIndex calls android.graphics.fonts.Font$Builder.setTtcIndex.
type FontFamily ¶
FontFamily wraps android.graphics.fonts.FontFamily.
func (*FontFamily) GetFont ¶
func (m *FontFamily) GetFont(arg0 int32) (*jni.Object, error)
GetFont calls android.graphics.fonts.FontFamily.getFont.
func (*FontFamily) GetSize ¶
func (m *FontFamily) GetSize() (int32, error)
GetSize calls android.graphics.fonts.FontFamily.getSize.
type FontFamilyBuilder ¶
FontFamilyBuilder wraps android.graphics.fonts.FontFamily$Builder.
func (*FontFamilyBuilder) AddFont ¶
AddFont calls android.graphics.fonts.FontFamily$Builder.addFont.
func (*FontFamilyBuilder) Build ¶
func (m *FontFamilyBuilder) Build() (*jni.Object, error)
Build calls android.graphics.fonts.FontFamily$Builder.build.
func (*FontFamilyBuilder) BuildVariableFamily ¶
func (m *FontFamilyBuilder) BuildVariableFamily() (*jni.Object, error)
BuildVariableFamily calls android.graphics.fonts.FontFamily$Builder.buildVariableFamily.
type FontStyle ¶
FontStyle wraps android.graphics.fonts.FontStyle.
func NewFontStyle ¶
NewFontStyle creates a new android.graphics.fonts.FontStyle instance.
type FontVariationAxis ¶
FontVariationAxis wraps android.graphics.fonts.FontVariationAxis.
func NewFontVariationAxis ¶
NewFontVariationAxis creates a new android.graphics.fonts.FontVariationAxis instance.
func (*FontVariationAxis) Equals ¶
func (m *FontVariationAxis) Equals(arg0 *jni.Object) (bool, error)
Equals calls android.graphics.fonts.FontVariationAxis.equals.
func (*FontVariationAxis) FromFontVariationSettings ¶
func (m *FontVariationAxis) FromFontVariationSettings(arg0 string) (*jni.Object, error)
FromFontVariationSettings calls android.graphics.fonts.FontVariationAxis.fromFontVariationSettings.
func (*FontVariationAxis) GetStyleValue ¶
func (m *FontVariationAxis) GetStyleValue() (float32, error)
GetStyleValue calls android.graphics.fonts.FontVariationAxis.getStyleValue.
func (*FontVariationAxis) GetTag ¶
func (m *FontVariationAxis) GetTag() (string, error)
GetTag calls android.graphics.fonts.FontVariationAxis.getTag.
func (*FontVariationAxis) HashCode ¶
func (m *FontVariationAxis) HashCode() (int32, error)
HashCode calls android.graphics.fonts.FontVariationAxis.hashCode.
func (*FontVariationAxis) ToFontVariationSettings ¶
func (m *FontVariationAxis) ToFontVariationSettings(arg0 *jni.Object) (string, error)
ToFontVariationSettings calls android.graphics.fonts.FontVariationAxis.toFontVariationSettings.
func (*FontVariationAxis) ToString ¶
func (m *FontVariationAxis) ToString() (string, error)
ToString calls android.graphics.fonts.FontVariationAxis.toString.