C# Class ImGuiNET.FontConfig

ファイルを表示 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_oe property

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

FontData public_oe property

TTF data
public IntPtr,System FontData
return System.IntPtr

FontDataOwnedByAtlas public_oe property

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

FontDataSize public_oe property

TTF data size
public int FontDataSize
return int

FontNo public_oe property

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

GlyphExtraSpacing public_oe property

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

GlyphRanges public_oe property

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

MergeGlyphCenterV public_oe 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_oe 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_oe 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_oe 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_oe property

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

SizePixels public_oe property

Size in pixels for rasterizer.
public float SizePixels
return float