C# Class ImGuiNET.FontConfig

Show file Open project: mellinoe/ImGui.NET Class Usage Examples

Public Properties

Property Type Description
DstFont System.IntPtr
FontData System.IntPtr
FontDataOwnedByAtlas bool
FontDataSize int
FontNo int
GlyphExtraSpacing Vector2
GlyphRanges char*
MergeGlyphCenterV bool
MergeMode bool
OversampleH int
OversampleV int
PixelSnapH bool
SizePixels float

Property Details

DstFont public property

[Internal Use Only]
public IntPtr,System DstFont
return System.IntPtr

FontData public property

TTF data
public IntPtr,System FontData
return System.IntPtr

FontDataOwnedByAtlas public property

TTF data ownership taken by the container ImFontAtlas (will delete memory itself). Set to true.
public bool FontDataOwnedByAtlas
return bool

FontDataSize public property

TTF data size
public int FontDataSize
return int

FontNo public property

0. Index of font within TTF file
public int FontNo
return int

GlyphExtraSpacing public property

Extra spacing (in pixels) between glyphs. Set to (0, 0).
public Vector2 GlyphExtraSpacing
return Vector2

GlyphRanges public property

List of Unicode range (2 value per range, values are inclusive, zero-terminated list).
public char* GlyphRanges
return char*

MergeGlyphCenterV public property

When merging (multiple ImFontInput for one ImFont), vertically center new glyphs instead of aligning their baseline. Set to false.
public bool MergeGlyphCenterV
return bool

MergeMode public property

Merge into previous ImFont, so you can combine multiple inputs font into one ImFont (e.g. ASCII font + icons + Japanese glyphs). Set to false.
public bool MergeMode
return bool

OversampleH public property

Rasterize at higher quality for sub-pixel positioning. We don't use sub-pixel positions on the Y axis. Set to 3.
public int OversampleH
return int

OversampleV public property

Rasterize at higher quality for sub-pixel positioning. We don't use sub-pixel positions on the Y axis. Set to 1.
public int OversampleV
return int

PixelSnapH public property

Align every character to pixel boundary (if enabled, set OversampleH/V to 1). Set to false.
public bool PixelSnapH
return bool

SizePixels public property

Size in pixels for rasterizer.
public float SizePixels
return float