Skip to content

SixelCellMetricsSource

Namespace: Hex1b.Sixel

Assembly: Hex1b.dll

Identifies where a value came from.

csharp
public enum SixelCellMetricsSource

Fields

Assumed

No report was available and a documented default was assumed.

Returns: SixelCellMetricsSource

csharp
Assumed = 4

Csi16

The metrics came from an XTWINOPS CSI 16 t report.

Returns: SixelCellMetricsSource

csharp
Csi16 = 1

Derived

The metrics were computed from other reported geometry, such as a window pixel size divided by the character grid.

Returns: SixelCellMetricsSource

csharp
Derived = 3

Direct

The presentation reported protocol cell metrics directly.

Returns: SixelCellMetricsSource

csharp
Direct = 0

Osc1337

The metrics came from an OSC 1337 report.

Returns: SixelCellMetricsSource

csharp
Osc1337 = 2

Remarks

Sixel cell metrics are protocol metrics, not physical font metrics. Windows Terminal, for example, deliberately exposes a VT-compatible virtual Sixel grid (commonly 9x20 or 10x20) instead of its physical glyph box, so the source must travel with the value.

Released under the MIT License.