Namespace SixLabors.Fonts.Rendering
Classes
- GlyphRendererExtensions
A surface that can have a glyph rendered to it as a series of actions.
- LinearGradientPaint
Linear gradient paint.
- Paint
Base type for normalized paint definitions that can be used by any renderer. Glyph sources must pre-apply all relevant transforms and resolve any palette or format-specific constructs before creating a paint instance.
- PaintedGlyphMetrics
Provides painted (layered) glyph rendering for color formats such as COLR v1 and OT-SVG. Geometry and paints are supplied in document-space by an interpreter; all layout transforms (UPEM mapping, DPI/point-size scaling, rotation, final placement) are applied here.
- RadialGradientPaint
Represents a radial gradient paint defined by two circles. The first circle is centered at Center0 with radius Radius0. The second circle is centered at Center1 with radius Radius1. The color transition is computed between these two circles. Compatible with two-circle radial gradients used by HTML Canvas and OpenType COLR v1.
- SolidPaint
Solid color paint (direct RGBA). Interpreters must resolve palettes to RGBA. Compatible with OT-SVG solid fills and COLR v1 PaintSolid after CPAL resolution.
- SweepGradientPaint
Sweep (conic) gradient paint. Angles are expressed in degrees in the renderer's y-down space.
- TextRenderer
Encapsulates logic for laying out and then rendering text to a IGlyphRenderer surface.
Structs
- GlyphRendererParameters
The combined set of properties that uniquely identify the glyph that is to be rendered at a particular size and dpi.
- GradientStop
Defines a color stop for gradient paints. Offsets must be clamped to the range [0, 1] by the interpreter. Colors are direct RGBA and must not reference palettes.
Interfaces
- IGlyphRenderer
A surface that can have a glyph rendered to it as a series of actions.
Enums
- CompositeMode
Defines compositing and blending operations used when combining source and destination colors.
Values 0–12 correspond to standard Porter–Duff compositing modes. These determine how source and destination alpha interact to produce transparency. The remaining values (13–27) correspond to separable and non-separable blend modes used in modern graphics systems such as ImageSharp.
- FillRule
Specifies the fill rule for path rasterization.
- GradientUnits
Coordinate system to interpret gradient geometry.
- SpreadMethod
Specifies how a gradient should extend beyond the [0, 1] range.