SKFont

class SKFont : SKObject {}

Constructors

this
this(void* handle, bool owns)
Undocumented in source.
this
this()
Undocumented in source.
this
this(SKTypeface typeface, float size, float scaleX, float skewX)
Undocumented in source.

Members

Functions

BaselineSnap
bool BaselineSnap()
Undocumented in source. Be warned that the author may not have intended to support it.
BaselineSnap
void BaselineSnap(bool value)
Undocumented in source. Be warned that the author may not have intended to support it.
BreakText
int BreakText(string text, float maxWidth, float measuredWidth, SKPaint paint)
Undocumented in source. Be warned that the author may not have intended to support it.
BreakText
int BreakText(const(char)[] text, float maxWidth, float measuredWidth, SKPaint paint)
Undocumented in source. Be warned that the author may not have intended to support it.
BreakText
int BreakText(const(byte)[] text, SKTextEncoding encoding, float maxWidth, float measuredWidth, SKPaint paint)
Undocumented in source. Be warned that the author may not have intended to support it.
BreakText
int BreakText(void* text, int length, SKTextEncoding encoding, float maxWidth, float measuredWidth, SKPaint paint)
Undocumented in source. Be warned that the author may not have intended to support it.
BreakText
int BreakText(void* text, int length, SKTextEncoding encoding, float maxWidth, float* measuredWidth, SKPaint paint)
Undocumented in source. Be warned that the author may not have intended to support it.
ContainsGlyph
bool ContainsGlyph(int codepoint)
Undocumented in source. Be warned that the author may not have intended to support it.
ContainsGlyphs
bool ContainsGlyphs(const(int)[] codepoints)
Undocumented in source. Be warned that the author may not have intended to support it.
ContainsGlyphs
bool ContainsGlyphs(string text)
Undocumented in source. Be warned that the author may not have intended to support it.
ContainsGlyphs
bool ContainsGlyphs(const(char)[] text)
Undocumented in source. Be warned that the author may not have intended to support it.
ContainsGlyphs
bool ContainsGlyphs(const(byte)[] text, SKTextEncoding encoding)
Undocumented in source. Be warned that the author may not have intended to support it.
ContainsGlyphs
bool ContainsGlyphs(void* text, int length, SKTextEncoding encoding)
Undocumented in source. Be warned that the author may not have intended to support it.
CountGlyphs
int CountGlyphs(string text)
Undocumented in source. Be warned that the author may not have intended to support it.
CountGlyphs
int CountGlyphs(const(char)[] text)
Undocumented in source. Be warned that the author may not have intended to support it.
CountGlyphs
int CountGlyphs(const(byte)[] text, SKTextEncoding encoding)
Undocumented in source. Be warned that the author may not have intended to support it.
CountGlyphs
int CountGlyphs(void* text, int length, SKTextEncoding encoding)
Undocumented in source. Be warned that the author may not have intended to support it.
DisposeNative
void DisposeNative()
Undocumented in source. Be warned that the author may not have intended to support it.
Edging
SKFontEdging Edging()
Undocumented in source. Be warned that the author may not have intended to support it.
Edging
void Edging(SKFontEdging value)
Undocumented in source. Be warned that the author may not have intended to support it.
EmbeddedBitmaps
bool EmbeddedBitmaps()
Undocumented in source. Be warned that the author may not have intended to support it.
EmbeddedBitmaps
void EmbeddedBitmaps(bool value)
Undocumented in source. Be warned that the author may not have intended to support it.
Embolden
bool Embolden()
Undocumented in source. Be warned that the author may not have intended to support it.
Embolden
void Embolden(bool value)
Undocumented in source. Be warned that the author may not have intended to support it.
ForceAutoHinting
bool ForceAutoHinting()
Undocumented in source. Be warned that the author may not have intended to support it.
ForceAutoHinting
void ForceAutoHinting(bool value)
Undocumented in source. Be warned that the author may not have intended to support it.
GetFontMetrics
float GetFontMetrics(SKFontMetrics metrics)
Undocumented in source. Be warned that the author may not have intended to support it.
GetGlyph
ushort GetGlyph(int codepoint)
Undocumented in source. Be warned that the author may not have intended to support it.
GetGlyphOffsets
float[] GetGlyphOffsets(string text, float origin)
Undocumented in source. Be warned that the author may not have intended to support it.
GetGlyphOffsets
float[] GetGlyphOffsets(const(char)[] text, float origin)
Undocumented in source. Be warned that the author may not have intended to support it.
GetGlyphOffsets
float[] GetGlyphOffsets(byte[] text, SKTextEncoding encoding, float origin)
Undocumented in source. Be warned that the author may not have intended to support it.
GetGlyphOffsets
void GetGlyphOffsets(string text, float[] offsets, float origin)
Undocumented in source. Be warned that the author may not have intended to support it.
GetGlyphOffsets
void GetGlyphOffsets(char[] text, float[] offsets, float origin)
Undocumented in source. Be warned that the author may not have intended to support it.
GetGlyphOffsets
void GetGlyphOffsets(byte[] text, SKTextEncoding encoding, float[] offsets, float origin)
Undocumented in source. Be warned that the author may not have intended to support it.
GetGlyphOffsets
void GetGlyphOffsets(void* text, int length, SKTextEncoding encoding, float[] offsets, float origin)
Undocumented in source. Be warned that the author may not have intended to support it.
GetGlyphOffsets
float[] GetGlyphOffsets(void* text, int length, SKTextEncoding encoding, float origin)
Undocumented in source. Be warned that the author may not have intended to support it.
GetGlyphOffsets
float[] GetGlyphOffsets(ushort[] glyphs, float origin)
Undocumented in source. Be warned that the author may not have intended to support it.
GetGlyphOffsets
void GetGlyphOffsets(ushort[] glyphs, float[] offsets, float origin)
Undocumented in source. Be warned that the author may not have intended to support it.
GetGlyphPath
SKPath GetGlyphPath(ushort glyph)
Undocumented in source. Be warned that the author may not have intended to support it.
GetGlyphPositions
SKPoint[] GetGlyphPositions(string text, SKPoint origin)
Undocumented in source. Be warned that the author may not have intended to support it.
GetGlyphPositions
SKPoint[] GetGlyphPositions(const(char)[] text, SKPoint origin)
Undocumented in source. Be warned that the author may not have intended to support it.
GetGlyphPositions
SKPoint[] GetGlyphPositions(const(byte)[] text, SKTextEncoding encoding, SKPoint origin)
Undocumented in source. Be warned that the author may not have intended to support it.
GetGlyphPositions
void GetGlyphPositions(string text, SKPoint[] offsets, SKPoint origin)
Undocumented in source. Be warned that the author may not have intended to support it.
GetGlyphPositions
void GetGlyphPositions(const(char)[] text, SKPoint[] offsets, SKPoint origin)
Undocumented in source. Be warned that the author may not have intended to support it.
GetGlyphPositions
void GetGlyphPositions(const(byte)[] text, SKTextEncoding encoding, SKPoint[] offsets, SKPoint origin)
Undocumented in source. Be warned that the author may not have intended to support it.
GetGlyphPositions
SKPoint[] GetGlyphPositions(void* text, int length, SKTextEncoding encoding, SKPoint origin)
Undocumented in source. Be warned that the author may not have intended to support it.
GetGlyphPositions
void GetGlyphPositions(void* text, int length, SKTextEncoding encoding, SKPoint[] offsets, SKPoint origin)
Undocumented in source. Be warned that the author may not have intended to support it.
GetGlyphPositions
SKPoint[] GetGlyphPositions(const(ushort)[] glyphs, SKPoint origin)
Undocumented in source. Be warned that the author may not have intended to support it.
GetGlyphPositions
void GetGlyphPositions(const(ushort)[] glyphs, SKPoint[] positions, SKPoint origin)
Undocumented in source. Be warned that the author may not have intended to support it.
GetGlyphWidths
float[] GetGlyphWidths(string text, SKPaint paint)
Undocumented in source. Be warned that the author may not have intended to support it.
GetGlyphWidths
float[] GetGlyphWidths(char[] text, SKPaint paint)
Undocumented in source. Be warned that the author may not have intended to support it.
GetGlyphWidths
float[] GetGlyphWidths(byte[] text, SKTextEncoding encoding, SKPaint paint)
Undocumented in source. Be warned that the author may not have intended to support it.
GetGlyphWidths
float[] GetGlyphWidths(string text, SKRect[] bounds, SKPaint paint)
Undocumented in source. Be warned that the author may not have intended to support it.
GetGlyphWidths
float[] GetGlyphWidths(char[] text, SKRect[] bounds, SKPaint paint)
Undocumented in source. Be warned that the author may not have intended to support it.
GetGlyphWidths
float[] GetGlyphWidths(byte[] text, SKTextEncoding encoding, SKRect[] bounds, SKPaint paint)
Undocumented in source. Be warned that the author may not have intended to support it.
GetGlyphWidths
void GetGlyphWidths(string text, float[] widths, SKRect[] bounds, SKPaint paint)
Undocumented in source. Be warned that the author may not have intended to support it.
GetGlyphWidths
void GetGlyphWidths(const(char)[] text, float[] widths, SKRect[] bounds, SKPaint paint)
Undocumented in source. Be warned that the author may not have intended to support it.
GetGlyphWidths
void GetGlyphWidths(const(byte)[] text, SKTextEncoding encoding, float[] widths, SKRect[] bounds, SKPaint paint)
Undocumented in source. Be warned that the author may not have intended to support it.
GetGlyphWidths
float[] GetGlyphWidths(void* text, int length, SKTextEncoding encoding, SKPaint paint)
Undocumented in source. Be warned that the author may not have intended to support it.
GetGlyphWidths
float[] GetGlyphWidths(void* text, int length, SKTextEncoding encoding, SKRect[] bounds, SKPaint paint)
Undocumented in source. Be warned that the author may not have intended to support it.
GetGlyphWidths
void GetGlyphWidths(void* text, int length, SKTextEncoding encoding, float[] widths, SKRect[] bounds, SKPaint paint)
Undocumented in source. Be warned that the author may not have intended to support it.
GetGlyphWidths
float[] GetGlyphWidths(const(ushort)[] glyphs, SKPaint paint)
Undocumented in source. Be warned that the author may not have intended to support it.
GetGlyphWidths
float[] GetGlyphWidths(const(ushort)[] glyphs, SKRect[] bounds, SKPaint paint)
Undocumented in source. Be warned that the author may not have intended to support it.
GetGlyphWidths
void GetGlyphWidths(const(ushort)[] glyphs, float[] widths, SKRect[] bounds, SKPaint paint)
Undocumented in source. Be warned that the author may not have intended to support it.
GetGlyphs
ushort[] GetGlyphs(const(int)[] codepoints)
Undocumented in source. Be warned that the author may not have intended to support it.
GetGlyphs
void GetGlyphs(const(int)[] codepoints, ushort[] glyphs)
Undocumented in source. Be warned that the author may not have intended to support it.
GetGlyphs
ushort[] GetGlyphs(string text)
Undocumented in source. Be warned that the author may not have intended to support it.
GetGlyphs
ushort[] GetGlyphs(const(char)[] text)
Undocumented in source. Be warned that the author may not have intended to support it.
GetGlyphs
ushort[] GetGlyphs(const(byte)[] text, SKTextEncoding encoding)
Undocumented in source. Be warned that the author may not have intended to support it.
GetGlyphs
void GetGlyphs(string text, ushort[] glyphs)
Undocumented in source. Be warned that the author may not have intended to support it.
GetGlyphs
void GetGlyphs(const(char)[] text, ushort[] glyphs)
Undocumented in source. Be warned that the author may not have intended to support it.
GetGlyphs
void GetGlyphs(const(byte)[] text, SKTextEncoding encoding, ushort[] glyphs)
Undocumented in source. Be warned that the author may not have intended to support it.
GetGlyphs
ushort[] GetGlyphs(void* text, int length, SKTextEncoding encoding)
Undocumented in source. Be warned that the author may not have intended to support it.
GetGlyphs
void GetGlyphs(void* text, int length, SKTextEncoding encoding, ushort[] glyphs)
Undocumented in source. Be warned that the author may not have intended to support it.
GetTextPath
SKPath GetTextPath(string text, SKPoint origin)
Undocumented in source. Be warned that the author may not have intended to support it.
GetTextPath
SKPath GetTextPath(const(char)[] text, SKPoint origin)
Undocumented in source. Be warned that the author may not have intended to support it.
GetTextPath
SKPath GetTextPath(const(byte)[] text, SKTextEncoding encoding, SKPoint origin)
Undocumented in source. Be warned that the author may not have intended to support it.
GetTextPath
SKPath GetTextPath(void* text, int length, SKTextEncoding encoding, SKPoint origin)
Undocumented in source. Be warned that the author may not have intended to support it.
GetTextPath
SKPath GetTextPath(string text, const(SKPoint)[] positions)
Undocumented in source. Be warned that the author may not have intended to support it.
GetTextPath
SKPath GetTextPath(const(char)[] text, const(SKPoint)[] positions)
Undocumented in source. Be warned that the author may not have intended to support it.
GetTextPath
SKPath GetTextPath(const(byte)[] text, SKTextEncoding encoding, const(SKPoint)[] positions)
Undocumented in source. Be warned that the author may not have intended to support it.
GetTextPath
SKPath GetTextPath(void* text, int length, SKTextEncoding encoding, const(SKPoint)[] positions)
Undocumented in source. Be warned that the author may not have intended to support it.
GetTextPathOnPath
SKPath GetTextPathOnPath(string text, SKPath path, SKTextAlign textAlign, SKPoint origin)
Undocumented in source. Be warned that the author may not have intended to support it.
GetTextPathOnPath
SKPath GetTextPathOnPath(const(char)[] text, SKPath path, SKTextAlign textAlign, SKPoint origin)
Undocumented in source. Be warned that the author may not have intended to support it.
GetTextPathOnPath
SKPath GetTextPathOnPath(const(byte)[] text, SKTextEncoding encoding, SKPath path, SKTextAlign textAlign, SKPoint origin)
Undocumented in source. Be warned that the author may not have intended to support it.
GetTextPathOnPath
SKPath GetTextPathOnPath(void* text, int length, SKTextEncoding encoding, SKPath path, SKTextAlign textAlign, SKPoint origin)
Undocumented in source. Be warned that the author may not have intended to support it.
GetTextPathOnPath
SKPath GetTextPathOnPath(const(ushort)[] glyphs, const(float)[] glyphWidths, SKPoint[] glyphPositions, SKPath path, SKTextAlign textAlign)
Undocumented in source. Be warned that the author may not have intended to support it.
Hinting
SKFontHinting Hinting()
Undocumented in source. Be warned that the author may not have intended to support it.
Hinting
void Hinting(SKFontHinting value)
Undocumented in source. Be warned that the author may not have intended to support it.
LinearMetrics
bool LinearMetrics()
Undocumented in source. Be warned that the author may not have intended to support it.
LinearMetrics
void LinearMetrics(bool value)
Undocumented in source. Be warned that the author may not have intended to support it.
MeasureText
float MeasureText(string text, SKPaint paint)
Undocumented in source. Be warned that the author may not have intended to support it.
MeasureText
float MeasureText(const(byte)[] text, SKTextEncoding encoding, SKPaint paint)
Undocumented in source. Be warned that the author may not have intended to support it.
MeasureText
float MeasureText(void* text, int length, SKTextEncoding encoding, SKPaint paint)
Undocumented in source. Be warned that the author may not have intended to support it.
MeasureText
float MeasureText(string text, SKRect bounds, SKPaint paint)
Undocumented in source. Be warned that the author may not have intended to support it.
MeasureText
float MeasureText(const(byte)[] text, SKTextEncoding encoding, SKRect bounds, SKPaint paint)
Undocumented in source. Be warned that the author may not have intended to support it.
MeasureText
float MeasureText(void* text, int length, SKTextEncoding encoding, SKRect bounds, SKPaint paint)
Undocumented in source. Be warned that the author may not have intended to support it.
MeasureText
float MeasureText(void* text, int length, SKTextEncoding encoding, SKRect* bounds, SKPaint paint)
Undocumented in source. Be warned that the author may not have intended to support it.
MeasureText
float MeasureText(ushort[] glyphs, SKPaint paint)
Undocumented in source. Be warned that the author may not have intended to support it.
MeasureText
float MeasureText(ushort[] glyphs, SKRect bounds, SKPaint paint)
Undocumented in source. Be warned that the author may not have intended to support it.
Metrics
SKFontMetrics Metrics()
Undocumented in source. Be warned that the author may not have intended to support it.
ScaleX
float ScaleX()
Undocumented in source. Be warned that the author may not have intended to support it.
ScaleX
void ScaleX(float value)
Undocumented in source. Be warned that the author may not have intended to support it.
Size
float Size()
Undocumented in source. Be warned that the author may not have intended to support it.
Size
void Size(float value)
Undocumented in source. Be warned that the author may not have intended to support it.
SkewX
float SkewX()
Undocumented in source. Be warned that the author may not have intended to support it.
SkewX
void SkewX(float value)
Undocumented in source. Be warned that the author may not have intended to support it.
Spacing
float Spacing()
Undocumented in source. Be warned that the author may not have intended to support it.
Subpixel
bool Subpixel()
Undocumented in source. Be warned that the author may not have intended to support it.
Subpixel
void Subpixel(bool value)
Undocumented in source. Be warned that the author may not have intended to support it.
Typeface
SKTypeface Typeface()
Undocumented in source. Be warned that the author may not have intended to support it.
Typeface
void Typeface(SKTypeface value)
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

GetObject
SKFont GetObject(void* handle, bool owns)
Undocumented in source. Be warned that the author may not have intended to support it.
MorphPath
void MorphPath(SKPath dst, SKPath src, SKPathMeasure meas, SKMatrix matrix)
Undocumented in source. Be warned that the author may not have intended to support it.
MorphPoints
void MorphPoints(SKPoint[] dst, SKPoint[] src, int count, SKPathMeasure meas, SKMatrix matrix)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

DefaultScaleX
enum float DefaultScaleX;
Undocumented in source.
DefaultSize
enum float DefaultSize;
Undocumented in source.
DefaultSkewX
enum float DefaultSkewX;
Undocumented in source.

Inherited Members

From SKObject

Handle
void* Handle()
Undocumented in source. Be warned that the author may not have intended to support it.
Handle
void Handle(void* value)
Undocumented in source. Be warned that the author may not have intended to support it.
registerOwnedObject
void registerOwnedObject(void* handle, SKObject obj)
Undocumented in source. Be warned that the author may not have intended to support it.
registerKeepAliveObject
void registerKeepAliveObject(void* handle, SKObject obj)
Undocumented in source. Be warned that the author may not have intended to support it.
DisposeUnownedManaged
void DisposeUnownedManaged()
Undocumented in source. Be warned that the author may not have intended to support it.
DisposeManaged
void DisposeManaged()
Undocumented in source. Be warned that the author may not have intended to support it.
DisposeNative
void DisposeNative()
Undocumented in source. Be warned that the author may not have intended to support it.
GetOrAddObject
TSkiaObject GetOrAddObject(void* handle, Func!(void*, bool, TSkiaObject) objectFactory)
Undocumented in source. Be warned that the author may not have intended to support it.
GetOrAddObject
TSkiaObject GetOrAddObject(void* handle, bool owns, Func!(void*, bool, TSkiaObject) objectFactory)
Undocumented in source. Be warned that the author may not have intended to support it.
GetOrAddObject
TSkiaObject GetOrAddObject(void* handle, bool owns, bool unrefExisting, Func!(void*, bool, TSkiaObject) objectFactory)
Undocumented in source. Be warned that the author may not have intended to support it.
RegisterHandle
void RegisterHandle(void* handle, SKObject instance)
Undocumented in source. Be warned that the author may not have intended to support it.
DeregisterHandle
void DeregisterHandle(void* handle, SKObject instance)
Undocumented in source. Be warned that the author may not have intended to support it.
GetInstance
bool GetInstance(void* handle, TSkiaObject instance)
Undocumented in source. Be warned that the author may not have intended to support it.
PreventPublicDisposal
void PreventPublicDisposal()
Undocumented in source. Be warned that the author may not have intended to support it.
RevokeOwnership
void RevokeOwnership(SKObject newOwner)
Undocumented in source. Be warned that the author may not have intended to support it.
OwnedBy
T OwnedBy(T child, SKObject owner)
Undocumented in source. Be warned that the author may not have intended to support it.
Owned
T Owned(T owner, SKObject child)
Undocumented in source. Be warned that the author may not have intended to support it.
Referenced
T Referenced(T owner, SKObject child)
Undocumented in source. Be warned that the author may not have intended to support it.
PtrToStructureArray
T[] PtrToStructureArray(void* intPtr, int count)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta