Table of Contents

Struct JustificationOpportunity

Namespace
SharpDX.DirectWrite
Assembly
SharpDX.Direct2D1.dll

The JustificationOpportunity structure specifies justification info per glyph.

public struct JustificationOpportunity
Inherited Members

Fields

CompressionMaximum

Maximum amount of compression to apply to the side of the glyph. This might vary from zero up to the glyph cluster size.

public float CompressionMaximum

Field Value

float

ExpansionMaximum

Maximum amount of expansion to apply to the side of the glyph. This might vary from zero to infinity, being zero for fixed-size characters and connected scripts, and non-zero for discrete scripts, and non-zero for cursive scripts at expansion points.

public float ExpansionMaximum

Field Value

float

ExpansionMinimum

Minimum amount of expansion to apply to the side of the glyph. This might vary from zero to infinity, typically being zero except for kashida.

public float ExpansionMinimum

Field Value

float

Properties

AllowResidualCompression

Allow this compression point to use up any remaining space even after all compression priorities have been used up.

public bool AllowResidualCompression { get; set; }

Property Value

bool

AllowResidualExpansion

Allow this expansion point to use up any remaining slack space even after all expansion priorities have been used up.

public bool AllowResidualExpansion { get; set; }

Property Value

bool

ApplyToLeadingEdge

Apply expansion and compression to the leading edge of the glyph. This bit is SharpDX.Result.False (0) for connected scripts, fixed-size characters, and diacritics. It is generally SharpDX.Result.False within a multi-glyph cluster, unless the script allows expansion of glyphs within a cluster, like Thai.

public bool ApplyToLeadingEdge { get; set; }

Property Value

bool

ApplyToTrailingEdge

Apply expansion and compression to the trailing edge of the glyph. This bit is SharpDX.Result.False (0) for connected scripts, fixed-size characters, and diacritics. It is generally SharpDX.Result.False within a multi-glyph cluster, unless the script allows expansion of glyphs within a cluster, like Thai.

public bool ApplyToTrailingEdge { get; set; }

Property Value

bool

CompressionPriority

Priority of this compression point. Larger priorities are applied later, while priority zero does nothing.

public int CompressionPriority { get; set; }

Property Value

int

ExpansionPriority

Priority of this expansion point. Larger priorities are applied later, while priority zero does nothing.

public int ExpansionPriority { get; set; }

Property Value

int

Reserved

Reserved

public int Reserved { get; set; }

Property Value

int