Show / Hide Table of Contents

Class FontImpBase

Basic font implementation using Sixlabors.Fonts

Inheritance
System.Object
FontImpBase
FontImp
FontImp
FontImp
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Fusee.Base.Core
Assembly: Fusee.Base.Core.dll
Syntax
public abstract class FontImpBase

Fields

_collection

A font collection can contain several fonts

Declaration
protected FontCollection _collection
Field Value
Type Description
FontCollection

_font

The font instance generated from a font collection with only one font

Declaration
protected SixLabors.Fonts.Font _font
Field Value
Type Description
SixLabors.Fonts.Font

Dpi

The current monitor's dots per inch.

Declaration
public int Dpi
Field Value
Type Description
System.Int32

Properties

PixelHeight

Gets and sets the currently used pixel height

Declaration
public uint PixelHeight { get; set; }
Property Value
Type Description
System.UInt32

UseKerning

Use kerning

Declaration
public bool UseKerning { get; set; }
Property Value
Type Description
System.Boolean

Methods

GetGlyphCurve(UInt32)

Returns the glyph curve from a given char

Declaration
public Curve GetGlyphCurve(uint c)
Parameters
Type Name Description
System.UInt32 c
Returns
Type Description
Curve

GetGlyphInfo(UInt32)

Get glyph info from letter

Declaration
public GlyphInfo GetGlyphInfo(uint c)
Parameters
Type Name Description
System.UInt32 c

letter char

Returns
Type Description
GlyphInfo

GetImageDataForGlyph(UInt32, in GlyphInfo)

Renders a glyph to an IImageData for further use

Declaration
public IImageData GetImageDataForGlyph(uint c, in GlyphInfo info)
Parameters
Type Name Description
System.UInt32 c
GlyphInfo info

The info about the character.

Returns
Type Description
IImageData

GetKerning(UInt32, UInt32)

Returns the kerning between two chars

Declaration
public float GetKerning(uint leftC, uint rightC)
Parameters
Type Name Description
System.UInt32 leftC
System.UInt32 rightC
Returns
Type Description
System.Single

GetUnscaledAdvance(UInt32)

Returns the unscaled advance of one glyph

Declaration
public float GetUnscaledAdvance(uint c)
Parameters
Type Name Description
System.UInt32 c
Returns
Type Description
System.Single

GetUnscaledKerning(UInt32, UInt32)

Returns the unscaled kerning, currently TODO

Declaration
public float GetUnscaledKerning(uint leftC, uint rightC)
Parameters
Type Name Description
System.UInt32 leftC
System.UInt32 rightC
Returns
Type Description
System.Single
Generated by DocFX
GitHub Repo
Back to top