Namespace PaintDotNet.DirectWrite
Classes
- UnexpectedDirectWriteException
Indicates an error originating in DirectWrite code, which is not expected to occur but is safe to recover from.
Structs
- ClusterMetrics
Contains information about a glyph cluster.
- FontFeature
Specifies properties used to identify and execute typographic features in the current font face.
- FontMetrics
The FontMetrics structure specifies the metrics that are applicable to all glyphs within the font face.
See DWRITE_FONT_METRICS1 for more information.
- HitTestMetrics
Describes the region obtained by a hit test.
- LineMetrics
Contains information about a formatted line of text.
- LineSpacing
Sets the vertical spacing between lines of text.
- OverhangMetrics
Indicates how much any visible DIPs (device independent pixels) overshoot each side of the layout or inline objects.
- TextMetrics
Contains the metrics associated with text after layout. All coordinates are in device independent pixels (DIPs).
Interfaces
- IDirectWriteFactory
Used to create all subsequent DirectWrite objects. This interface is the root factory interface for all DirectWrite objects.
This interface corresponds to the following DirectWrite interfaces:
IDWriteFactoryIDWriteFactory1IDWriteFactory2IDWriteFactory3IDWriteFactory4IDWriteFactory5IDWriteFactory6IDWriteFactory7
NOTE: Not all DirectWrite functionality is supported.
- ITextFormat
Describes the font and paragraph properties used to format text, and describes locale information.
This corresponds to the following DirectWrite interfaces: IDWriteTextFormat, IDWriteTextFormat1, IDWriteTextFormat2, IDWriteTextFormat3
- ITextLayout
Represents a block of text after it has been fully analyzed and formatted.
This corresponds to the following DirectWrite interfaces: IDWriteTextLayout, IDWriteTextLayout1, IDWriteTextLayout2, IDWriteTextLayout3, IDWriteTextLayout4
Enums
- BreakCondition
Indicates the condition at the edges of inline object or text used to determine line-breaking behavior.
- FlowDirection
Indicates the direction of how lines of text are placed relative to one another.
- FontLineGapUsage
Specifies whether the FontMetrics.LineGap value should be part of the line metrics
- FontSimulations
Specifies algorithmic style simulations to be applied to the font face. Bold and oblique simulations can be combined via bitwise OR operation.
- FontStretch
Represents the degree to which a font has been stretched compared to a font's normal aspect ratio.The enumerated values correspond to the usWidthClass definition in the OpenType specification. The usWidthClass represents an integer value between 1 and 9—lower values indicate narrower widths; higher values indicate wider widths.
- FontStyle
Represents the style of a font face as normal, italic, or oblique.
- FontWeight
Represents the density of a typeface, in terms of the lightness or heaviness of the strokes. The enumerated values correspond to the usWeightClass definition in the OpenType specification. The usWeightClass represents an integer value between 1 and 999. Lower values indicate lighter weights; higher values indicate heavier weights.
See DWRITE_FONT_WEIGHT for more information.
- GlyphImageFormats
Specifies which formats are supported in the font, either at a font-wide level or per glyph.
DWRITE_GLYPH_IMAGE_FORMATS
- GridFitMode
Specifies whether to enable grid-fitting of glyph outlines (also known as hinting).
- LineSpacingMethod
The method used for line spacing in a text layout.
- OpticalAlignment
The optical margin alignment mode.
By default, glyphs are aligned to the margin by the default origin and side-bearings of the glyph. If you specify NoSideBearings, then the alignment uses the side bearings to offset the glyph from the aligned edge to ensure the ink of the glyphs are aligned.
- ParagraphAlignment
Specifies the alignment of paragraph text along the flow direction axis, relative to the top and bottom of the flow's layout box.
- PixelGeometry
Represents the internal structure of a device pixel (that is, the physical arrangement of red, green, and blue color components) that is assumed for purposes of rendering text.
- ReadingDirection
Specifies the direction in which reading progresses.
- TextRenderingMode
Represents a method of rendering glyphs.
- TrimmingGranularity
Specifies the text granularity used to trim text overflowing the layout box.
- VerticalGlyphOrientation
Contains values that specify the desired kind of glyph orientation for the text.
- WordWrapping
Specifies the word wrapping to be used in a particular multiline paragraph.